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 479 Lines • ▼ Show 20 Line(s) | 301 | public: | |||
582 | QUuid internalId() const | 582 | QUuid internalId() const | ||
583 | { | 583 | { | ||
584 | return m_internalId; | 584 | return m_internalId; | ||
585 | } | 585 | } | ||
586 | 586 | | |||
587 | Q_SIGNALS: | 587 | Q_SIGNALS: | ||
588 | void opacityChanged(KWin::Toplevel* toplevel, qreal oldOpacity); | 588 | void opacityChanged(KWin::Toplevel* toplevel, qreal oldOpacity); | ||
589 | void damaged(KWin::Toplevel* toplevel, const QRect& damage); | 589 | void damaged(KWin::Toplevel* toplevel, const QRect& damage); | ||
590 | /** | ||||
591 | * This signal is emitted when the Toplevel's frame geometry changes. | ||||
592 | * @deprecated since 5.19, use frameGeometryChanged instead | ||||
593 | */ | ||||
590 | void geometryChanged(); | 594 | void geometryChanged(); | ||
591 | void geometryShapeChanged(KWin::Toplevel* toplevel, const QRect& old); | 595 | void geometryShapeChanged(KWin::Toplevel* toplevel, const QRect& old); | ||
592 | void paddingChanged(KWin::Toplevel* toplevel, const QRect& old); | 596 | void paddingChanged(KWin::Toplevel* toplevel, const QRect& old); | ||
593 | void windowClosed(KWin::Toplevel* toplevel, KWin::Deleted* deleted); | 597 | void windowClosed(KWin::Toplevel* toplevel, KWin::Deleted* deleted); | ||
594 | void windowShown(KWin::Toplevel* toplevel); | 598 | void windowShown(KWin::Toplevel* toplevel); | ||
595 | void windowHidden(KWin::Toplevel* toplevel); | 599 | void windowHidden(KWin::Toplevel* toplevel); | ||
596 | /** | 600 | /** | ||
597 | * Signal emitted when the window's shape state changed. That is if it did not have a shape | 601 | * 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) | |||||
645 | void screenScaleChanged(); | 649 | void screenScaleChanged(); | ||
646 | 650 | | |||
647 | /** | 651 | /** | ||
648 | * Emitted whenever the client's shadow changes. | 652 | * Emitted whenever the client's shadow changes. | ||
649 | * @since 5.15 | 653 | * @since 5.15 | ||
650 | */ | 654 | */ | ||
651 | void shadowChanged(); | 655 | void shadowChanged(); | ||
652 | 656 | | |||
657 | /** | ||||
658 | * This signal is emitted when the Toplevel's frame geometry changes. | ||||
659 | */ | ||||
660 | void frameGeometryChanged(KWin::Toplevel *toplevel, const QRect &oldGeometry); | ||||
661 | | ||||
653 | protected Q_SLOTS: | 662 | protected Q_SLOTS: | ||
654 | /** | 663 | /** | ||
655 | * Checks whether the screen number for this Toplevel changed and updates if needed. | 664 | * Checks whether the screen number for this Toplevel changed and updates if needed. | ||
656 | * Any method changing the geometry of the Toplevel should call this method. | 665 | * Any method changing the geometry of the Toplevel should call this method. | ||
657 | */ | 666 | */ | ||
658 | void checkScreen(); | 667 | void checkScreen(); | ||
659 | void setupCheckScreenConnection(); | 668 | void setupCheckScreenConnection(); | ||
660 | void removeCheckScreenConnection(); | 669 | void removeCheckScreenConnection(); | ||
▲ Show 20 Lines • Show All 381 Lines • Show Last 20 Lines |