KDecoration3
decorationbutton.h
27 * The DecorationButton is a simple Button which can be used (but doesn't have to) in a Decoration.
80 Q_PROPERTY(Qt::MouseButtons acceptedButtons READ acceptedButtons WRITE setAcceptedButtons NOTIFY acceptedButtonsChanged)
129 * @param rect The area to repaint in Decoration local coordinates, a null QRect updates the complete geometry
158 explicit DecorationButton(DecorationButtonType type, Decoration *decoration, QObject *parent = nullptr);
176size_t KDECORATIONS3_EXPORT qHash(const KDecoration3::DecorationButtonType &type, size_t seed = 0);
Qt::MouseButtons acceptedButtons
The mouse buttons the DecorationButton accepts.
Definition decorationbutton.h:80
QRectF geometry
The geometry of the DecorationButton in Decoration-local coordinates.
Definition decorationbutton.h:75
virtual void paint(QPainter *painter, const QRectF &repaintArea)=0
Invoked for painting this DecorationButtons.
bool contains(const QPointF &pos) const
Returns true if pos is inside of the button, otherwise returns false.
Definition decorationbutton.cpp:485
void update(const QRectF &rect)
Schedules a repaint of the DecorationButton.
Definition decorationbutton.cpp:386
DecorationButtonType
The DecorationButtonType is a helper type for the DecorationButton.
Definition decorationdefines.h:17
QObject(QObject *parent)
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 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.