Changeset View
Changeset View
Standalone View
Standalone View
toplevel.h
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | 69 | { | |||
---|---|---|---|---|---|
73 | Q_PROPERTY(qulonglong frameId READ frameId) | 73 | Q_PROPERTY(qulonglong frameId READ frameId) | ||
74 | 74 | | |||
75 | /** | 75 | /** | ||
76 | * This property holds the geometry of the Toplevel, excluding invisible | 76 | * This property holds the geometry of the Toplevel, excluding invisible | ||
77 | * portions, e.g. client-side and server-side drop-shadows, etc. | 77 | * portions, e.g. client-side and server-side drop-shadows, etc. | ||
78 | * | 78 | * | ||
79 | * @deprecated Use frameGeometry property instead. | 79 | * @deprecated Use frameGeometry property instead. | ||
80 | */ | 80 | */ | ||
81 | Q_PROPERTY(QRect geometry READ frameGeometry NOTIFY geometryChanged) | 81 | Q_PROPERTY(QRect geometry READ frameGeometry NOTIFY frameGeometryChanged) | ||
82 | 82 | | |||
83 | /** | 83 | /** | ||
84 | * This property holds rectangle that the pixmap or buffer of this Toplevel | 84 | * This property holds rectangle that the pixmap or buffer of this Toplevel | ||
85 | * occupies on the screen. This rectangle includes invisible portions of the | 85 | * occupies on the screen. This rectangle includes invisible portions of the | ||
86 | * client, e.g. client-side drop shadows, etc. | 86 | * client, e.g. client-side drop shadows, etc. | ||
87 | */ | 87 | */ | ||
88 | Q_PROPERTY(QRect bufferGeometry READ bufferGeometry NOTIFY geometryChanged) | 88 | Q_PROPERTY(QRect bufferGeometry READ bufferGeometry) | ||
89 | 89 | | |||
90 | /** | 90 | /** | ||
91 | * This property holds the geometry of the Toplevel, excluding invisible | 91 | * This property holds the geometry of the Toplevel, excluding invisible | ||
92 | * portions, e.g. server-side and client-side drop-shadows, etc. | 92 | * portions, e.g. server-side and client-side drop-shadows, etc. | ||
93 | */ | 93 | */ | ||
94 | Q_PROPERTY(QRect frameGeometry READ frameGeometry NOTIFY geometryChanged) | 94 | Q_PROPERTY(QRect frameGeometry READ frameGeometry NOTIFY frameGeometryChanged) | ||
95 | 95 | | |||
96 | /** | 96 | /** | ||
97 | * This property holds the position of the Toplevel's frame geometry. | 97 | * This property holds the position of the Toplevel's frame geometry. | ||
98 | */ | 98 | */ | ||
99 | Q_PROPERTY(QPoint pos READ pos) | 99 | Q_PROPERTY(QPoint pos READ pos) | ||
100 | 100 | | |||
101 | /** | 101 | /** | ||
102 | * This property holds the size of the Toplevel's frame geometry. | 102 | * This property holds the size of the Toplevel's frame geometry. | ||
▲ Show 20 Lines • Show All 481 Lines • ▼ Show 20 Line(s) | 301 | public: | |||
584 | QUuid internalId() const | 584 | QUuid internalId() const | ||
585 | { | 585 | { | ||
586 | return m_internalId; | 586 | return m_internalId; | ||
587 | } | 587 | } | ||
588 | 588 | | |||
589 | Q_SIGNALS: | 589 | Q_SIGNALS: | ||
590 | void opacityChanged(KWin::Toplevel* toplevel, qreal oldOpacity); | 590 | void opacityChanged(KWin::Toplevel* toplevel, qreal oldOpacity); | ||
591 | void damaged(KWin::Toplevel* toplevel, const QRect& damage); | 591 | void damaged(KWin::Toplevel* toplevel, const QRect& damage); | ||
592 | /** | ||||
593 | * This signal is emitted when the Toplevel's frame geometry changes. | ||||
594 | * @deprecated since 5.19, use frameGeometryChanged instead | ||||
595 | */ | ||||
592 | void geometryChanged(); | 596 | void geometryChanged(); | ||
593 | void geometryShapeChanged(KWin::Toplevel* toplevel, const QRect& old); | 597 | void geometryShapeChanged(KWin::Toplevel* toplevel, const QRect& old); | ||
594 | void paddingChanged(KWin::Toplevel* toplevel, const QRect& old); | 598 | void paddingChanged(KWin::Toplevel* toplevel, const QRect& old); | ||
595 | void windowClosed(KWin::Toplevel* toplevel, KWin::Deleted* deleted); | 599 | void windowClosed(KWin::Toplevel* toplevel, KWin::Deleted* deleted); | ||
596 | void windowShown(KWin::Toplevel* toplevel); | 600 | void windowShown(KWin::Toplevel* toplevel); | ||
597 | void windowHidden(KWin::Toplevel* toplevel); | 601 | void windowHidden(KWin::Toplevel* toplevel); | ||
598 | /** | 602 | /** | ||
599 | * Signal emitted when the window's shape state changed. That is if it did not have a shape | 603 | * Signal emitted when the window's shape state changed. That is if it did not have a shape | ||
▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | |||||
647 | void screenScaleChanged(); | 651 | void screenScaleChanged(); | ||
648 | 652 | | |||
649 | /** | 653 | /** | ||
650 | * Emitted whenever the client's shadow changes. | 654 | * Emitted whenever the client's shadow changes. | ||
651 | * @since 5.15 | 655 | * @since 5.15 | ||
652 | */ | 656 | */ | ||
653 | void shadowChanged(); | 657 | void shadowChanged(); | ||
654 | 658 | | |||
659 | /** | ||||
660 | * This signal is emitted when the Toplevel's frame geometry changes. | ||||
661 | */ | ||||
662 | void frameGeometryChanged(KWin::Toplevel *toplevel, const QRect &oldGeometry); | ||||
663 | | ||||
655 | protected Q_SLOTS: | 664 | protected Q_SLOTS: | ||
656 | /** | 665 | /** | ||
657 | * Checks whether the screen number for this Toplevel changed and updates if needed. | 666 | * Checks whether the screen number for this Toplevel changed and updates if needed. | ||
658 | * Any method changing the geometry of the Toplevel should call this method. | 667 | * Any method changing the geometry of the Toplevel should call this method. | ||
659 | */ | 668 | */ | ||
660 | void checkScreen(); | 669 | void checkScreen(); | ||
661 | void setupCheckScreenConnection(); | 670 | void setupCheckScreenConnection(); | ||
662 | void removeCheckScreenConnection(); | 671 | void removeCheckScreenConnection(); | ||
▲ Show 20 Lines • Show All 381 Lines • Show Last 20 Lines |