Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwineffects.h
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | |||||
1438 | void windowUnminimized(KWin::EffectWindow *w); | 1438 | void windowUnminimized(KWin::EffectWindow *w); | ||
1439 | /** | 1439 | /** | ||
1440 | * Signal emitted when a window either becomes modal (ie. blocking for its main client) or looses that state. | 1440 | * Signal emitted when a window either becomes modal (ie. blocking for its main client) or looses that state. | ||
1441 | * @param w The window which was unminimized | 1441 | * @param w The window which was unminimized | ||
1442 | * @since 4.11 | 1442 | * @since 4.11 | ||
1443 | **/ | 1443 | **/ | ||
1444 | void windowModalityChanged(KWin::EffectWindow *w); | 1444 | void windowModalityChanged(KWin::EffectWindow *w); | ||
1445 | /** | 1445 | /** | ||
1446 | * Signal emitted when a window either became unresponsive (eg. app froze or crashed) | ||||
1447 | * or respoonsive | ||||
1448 | * @param w The window that became (un)responsive | ||||
1449 | * @param unresponsive Whether the window is responsive or unresponsive | ||||
1450 | * @since 5.10 | ||||
1451 | */ | ||||
1452 | void windowUnresponsiveChanged(KWin::EffectWindow *w, bool unresponsive); | ||||
1453 | /** | ||||
1446 | * Signal emitted when an area of a window is scheduled for repainting. | 1454 | * Signal emitted when an area of a window is scheduled for repainting. | ||
1447 | * Use this signal in an effect if another area needs to be synced as well. | 1455 | * Use this signal in an effect if another area needs to be synced as well. | ||
1448 | * @param w The window which is scheduled for repainting | 1456 | * @param w The window which is scheduled for repainting | ||
1449 | * @param r Always empty. | 1457 | * @param r Always empty. | ||
1450 | * @since 4.7 | 1458 | * @since 4.7 | ||
1451 | **/ | 1459 | **/ | ||
1452 | void windowDamaged(KWin::EffectWindow *w, const QRect &r); | 1460 | void windowDamaged(KWin::EffectWindow *w, const QRect &r); | ||
1453 | /** | 1461 | /** | ||
▲ Show 20 Lines • Show All 182 Lines • ▼ Show 20 Line(s) | |||||
1862 | */ | 1870 | */ | ||
1863 | Q_PROPERTY(KWayland::Server::SurfaceInterface *surface READ surface) | 1871 | Q_PROPERTY(KWayland::Server::SurfaceInterface *surface READ surface) | ||
1864 | 1872 | | |||
1865 | /** | 1873 | /** | ||
1866 | * Whether the window is fullscreen. | 1874 | * Whether the window is fullscreen. | ||
1867 | * @since 5.6 | 1875 | * @since 5.6 | ||
1868 | **/ | 1876 | **/ | ||
1869 | Q_PROPERTY(bool fullScreen READ isFullScreen) | 1877 | Q_PROPERTY(bool fullScreen READ isFullScreen) | ||
1878 | | ||||
1879 | /** | ||||
1880 | * Whether this client is unresponsive. | ||||
1881 | * | ||||
1882 | * When an application failed to react on a ping request in time, it is | ||||
1883 | * considered unresponsive. This usually indicates that the application froze or crashed. | ||||
1884 | * | ||||
1885 | * @since 5.10 | ||||
1886 | */ | ||||
1887 | Q_PROPERTY(bool unresponsive READ isUnresponsive) | ||||
1870 | public: | 1888 | public: | ||
1871 | /** Flags explaining why painting should be disabled */ | 1889 | /** Flags explaining why painting should be disabled */ | ||
1872 | enum { | 1890 | enum { | ||
1873 | /** Window will not be painted */ | 1891 | /** Window will not be painted */ | ||
1874 | PAINT_DISABLED = 1 << 0, | 1892 | PAINT_DISABLED = 1 << 0, | ||
1875 | /** Window will not be painted because it is deleted */ | 1893 | /** Window will not be painted because it is deleted */ | ||
1876 | PAINT_DISABLED_BY_DELETE = 1 << 1, | 1894 | PAINT_DISABLED_BY_DELETE = 1 << 1, | ||
1877 | /** Window will not be painted because of which desktop it's on */ | 1895 | /** Window will not be painted because of which desktop it's on */ | ||
▲ Show 20 Lines • Show All 182 Lines • ▼ Show 20 Line(s) | |||||
2105 | KWayland::Server::SurfaceInterface *surface() const; | 2123 | KWayland::Server::SurfaceInterface *surface() const; | ||
2106 | 2124 | | |||
2107 | /** | 2125 | /** | ||
2108 | * @since 5.6 | 2126 | * @since 5.6 | ||
2109 | **/ | 2127 | **/ | ||
2110 | bool isFullScreen() const; | 2128 | bool isFullScreen() const; | ||
2111 | 2129 | | |||
2112 | /** | 2130 | /** | ||
2131 | * @since 5.10 | ||||
2132 | */ | ||||
2133 | bool isUnresponsive() const; | ||||
2134 | | ||||
2135 | /** | ||||
2113 | * Can be used to by effects to store arbitrary data in the EffectWindow. | 2136 | * Can be used to by effects to store arbitrary data in the EffectWindow. | ||
2114 | * | 2137 | * | ||
2115 | * Invoking this method will emit the signal EffectsHandler::windowDataChanged. | 2138 | * Invoking this method will emit the signal EffectsHandler::windowDataChanged. | ||
2116 | * @see EffectsHandler::windowDataChanged | 2139 | * @see EffectsHandler::windowDataChanged | ||
2117 | */ | 2140 | */ | ||
2118 | Q_SCRIPTABLE virtual void setData(int role, const QVariant &data) = 0; | 2141 | Q_SCRIPTABLE virtual void setData(int role, const QVariant &data) = 0; | ||
2119 | Q_SCRIPTABLE virtual QVariant data(int role) const = 0; | 2142 | Q_SCRIPTABLE virtual QVariant data(int role) const = 0; | ||
2120 | 2143 | | |||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |