Changeset View
Changeset View
Standalone View
Standalone View
toplevel.h
Show First 20 Lines • Show All 155 Lines • ▼ Show 20 Line(s) | 74 | { | |||
---|---|---|---|---|---|
156 | **/ | 156 | **/ | ||
157 | Q_PROPERTY(bool tooltip READ isTooltip) | 157 | Q_PROPERTY(bool tooltip READ isTooltip) | ||
158 | /** | 158 | /** | ||
159 | * Returns whether the window is a window with a notification. | 159 | * Returns whether the window is a window with a notification. | ||
160 | * See _NET_WM_WINDOW_TYPE_NOTIFICATION at https://standards.freedesktop.org/wm-spec/wm-spec-latest.html . | 160 | * See _NET_WM_WINDOW_TYPE_NOTIFICATION at https://standards.freedesktop.org/wm-spec/wm-spec-latest.html . | ||
161 | **/ | 161 | **/ | ||
162 | Q_PROPERTY(bool notification READ isNotification) | 162 | Q_PROPERTY(bool notification READ isNotification) | ||
163 | /** | 163 | /** | ||
164 | * Returns whether the window is a window with a critical notification. | ||||
165 | **/ | ||||
166 | Q_PROPERTY(bool criticalNotification READ isCriticalNotification) | ||||
167 | /** | ||||
164 | * Returns whether the window is an On Screen Display. | 168 | * Returns whether the window is an On Screen Display. | ||
165 | **/ | 169 | **/ | ||
166 | Q_PROPERTY(bool onScreenDisplay READ isOnScreenDisplay) | 170 | Q_PROPERTY(bool onScreenDisplay READ isOnScreenDisplay) | ||
167 | /** | 171 | /** | ||
168 | * Returns whether the window is a combobox popup. | 172 | * Returns whether the window is a combobox popup. | ||
169 | * See _NET_WM_WINDOW_TYPE_COMBO at https://standards.freedesktop.org/wm-spec/wm-spec-latest.html . | 173 | * See _NET_WM_WINDOW_TYPE_COMBO at https://standards.freedesktop.org/wm-spec/wm-spec-latest.html . | ||
170 | **/ | 174 | **/ | ||
171 | Q_PROPERTY(bool comboBox READ isComboBox) | 175 | Q_PROPERTY(bool comboBox READ isComboBox) | ||
▲ Show 20 Lines • Show All 107 Lines • ▼ Show 20 Line(s) | 230 | public: | |||
279 | bool isNormalWindow() const; // normal as in 'NET::Normal or NET::Unknown non-transient' | 283 | bool isNormalWindow() const; // normal as in 'NET::Normal or NET::Unknown non-transient' | ||
280 | bool isDialog() const; | 284 | bool isDialog() const; | ||
281 | bool isSplash() const; | 285 | bool isSplash() const; | ||
282 | bool isUtility() const; | 286 | bool isUtility() const; | ||
283 | bool isDropdownMenu() const; | 287 | bool isDropdownMenu() const; | ||
284 | bool isPopupMenu() const; // a context popup, not dropdown, not torn-off | 288 | bool isPopupMenu() const; // a context popup, not dropdown, not torn-off | ||
285 | bool isTooltip() const; | 289 | bool isTooltip() const; | ||
286 | bool isNotification() const; | 290 | bool isNotification() const; | ||
291 | bool isCriticalNotification() const; | ||||
287 | bool isOnScreenDisplay() const; | 292 | bool isOnScreenDisplay() const; | ||
288 | bool isComboBox() const; | 293 | bool isComboBox() const; | ||
289 | bool isDNDIcon() const; | 294 | bool isDNDIcon() const; | ||
290 | 295 | | |||
291 | virtual bool isLockScreen() const; | 296 | virtual bool isLockScreen() const; | ||
292 | virtual bool isInputMethod() const; | 297 | virtual bool isInputMethod() const; | ||
293 | virtual bool isOutline() const; | 298 | virtual bool isOutline() const; | ||
294 | 299 | | |||
▲ Show 20 Lines • Show All 447 Lines • ▼ Show 20 Line(s) | 746 | { | |||
742 | return windowType() == NET::Tooltip; | 747 | return windowType() == NET::Tooltip; | ||
743 | } | 748 | } | ||
744 | 749 | | |||
745 | inline bool Toplevel::isNotification() const | 750 | inline bool Toplevel::isNotification() const | ||
746 | { | 751 | { | ||
747 | return windowType() == NET::Notification; | 752 | return windowType() == NET::Notification; | ||
748 | } | 753 | } | ||
749 | 754 | | |||
755 | inline bool Toplevel::isCriticalNotification() const | ||||
756 | { | ||||
757 | return windowType() == NET::CriticalNotification; | ||||
758 | } | ||||
759 | | ||||
750 | inline bool Toplevel::isOnScreenDisplay() const | 760 | inline bool Toplevel::isOnScreenDisplay() const | ||
751 | { | 761 | { | ||
752 | return windowType() == NET::OnScreenDisplay; | 762 | return windowType() == NET::OnScreenDisplay; | ||
753 | } | 763 | } | ||
754 | 764 | | |||
755 | inline bool Toplevel::isComboBox() const | 765 | inline bool Toplevel::isComboBox() const | ||
756 | { | 766 | { | ||
757 | return windowType() == NET::ComboBox; | 767 | return windowType() == NET::ComboBox; | ||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |