MauiKit Controls
csdcontrols.h
15 * This class is exposed as the type `CSDButton` to the QML engine, and it is used for creating the CSD window control themes.
17 * CSDButton represents a button and its states. By reading the theme configuration, this class changes the images used as its state changes. The states need to be set manually.
45 * Uses the `Normal` config entry to read the image file asset, if focused, other wise, the `Backdrop` entry.
62 * By default this will be set to the current preferred window controls style preference from MauiMan.
163 * @brief Maps a based string value convention representing a button type to a CSDButton::CSDButtonType
165 * Usually each window control button is represented as a single letter, and the order of the window control buttons are an array of those string values.
223 * @note This property by default uses the MauiMan global preference, but can it be overridden. To reset it back to the original system preference value set it to `undefined`.
225 Q_PROPERTY(bool enabled READ enableCSD WRITE setEnableCSD RESET resetEnableCSD NOTIFY enableCSDChanged)
234 * This is picked up from the global MauiMan preferences and can not be overridden by the application.
240 * The model of the window control buttons to be shown, and the order in which they should appear in the right side.
Q_ENUM(CSDButtonState) enum CSDButtonType
The possible types of supported window control buttons.
Definition csdcontrols.h:98
CSDButton::CSDButtonType mapType(const QString &value)
Maps a based string value convention representing a button type to a CSDButton::CSDButtonType.
Definition csdcontrols.cpp:254
QString style
The style to be used for picking up the image assets and config.
Definition csdcontrols.h:65
The client-side-decorations manager for the MauiKit application.
Definition csdcontrols.h:212
static CSDControls * instance()
Retrieves the single instance of MauiApp.
Definition csdcontrols.cpp:351
bool enabled
Whether the application shall use CSD (client side decorations).
Definition csdcontrols.h:225
QStringList rightWindowControls
The model of the window control buttons to be shown, and the order in which they should appear in the...
Definition csdcontrols.h:243
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 3 2025 12:00:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 3 2025 12:00:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.