Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/kwin_wayland_test.h
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Line(s) | |||||
129 | bool waitForWaylandKeyboard(); | 129 | bool waitForWaylandKeyboard(); | ||
130 | 130 | | |||
131 | void flushWaylandConnection(); | 131 | void flushWaylandConnection(); | ||
132 | 132 | | |||
133 | KWayland::Client::Surface *createSurface(QObject *parent = nullptr); | 133 | KWayland::Client::Surface *createSurface(QObject *parent = nullptr); | ||
134 | KWayland::Client::SubSurface *createSubSurface(KWayland::Client::Surface *surface, | 134 | KWayland::Client::SubSurface *createSubSurface(KWayland::Client::Surface *surface, | ||
135 | KWayland::Client::Surface *parentSurface, QObject *parent = nullptr); | 135 | KWayland::Client::Surface *parentSurface, QObject *parent = nullptr); | ||
136 | enum class XdgShellSurfaceType { | 136 | enum class XdgShellSurfaceType { | ||
137 | XdgShellV5, | | |||
138 | XdgShellV6, | 137 | XdgShellV6, | ||
139 | XdgShellStable | 138 | XdgShellStable | ||
140 | }; | 139 | }; | ||
141 | 140 | | |||
142 | enum class CreationSetup { | 141 | enum class CreationSetup { | ||
143 | CreateOnly, | 142 | CreateOnly, | ||
144 | CreateAndConfigure, /// commit and wait for the configure event, making this surface ready to commit buffers | 143 | CreateAndConfigure, /// commit and wait for the configure event, making this surface ready to commit buffers | ||
145 | }; | 144 | }; | ||
146 | 145 | | |||
147 | KWayland::Client::XdgShellSurface *createXdgShellSurface(XdgShellSurfaceType type, | 146 | KWayland::Client::XdgShellSurface *createXdgShellSurface(XdgShellSurfaceType type, | ||
148 | KWayland::Client::Surface *surface, | 147 | KWayland::Client::Surface *surface, | ||
149 | QObject *parent = nullptr, | 148 | QObject *parent = nullptr, | ||
150 | CreationSetup creationSetup = CreationSetup::CreateAndConfigure); | 149 | CreationSetup creationSetup = CreationSetup::CreateAndConfigure); | ||
151 | 150 | | |||
152 | KWayland::Client::XdgShellSurface *createXdgShellV5Surface(KWayland::Client::Surface *surface, | | |||
153 | QObject *parent = nullptr, | | |||
154 | CreationSetup = CreationSetup::CreateAndConfigure); | | |||
155 | KWayland::Client::XdgShellSurface *createXdgShellV6Surface(KWayland::Client::Surface *surface, | 151 | KWayland::Client::XdgShellSurface *createXdgShellV6Surface(KWayland::Client::Surface *surface, | ||
156 | QObject *parent = nullptr, | 152 | QObject *parent = nullptr, | ||
157 | CreationSetup = CreationSetup::CreateAndConfigure); | 153 | CreationSetup = CreationSetup::CreateAndConfigure); | ||
158 | KWayland::Client::XdgShellSurface *createXdgShellStableSurface(KWayland::Client::Surface *surface, | 154 | KWayland::Client::XdgShellSurface *createXdgShellStableSurface(KWayland::Client::Surface *surface, | ||
159 | QObject *parent = nullptr, | 155 | QObject *parent = nullptr, | ||
160 | CreationSetup = CreationSetup::CreateAndConfigure); | 156 | CreationSetup = CreationSetup::CreateAndConfigure); | ||
161 | KWayland::Client::XdgShellPopup *createXdgShellStablePopup(KWayland::Client::Surface *surface, | 157 | KWayland::Client::XdgShellPopup *createXdgShellStablePopup(KWayland::Client::Surface *surface, | ||
162 | KWayland::Client::XdgShellSurface *parentSurface, | 158 | KWayland::Client::XdgShellSurface *parentSurface, | ||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |