KWin
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Enumerations | Functions
globals.h File Reference
#include "config-kwin.h"
#include <QCoreApplication>
#include <QImage>
#include <QPoint>
#include <QVariant>
#include <QVector2D>
#include <kwin_export.h>

Go to the source code of this file.

Classes

class  KWin::PlatformCursorImage
 

Namespaces

namespace  KWin
 

Macros

#define KWIN_QT5_PORTING   0
 
#define KWIN_SINGLETON_VARIABLE(ClassName, variableName)
 
#define KWIN_SINGLETON(ClassName)   KWIN_SINGLETON_VARIABLE(ClassName, s_self)
 
#define KWIN_SINGLETON_FACTORY_VARIABLE_FACTORED(ClassName, FactoredClassName, variableName)
 
#define KWIN_SINGLETON_FACTORY_VARIABLE(ClassName, variableName)   KWIN_SINGLETON_FACTORY_VARIABLE_FACTORED(ClassName, ClassName, variableName)
 
#define KWIN_SINGLETON_FACTORY_FACTORED(ClassName, FactoredClassName)   KWIN_SINGLETON_FACTORY_VARIABLE_FACTORED(ClassName, FactoredClassName, s_self)
 
#define KWIN_SINGLETON_FACTORY(ClassName)   KWIN_SINGLETON_FACTORY_VARIABLE(ClassName, s_self)
 

Enumerations

enum  KWin::CompositingType { KWin::NoCompositing = 0 , KWin::OpenGLCompositing = 1 , KWin::QPainterCompositing = 1 << 2 }
 
enum  KWin::OpenGLPlatformInterface { KWin::NoOpenGLPlatformInterface = 0 , KWin::GlxPlatformInterface , KWin::EglPlatformInterface }
 
enum  KWin::clientAreaOption {
  KWin::PlacementArea , KWin::MovementArea , KWin::MaximizeArea , KWin::MaximizeFullArea ,
  KWin::FullScreenArea , KWin::WorkArea , KWin::FullArea , KWin::ScreenArea
}
 
enum  KWin::ElectricBorder {
  KWin::ElectricTop , KWin::ElectricTopRight , KWin::ElectricRight , KWin::ElectricBottomRight ,
  KWin::ElectricBottom , KWin::ElectricBottomLeft , KWin::ElectricLeft , KWin::ElectricTopLeft ,
  KWin::ELECTRIC_COUNT , KWin::ElectricNone
}
 
enum  KWin::ElectricBorderAction {
  KWin::ElectricActionNone , KWin::ElectricActionShowDesktop , KWin::ElectricActionLockScreen , KWin::ElectricActionKRunner ,
  KWin::ElectricActionActivityManager , KWin::ElectricActionApplicationLauncher , KWin::ELECTRIC_ACTION_COUNT
}
 
enum  KWin::TabBoxMode { KWin::TabBoxWindowsMode , KWin::TabBoxWindowsAlternativeMode , KWin::TabBoxCurrentAppWindowsMode , KWin::TabBoxCurrentAppWindowsAlternativeMode }
 
enum  KWin::KWinOption { KWin::CloseButtonCorner , KWin::SwitchDesktopOnScreenEdge , KWin::SwitchDesktopOnScreenEdgeMovingWindows }
 
enum  KWin::PointerAxisDirection { KWin::PointerAxisUp , KWin::PointerAxisDown , KWin::PointerAxisLeft , KWin::PointerAxisRight }
 The direction in which a pointer axis is moved. More...
 
enum class  KWin::SwipeDirection {
  KWin::Invalid , KWin::Down , KWin::Left , KWin::Up ,
  KWin::Right
}
 Directions for swipe gestures. More...
 
enum class  KWin::PinchDirection { KWin::Expanding , KWin::Contracting }
 
enum class  KWin::SessionState { KWin::Normal , KWin::Saving , KWin::Quitting }
 
enum class  KWin::LED { KWin::NumLock = 1 << 0 , KWin::CapsLock = 1 << 1 , KWin::ScrollLock = 1 << 2 }
 
enum class  KWin::Gravity {
  KWin::None , KWin::Left , KWin::Right , KWin::Top ,
  KWin::Bottom , KWin::TopLeft , KWin::TopRight , KWin::BottomLeft ,
  KWin::BottomRight
}
 
