Document some geometry properties

Reviewers: #kwin

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D24338
This commit is contained in:
Vlad Zahorodnii 2019-09-27 13:10:13 +03:00
parent 68cbbb62f0
commit 78be358746

View file

@ -86,16 +86,40 @@ class KWIN_EXPORT Toplevel
*/ */
Q_PROPERTY(QRect frameGeometry READ frameGeometry NOTIFY geometryChanged) Q_PROPERTY(QRect frameGeometry READ frameGeometry NOTIFY geometryChanged)
Q_PROPERTY(QRect visibleRect READ visibleRect) /**
Q_PROPERTY(int height READ height) * This property holds the position of the Toplevel's frame geometry.
Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity NOTIFY opacityChanged) */
Q_PROPERTY(QPoint pos READ pos) Q_PROPERTY(QPoint pos READ pos)
Q_PROPERTY(int screen READ screen NOTIFY screenChanged)
/**
* This property holds the size of the Toplevel's frame geometry.
*/
Q_PROPERTY(QSize size READ size) Q_PROPERTY(QSize size READ size)
Q_PROPERTY(int width READ width)
Q_PROPERTY(qulonglong windowId READ windowId CONSTANT) /**
* This property holds the x position of the Toplevel's frame geometry.
*/
Q_PROPERTY(int x READ x) Q_PROPERTY(int x READ x)
/**
* This property holds the y position of the Toplevel's frame geometry.
*/
Q_PROPERTY(int y READ y) Q_PROPERTY(int y READ y)
/**
* This property holds the width of the Toplevel's frame geometry.
*/
Q_PROPERTY(int width READ width)
/**
* This property holds the height of the Toplevel's frame geometry.
*/
Q_PROPERTY(int height READ height)
Q_PROPERTY(QRect visibleRect READ visibleRect)
Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity NOTIFY opacityChanged)
Q_PROPERTY(int screen READ screen NOTIFY screenChanged)
Q_PROPERTY(qulonglong windowId READ windowId CONSTANT)
Q_PROPERTY(int desktop READ desktop) Q_PROPERTY(int desktop READ desktop)
/** /**