Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/kwin_wayland_test.h
| Show All 18 Lines | |||||
| 19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
| 20 | #ifndef KWIN_WAYLAND_TEST_H | 20 | #ifndef KWIN_WAYLAND_TEST_H | ||
| 21 | #define KWIN_WAYLAND_TEST_H | 21 | #define KWIN_WAYLAND_TEST_H | ||
| 22 | 22 | | |||
| 23 | #include "../../main.h" | 23 | #include "../../main.h" | ||
| 24 | 24 | | |||
| 25 | // Qt | 25 | // Qt | ||
| 26 | #include <QtTest> | 26 | #include <QtTest> | ||
| 27 | 27 | | |||
zzag: That's not Qt include. :-) | |||||
| 28 | // KWayland | ||||
| 29 | #include <KWayland/Client/xdgshell.h> | ||||
| 30 | | ||||
| 28 | namespace KWayland | 31 | namespace KWayland | ||
| 29 | { | 32 | { | ||
| 30 | namespace Client | 33 | namespace Client | ||
| 31 | { | 34 | { | ||
| 32 | class AppMenuManager; | 35 | class AppMenuManager; | ||
| 33 | class ConnectionThread; | 36 | class ConnectionThread; | ||
| 34 | class Compositor; | 37 | class Compositor; | ||
| 35 | class IdleInhibitManager; | 38 | class IdleInhibitManager; | ||
| 36 | class PlasmaShell; | 39 | class PlasmaShell; | ||
| 37 | class PlasmaWindowManagement; | 40 | class PlasmaWindowManagement; | ||
| 38 | class PointerConstraints; | 41 | class PointerConstraints; | ||
| 39 | class Seat; | 42 | class Seat; | ||
| 40 | class ServerSideDecorationManager; | 43 | class ServerSideDecorationManager; | ||
| 41 | class ShadowManager; | 44 | class ShadowManager; | ||
| 42 | class Shell; | 45 | class Shell; | ||
| 43 | class ShellSurface; | 46 | class ShellSurface; | ||
| 44 | class ShmPool; | 47 | class ShmPool; | ||
| 45 | class Surface; | 48 | class Surface; | ||
| 46 | class XdgShellSurface; | | |||
| 47 | } | 49 | } | ||
| 48 | } | 50 | } | ||
| 49 | 51 | | |||
| 50 | namespace KWin | 52 | namespace KWin | ||
| 51 | { | 53 | { | ||
| 52 | 54 | | |||
| 53 | class AbstractClient; | 55 | class AbstractClient; | ||
| 54 | class ShellClient; | 56 | class ShellClient; | ||
| ▲ Show 20 Lines • Show All 78 Lines • ▼ Show 20 Line(s) | 132 | enum class ShellSurfaceType { | |||
| 133 | XdgShellV6, | 135 | XdgShellV6, | ||
| 134 | XdgShellStable | 136 | XdgShellStable | ||
| 135 | }; | 137 | }; | ||
| 136 | QObject *createShellSurface(ShellSurfaceType type, KWayland::Client::Surface *surface, QObject *parent = nullptr); | 138 | QObject *createShellSurface(ShellSurfaceType type, KWayland::Client::Surface *surface, QObject *parent = nullptr); | ||
| 137 | KWayland::Client::ShellSurface *createShellSurface(KWayland::Client::Surface *surface, QObject *parent = nullptr); | 139 | KWayland::Client::ShellSurface *createShellSurface(KWayland::Client::Surface *surface, QObject *parent = nullptr); | ||
| 138 | KWayland::Client::XdgShellSurface *createXdgShellV5Surface(KWayland::Client::Surface *surface, QObject *parent = nullptr); | 140 | KWayland::Client::XdgShellSurface *createXdgShellV5Surface(KWayland::Client::Surface *surface, QObject *parent = nullptr); | ||
| 139 | KWayland::Client::XdgShellSurface *createXdgShellV6Surface(KWayland::Client::Surface *surface, QObject *parent = nullptr); | 141 | KWayland::Client::XdgShellSurface *createXdgShellV6Surface(KWayland::Client::Surface *surface, QObject *parent = nullptr); | ||
| 140 | KWayland::Client::XdgShellSurface *createXdgShellStableSurface(KWayland::Client::Surface *surface, QObject *parent = nullptr); | 142 | KWayland::Client::XdgShellSurface *createXdgShellStableSurface(KWayland::Client::Surface *surface, QObject *parent = nullptr); | ||
| 141 | 143 | KWayland::Client::XdgShellPopup *createXdgShellStablePopup(KWayland::Client::Surface *surface, KWayland::Client::XdgShellSurface *parentSurface, const KWayland::Client::XdgPositioner &positioner, QObject *parent = nullptr); | |||
| 142 | 144 | | |||
| 143 | /** | 145 | /** | ||
| 144 | * Creates a shared memory buffer of @p size in @p color and attaches it to the @p surface. | 146 | * Creates a shared memory buffer of @p size in @p color and attaches it to the @p surface. | ||
| 145 | * The @p surface gets damaged and committed, thus it's rendered. | 147 | * The @p surface gets damaged and committed, thus it's rendered. | ||
| 146 | **/ | 148 | **/ | ||
| 147 | void render(KWayland::Client::Surface *surface, const QSize &size, const QColor &color, const QImage::Format &format = QImage::Format_ARGB32_Premultiplied); | 149 | void render(KWayland::Client::Surface *surface, const QSize &size, const QColor &color, const QImage::Format &format = QImage::Format_ARGB32_Premultiplied); | ||
| 148 | 150 | | |||
| 149 | /** | 151 | /** | ||
| ▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines | |||||
That's not Qt include. :-)