enum  KWin::Layer {
  KWin::UnknownLayer = -1 , KWin::FirstLayer = 0 , KWin::DesktopLayer = FirstLayer , KWin::BelowLayer ,
  KWin::NormalLayer , KWin::AboveLayer , KWin::NotificationLayer , KWin::ActiveLayer ,
  KWin::PopupLayer , KWin::CriticalNotificationLayer , KWin::OnScreenDisplayLayer , KWin::OverlayLayer ,
  KWin::NumLayers
}
 
enum class  KWin::QuickTileFlag {
  KWin::None = 0 , KWin::Left = 1 << 0 , KWin::Right = 1 << 1 , KWin::Top = 1 << 2 ,
  KWin::Bottom = 1 << 3 , KWin::Custom = 1 << 4 , KWin::Horizontal = Left | Right , KWin::Vertical = Top | Bottom ,
  KWin::Maximize = Left | Right | Top | Bottom
}
 
enum class  KWin::PresentationMode { KWin::VSync , KWin::AdaptiveSync , KWin::Async , KWin::AdaptiveAsync }
 
enum class  KWin::ContentType { KWin::None = 0 , KWin::Photo = 1 , KWin::Video = 2 , KWin::Game = 3 }
 
enum class  KWin::VrrPolicy { KWin::Never = 0 , KWin::Always = 1 , KWin::Automatic = 2 }
 
enum class  KWin::PresentationModeHint { KWin::VSync , KWin::Async }
 

Functions

KWIN_EXPORT QRect KWin::infiniteRegion ()
 
KWIN_EXPORT QRectF KWin::scaledRect (const QRectF &rect, qreal scale)
 
KWIN_EXPORT QVector2D KWin::roundVector (const QVector2D &input)
 
KWIN_EXPORT QPoint KWin::flooredPoint (const QPointF &point)
 
 KWin::Q_ENUM_NS (PresentationMode)
 
 KWin::Q_ENUM_NS (ContentType)
 
 KWin::Q_ENUM_NS (VrrPolicy)
 
 KWin::Q_ENUM_NS (PresentationModeHint)
 

Macro Definition Documentation

◆ KWIN_QT5_PORTING

#define KWIN_QT5_PORTING   0

Definition at line 22 of file globals.h.

◆ KWIN_SINGLETON

#define KWIN_SINGLETON ( ClassName)    KWIN_SINGLETON_VARIABLE(ClassName, s_self)

Definition at line 323 of file globals.h.

◆ KWIN_SINGLETON_FACTORY

#define KWIN_SINGLETON_FACTORY ( ClassName)    KWIN_SINGLETON_FACTORY_VARIABLE(ClassName, s_self)

Definition at line 335 of file globals.h.

◆ KWIN_SINGLETON_FACTORY_FACTORED

#define KWIN_SINGLETON_FACTORY_FACTORED ( ClassName,
FactoredClassName )   KWIN_SINGLETON_FACTORY_VARIABLE_FACTORED(ClassName, FactoredClassName, s_self)

Definition at line 334 of file globals.h.

◆ KWIN_SINGLETON_FACTORY_VARIABLE

#define KWIN_SINGLETON_FACTORY_VARIABLE ( ClassName,
variableName )   KWIN_SINGLETON_FACTORY_VARIABLE_FACTORED(ClassName, ClassName, variableName)

Definition at line 333 of file globals.h.

◆ KWIN_SINGLETON_FACTORY_VARIABLE_FACTORED

#define KWIN_SINGLETON_FACTORY_VARIABLE_FACTORED ( ClassName,
FactoredClassName,
variableName )
Value:
ClassName *ClassName::variableName = nullptr; \
ClassName *ClassName::create(QObject *parent) \
{ \
Q_ASSERT(!variableName); \
variableName = new FactoredClassName(parent); \
return variableName; \
}

Definition at line 325 of file globals.h.

◆ KWIN_SINGLETON_VARIABLE

#define KWIN_SINGLETON_VARIABLE ( ClassName,
variableName )
Value:
public: \
static ClassName *create(QObject *parent = nullptr); \
static ClassName *self() \
{ \
return variableName; \
} \
\
protected: \
explicit ClassName(QObject *parent = nullptr); \
\
private: \
static ClassName *variableName;

Definition at line 309 of file globals.h.