KDecoration2
Classes | |
class | DecoratedClient |
class | Decoration |
class | DecorationButton |
class | DecorationButtonGroup |
class | DecorationSettings |
class | DecorationShadow |
class | DecorationThemeMetaData |
class | DecorationThemeProvider |
Enumerations | |
enum class | BorderSize { None , NoSides , Tiny , Normal , Large , VeryLarge , Huge , VeryHuge , Oversized } |
enum class | ColorGroup { Inactive , Active , Warning } |
enum class | ColorRole { Frame , TitleBar , Foreground } |
enum class | DecorationButtonType { Menu , ApplicationMenu , OnAllDesktops , Minimize , Maximize , Close , ContextHelp , Shade , KeepBelow , KeepAbove , Custom , Spacer } |
Detailed Description
Framework for creating window decorations.
Enumeration Type Documentation
◆ BorderSize
|
strong |
Border sizes are a combination of visual and accessibility features.
Larger borders should be used to increase the non title bar borders to make it easier to resize the decoration
Definition at line 82 of file decorationdefines.h.
◆ ColorGroup
|
strong |
Color groups are used for DecoratedClient::color().
- Since
- 5.3
Enumerator | |
---|---|
Inactive | Inactive color, used for unfocused windows. |
Active | Active color, used for focused windows. |
Warning | Warning color, can only be used with ColorRole::Foreground. If used with other roles, a invalid QColor is returned. It can be used for close buttons and is typically red. |
Definition at line 128 of file decorationdefines.h.
◆ ColorRole
|
strong |
Color roles are used for DecoratedClient::color().
- Since
- 5.3
Enumerator | |
---|---|
Frame | The decoration's frame background color. |
TitleBar | The decoration's title bar background color. |
Foreground | The decoration's title bar forground color. |
Definition at line 148 of file decorationdefines.h.
◆ DecorationButtonType
|
strong |
The DecorationButtonType is a helper type for the DecorationButton.
A Decoration should provide a DecorationButton for each of the types, if it wants to provide further buttons it should use the Custom type. The DecorationButton gets configured depending on the type. E.g. the Close button gets disabled if the DecoratedClient is not closeable.
Enumerator | |
---|---|
Menu | The Menu button requests showing the window menu on left or right click. |
ApplicationMenu | The ApplicationMenu button requests showing the application's menu on left or right click. |
OnAllDesktops | The OnAllDesktops button requests toggling the DecoratedClient's on all desktops state. The DecoratedButton is only visible if multiple virtual desktops are available. |
Minimize | The Minimize button requests minimizing the DecoratedClient. The DecorationButton is only enabled if the DecoratedClient is minimizeable. |
Maximize | The Maximize button requests maximizing the DecoratedClient. The DecorationButton is checkable and if the DecoratedClient is maximized the DecorationButton is checked. The DecorationButton supports multiple mouse buttons to change horizontal, vertical and overall maximized state. The DecorationButton is only enabled if the DecoratedClient is maximizeable. |
Close | The Close button requests closing the DecoratedClient. The DecorationButton is only enabled if the DecoratedClient is closeable. |
ContextHelp | The ContextHelp button requests entering the context help mode. The DecorationButton is only visible if the DecoratedClient provides context help. |
Shade | The Shade button requests toggling the DecoratedClient's shaded state. The DecoratedButton is only enabled if the DecoratedClient is shadeable. |
KeepBelow | The KeepBelow button requests toggling the DecoratedClient's keep below state. |
KeepAbove | The KeepAbove button requests toggling the DecoratedClient's keep above state. |
Custom | The Custom type allows a Decoration to provide custom DecorationButtons. |
Spacer | The Spacer button provides some space between buttons. |
Definition at line 17 of file decorationdefines.h.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.