Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/kwin_wayland_test.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | |||||
53 | namespace KWin | 53 | namespace KWin | ||
54 | { | 54 | { | ||
55 | namespace Xwl | 55 | namespace Xwl | ||
56 | { | 56 | { | ||
57 | class Xwayland; | 57 | class Xwayland; | ||
58 | } | 58 | } | ||
59 | 59 | | |||
60 | class AbstractClient; | 60 | class AbstractClient; | ||
61 | class ShellClient; | 61 | class XdgShellClient; | ||
62 | 62 | | |||
63 | class WaylandTestApplication : public ApplicationWaylandAbstract | 63 | class WaylandTestApplication : public ApplicationWaylandAbstract | ||
64 | { | 64 | { | ||
65 | Q_OBJECT | 65 | Q_OBJECT | ||
66 | public: | 66 | public: | ||
67 | WaylandTestApplication(OperationMode mode, int &argc, char **argv); | 67 | WaylandTestApplication(OperationMode mode, int &argc, char **argv); | ||
68 | ~WaylandTestApplication() override; | 68 | ~WaylandTestApplication() override; | ||
69 | 69 | | |||
▲ Show 20 Lines • Show All 106 Lines • ▼ Show 20 Line(s) | |||||
176 | void render(KWayland::Client::Surface *surface, const QSize &size, const QColor &color, const QImage::Format &format = QImage::Format_ARGB32_Premultiplied); | 176 | void render(KWayland::Client::Surface *surface, const QSize &size, const QColor &color, const QImage::Format &format = QImage::Format_ARGB32_Premultiplied); | ||
177 | 177 | | |||
178 | /** | 178 | /** | ||
179 | * Creates a shared memory buffer using the supplied image @p img and attaches it to the @p surface | 179 | * Creates a shared memory buffer using the supplied image @p img and attaches it to the @p surface | ||
180 | */ | 180 | */ | ||
181 | void render(KWayland::Client::Surface *surface, const QImage &img); | 181 | void render(KWayland::Client::Surface *surface, const QImage &img); | ||
182 | 182 | | |||
183 | /** | 183 | /** | ||
184 | * Waits till a new ShellClient is shown and returns the created ShellClient. | 184 | * Waits till a new XdgShellClient is shown and returns the created XdgShellClient. | ||
185 | * If no ShellClient gets shown during @p timeout @c null is returned. | 185 | * If no XdgShellClient gets shown during @p timeout @c null is returned. | ||
186 | */ | 186 | */ | ||
187 | ShellClient *waitForWaylandWindowShown(int timeout = 5000); | 187 | XdgShellClient *waitForWaylandWindowShown(int timeout = 5000); | ||
188 | 188 | | |||
189 | /** | 189 | /** | ||
190 | * Combination of @link{render} and @link{waitForWaylandWindowShown}. | 190 | * Combination of @link{render} and @link{waitForWaylandWindowShown}. | ||
191 | */ | 191 | */ | ||
192 | ShellClient *renderAndWaitForShown(KWayland::Client::Surface *surface, const QSize &size, const QColor &color, const QImage::Format &format = QImage::Format_ARGB32, int timeout = 5000); | 192 | XdgShellClient *renderAndWaitForShown(KWayland::Client::Surface *surface, const QSize &size, const QColor &color, const QImage::Format &format = QImage::Format_ARGB32, int timeout = 5000); | ||
193 | 193 | | |||
194 | /** | 194 | /** | ||
195 | * Waits for the @p client to be destroyed. | 195 | * Waits for the @p client to be destroyed. | ||
196 | */ | 196 | */ | ||
197 | bool waitForWindowDestroyed(AbstractClient *client); | 197 | bool waitForWindowDestroyed(AbstractClient *client); | ||
198 | 198 | | |||
199 | /** | 199 | /** | ||
200 | * Locks the screen and waits till the screen is locked. | 200 | * Locks the screen and waits till the screen is locked. | ||
Show All 40 Lines |