Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/kwin_wayland_test.h
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Line(s) | 130 | enum class ShellSurfaceType { | |||
---|---|---|---|---|---|
132 | XdgShellV5, | 132 | XdgShellV5, | ||
133 | XdgShellV6, | 133 | XdgShellV6, | ||
134 | XdgShellStable | 134 | XdgShellStable | ||
135 | }; | 135 | }; | ||
136 | QObject *createShellSurface(ShellSurfaceType type, KWayland::Client::Surface *surface, QObject *parent = nullptr); | 136 | QObject *createShellSurface(ShellSurfaceType type, KWayland::Client::Surface *surface, QObject *parent = nullptr); | ||
137 | KWayland::Client::ShellSurface *createShellSurface(KWayland::Client::Surface *surface, QObject *parent = nullptr); | 137 | KWayland::Client::ShellSurface *createShellSurface(KWayland::Client::Surface *surface, QObject *parent = nullptr); | ||
138 | KWayland::Client::XdgShellSurface *createXdgShellV5Surface(KWayland::Client::Surface *surface, QObject *parent = nullptr); | 138 | KWayland::Client::XdgShellSurface *createXdgShellV5Surface(KWayland::Client::Surface *surface, QObject *parent = nullptr); | ||
139 | KWayland::Client::XdgShellSurface *createXdgShellV6Surface(KWayland::Client::Surface *surface, QObject *parent = nullptr); | 139 | KWayland::Client::XdgShellSurface *createXdgShellV6Surface(KWayland::Client::Surface *surface, QObject *parent = nullptr); | ||
140 | KWayland::Client::XdgShellSurface *createXdgShellStableSurface(KWayland::Client::Surface *surface, QObject *parent = nullptr); | ||||
140 | 141 | | |||
141 | 142 | | |||
142 | /** | 143 | /** | ||
143 | * Creates a shared memory buffer of @p size in @p color and attaches it to the @p surface. | 144 | * Creates a shared memory buffer of @p size in @p color and attaches it to the @p surface. | ||
144 | * The @p surface gets damaged and committed, thus it's rendered. | 145 | * The @p surface gets damaged and committed, thus it's rendered. | ||
145 | **/ | 146 | **/ | ||
146 | void render(KWayland::Client::Surface *surface, const QSize &size, const QColor &color, const QImage::Format &format = QImage::Format_ARGB32_Premultiplied); | 147 | void render(KWayland::Client::Surface *surface, const QSize &size, const QColor &color, const QImage::Format &format = QImage::Format_ARGB32_Premultiplied); | ||
147 | 148 | | |||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |