KDecoration3
decoration.h
67 * Whenever the visual representation of the Decoration changes the slot @link Decoration::update @endlink
74 * the clicked signals of the buttons. For convenience the framework provides the @link DecorationButton @endlink
75 * and the @link DecorationButtonGroup @endlink for easier layout. It is not required to use those,
76 * if one uses different ways to represent the actions one needs to filter the events accordingly.
92 Q_PROPERTY(qreal resizeOnlyBorderRight READ resizeOnlyBorderRight NOTIFY resizeOnlyBordersChanged)
94 Q_PROPERTY(qreal resizeOnlyBorderBottom READ resizeOnlyBorderBottom NOTIFY resizeOnlyBordersChanged)
99 Q_PROPERTY(Qt::WindowFrameSection sectionUnderMouse READ sectionUnderMouse NOTIFY sectionUnderMouseChanged)
Common settings for the Decoration.
Definition decorationsettings.h:31
A wrapper to define the shadow around the Decoration.
Definition decorationshadow.h:75
std::shared_ptr< DecorationState > currentState() const
Returns the currently applied state.
Definition decoration.cpp:531
virtual std::shared_ptr< DecorationState > createState()
Create a state container.
Definition decoration.cpp:526
DecoratedWindow * window() const
The DecoratedWindow for this Decoration.
Definition decoration.cpp:175
QRectF titleBar
The titleBar is the area inside the Decoration containing all controls (e.g.
Definition decoration.h:105
std::shared_ptr< DecorationState > nextState() const
Returns the next state, i.e.
Definition decoration.cpp:536
virtual void paint(QPainter *painter, const QRectF &repaintArea)=0
Implement this method in inheriting classes to provide the rendering.
void requestShowWindowMenu(const QRect &rect)
Definition decoration.cpp:222
Decoration(QObject *parent, const QVariantList &args)
Constructor for the Decoration.
Definition decoration.cpp:167
virtual bool init()=0
This method gets invoked from the framework once the Decoration is created and completely setup.
void setSettings(const std::shared_ptr< DecorationSettings > &settings)
Invoked by the framework to set the Settings for this Decoration before init is invoked.
Definition decoration.cpp:516
QRegion blurRegion() const
The decoration's blur region in local coordinates.
Definition decoration.cpp:306
void apply(std::shared_ptr< DecorationState > state)
Definition decoration.cpp:553
Qt::WindowFrameSection sectionUnderMouse
This property denotes the part of the Decoration which is currently under the mouse pointer.
Definition decoration.h:99
void setTitleBar(const QRectF &rect)
An implementation has to invoke this method whenever the area containing the controls and caption cha...
Definition decoration.cpp:282
std::shared_ptr< DecorationSettings > settings() const
Definition decoration.cpp:521
void setState(std::function< void(DecorationState *state)> callback)
Notifies the framework that the decoration state has changed.
Definition decoration.cpp:547
std::shared_ptr< DecorationShadow > shadow() const
DecorationShadow for this Decoration.
Definition decoration.cpp:331
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
WindowFrameSection
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:48 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:48 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.