Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwineffects.h
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | |||||
60 | class QAction; | 60 | class QAction; | ||
61 | 61 | | |||
62 | /** | 62 | /** | ||
63 | * Logging category to be used inside the KWin effects. | 63 | * Logging category to be used inside the KWin effects. | ||
64 | * Do not use in this library. | 64 | * Do not use in this library. | ||
65 | */ | 65 | */ | ||
66 | Q_DECLARE_LOGGING_CATEGORY(KWINEFFECTS) | 66 | Q_DECLARE_LOGGING_CATEGORY(KWINEFFECTS) | ||
67 | 67 | | |||
68 | namespace KWayland { | 68 | namespace KWaylandServer { | ||
zzag: This breaks source compatibility, but I guess we don't have a choice. | |||||
69 | namespace Server { | | |||
70 | class SurfaceInterface; | 69 | class SurfaceInterface; | ||
71 | class Display; | 70 | class Display; | ||
72 | } | 71 | } | ||
73 | } | | |||
74 | 72 | | |||
75 | namespace KWin | 73 | namespace KWin | ||
76 | { | 74 | { | ||
77 | 75 | | |||
78 | class PaintDataPrivate; | 76 | class PaintDataPrivate; | ||
79 | class WindowPaintDataPrivate; | 77 | class WindowPaintDataPrivate; | ||
80 | 78 | | |||
81 | class EffectWindow; | 79 | class EffectWindow; | ||
▲ Show 20 Lines • Show All 997 Lines • ▼ Show 20 Line(s) | 835 | public: | |||
1079 | * animation speed. The actual value should be determined using animationTime(). | 1077 | * animation speed. The actual value should be determined using animationTime(). | ||
1080 | * Note: The factor can be also 0, so make sure your code can cope with 0ms time | 1078 | * Note: The factor can be also 0, so make sure your code can cope with 0ms time | ||
1081 | * if used manually. | 1079 | * if used manually. | ||
1082 | */ | 1080 | */ | ||
1083 | virtual double animationTimeFactor() const = 0; | 1081 | virtual double animationTimeFactor() const = 0; | ||
1084 | virtual WindowQuadType newWindowQuadType() = 0; | 1082 | virtual WindowQuadType newWindowQuadType() = 0; | ||
1085 | 1083 | | |||
1086 | Q_SCRIPTABLE virtual KWin::EffectWindow* findWindow(WId id) const = 0; | 1084 | Q_SCRIPTABLE virtual KWin::EffectWindow* findWindow(WId id) const = 0; | ||
1087 | Q_SCRIPTABLE virtual KWin::EffectWindow* findWindow(KWayland::Server::SurfaceInterface *surf) const = 0; | 1085 | Q_SCRIPTABLE virtual KWin::EffectWindow* findWindow(KWaylandServer::SurfaceInterface *surf) const = 0; | ||
1088 | /** | 1086 | /** | ||
1089 | * Finds the EffectWindow for the internal window @p w. | 1087 | * Finds the EffectWindow for the internal window @p w. | ||
1090 | * If there is no such window @c null is returned. | 1088 | * If there is no such window @c null is returned. | ||
1091 | * | 1089 | * | ||
1092 | * On Wayland this returns the internal window. On X11 it returns an Unamanged with the | 1090 | * On Wayland this returns the internal window. On X11 it returns an Unamanged with the | ||
1093 | * window id matching that of the provided window @p w. | 1091 | * window id matching that of the provided window @p w. | ||
1094 | * | 1092 | * | ||
1095 | * @since 5.16 | 1093 | * @since 5.16 | ||
▲ Show 20 Lines • Show All 156 Lines • ▼ Show 20 Line(s) | |||||
1252 | virtual xcb_connection_t *xcbConnection() const = 0; | 1250 | virtual xcb_connection_t *xcbConnection() const = 0; | ||
1253 | virtual xcb_window_t x11RootWindow() const = 0; | 1251 | virtual xcb_window_t x11RootWindow() const = 0; | ||
1254 | 1252 | | |||
1255 | /** | 1253 | /** | ||
1256 | * Interface to the Wayland display: this is relevant only | 1254 | * Interface to the Wayland display: this is relevant only | ||
1257 | * on Wayland, on X11 it will be nullptr | 1255 | * on Wayland, on X11 it will be nullptr | ||
1258 | * @since 5.5 | 1256 | * @since 5.5 | ||
1259 | */ | 1257 | */ | ||
1260 | virtual KWayland::Server::Display *waylandDisplay() const = 0; | 1258 | virtual KWaylandServer::Display *waylandDisplay() const = 0; | ||
1261 | 1259 | | |||
1262 | /** | 1260 | /** | ||
1263 | * Whether animations are supported by the Scene. | 1261 | * Whether animations are supported by the Scene. | ||
1264 | * If this method returns @c false Effects are supposed to not | 1262 | * If this method returns @c false Effects are supposed to not | ||
1265 | * animate transitions. | 1263 | * animate transitions. | ||
1266 | * | 1264 | * | ||
1267 | * @returns Whether the Scene can drive animations | 1265 | * @returns Whether the Scene can drive animations | ||
1268 | * @since 5.8 | 1266 | * @since 5.8 | ||
▲ Show 20 Lines • Show All 788 Lines • ▼ Show 20 Line(s) | 1839 | { | |||
2057 | * @since 5.0 | 2055 | * @since 5.0 | ||
2058 | */ | 2056 | */ | ||
2059 | Q_PROPERTY(bool skipsCloseAnimation READ skipsCloseAnimation) | 2057 | Q_PROPERTY(bool skipsCloseAnimation READ skipsCloseAnimation) | ||
2060 | 2058 | | |||
2061 | /** | 2059 | /** | ||
2062 | * Interface to the corresponding wayland surface. | 2060 | * Interface to the corresponding wayland surface. | ||
2063 | * relevant only in Wayland, on X11 it will be nullptr | 2061 | * relevant only in Wayland, on X11 it will be nullptr | ||
2064 | */ | 2062 | */ | ||
2065 | Q_PROPERTY(KWayland::Server::SurfaceInterface *surface READ surface) | 2063 | Q_PROPERTY(KWaylandServer::SurfaceInterface *surface READ surface) | ||
2066 | 2064 | | |||
2067 | /** | 2065 | /** | ||
2068 | * Whether the window is fullscreen. | 2066 | * Whether the window is fullscreen. | ||
2069 | * @since 5.6 | 2067 | * @since 5.6 | ||
2070 | */ | 2068 | */ | ||
2071 | Q_PROPERTY(bool fullScreen READ isFullScreen) | 2069 | Q_PROPERTY(bool fullScreen READ isFullScreen) | ||
2072 | 2070 | | |||
2073 | /** | 2071 | /** | ||
▲ Show 20 Lines • Show All 330 Lines • ▼ Show 20 Line(s) | 2183 | #endif | |||
2404 | /** | 2402 | /** | ||
2405 | * @since 5.0 | 2403 | * @since 5.0 | ||
2406 | */ | 2404 | */ | ||
2407 | virtual bool skipsCloseAnimation() const = 0; | 2405 | virtual bool skipsCloseAnimation() const = 0; | ||
2408 | 2406 | | |||
2409 | /** | 2407 | /** | ||
2410 | * @since 5.5 | 2408 | * @since 5.5 | ||
2411 | */ | 2409 | */ | ||
2412 | virtual KWayland::Server::SurfaceInterface *surface() const = 0; | 2410 | virtual KWaylandServer::SurfaceInterface *surface() const = 0; | ||
2413 | 2411 | | |||
2414 | /** | 2412 | /** | ||
2415 | * @since 5.6 | 2413 | * @since 5.6 | ||
2416 | */ | 2414 | */ | ||
2417 | virtual bool isFullScreen() const = 0; | 2415 | virtual bool isFullScreen() const = 0; | ||
2418 | 2416 | | |||
2419 | /** | 2417 | /** | ||
2420 | * @since 5.10 | 2418 | * @since 5.10 | ||
▲ Show 20 Lines • Show All 1606 Lines • Show Last 20 Lines |
This breaks source compatibility, but I guess we don't have a choice.