Changeset View
Changeset View
Standalone View
Standalone View
src/server/surface_interface.h
Show All 34 Lines | |||||
35 | { | 35 | { | ||
36 | class BlurManagerInterface; | 36 | class BlurManagerInterface; | ||
37 | class BlurInterface; | 37 | class BlurInterface; | ||
38 | class BufferInterface; | 38 | class BufferInterface; | ||
39 | class ConfinedPointerInterface; | 39 | class ConfinedPointerInterface; | ||
40 | class ContrastInterface; | 40 | class ContrastInterface; | ||
41 | class ContrastManagerInterface; | 41 | class ContrastManagerInterface; | ||
42 | class CompositorInterface; | 42 | class CompositorInterface; | ||
43 | class IdleInhibitManagerUnstableV1Interface; | ||||
43 | class LockedPointerInterface; | 44 | class LockedPointerInterface; | ||
44 | class PointerConstraintsUnstableV1Interface; | 45 | class PointerConstraintsUnstableV1Interface; | ||
45 | class ShadowManagerInterface; | 46 | class ShadowManagerInterface; | ||
46 | class ShadowInterface; | 47 | class ShadowInterface; | ||
47 | class SlideInterface; | 48 | class SlideInterface; | ||
48 | class SubSurfaceInterface; | 49 | class SubSurfaceInterface; | ||
49 | 50 | | |||
50 | /** | 51 | /** | ||
▲ Show 20 Lines • Show All 187 Lines • ▼ Show 20 Line(s) | 94 | public: | |||
238 | /** | 239 | /** | ||
239 | * Pointer lock installed on this SurfaceInterface. | 240 | * Pointer lock installed on this SurfaceInterface. | ||
240 | * @see pointerConstraintsChanged | 241 | * @see pointerConstraintsChanged | ||
241 | * @since 5.29 | 242 | * @since 5.29 | ||
242 | **/ | 243 | **/ | ||
243 | QPointer<LockedPointerInterface> lockedPointer() const; | 244 | QPointer<LockedPointerInterface> lockedPointer() const; | ||
244 | 245 | | |||
245 | /** | 246 | /** | ||
247 | * @returns Whether this SurfaceInterface wants idle to be inhibited on the Output it is shown | ||||
248 | * @see inhibitsIdleChanged | ||||
249 | * @since 5.41 | ||||
250 | **/ | ||||
251 | bool inhibitsIdle() const; | ||||
252 | | ||||
253 | /** | ||||
246 | * @returns The SurfaceInterface for the @p native resource. | 254 | * @returns The SurfaceInterface for the @p native resource. | ||
247 | **/ | 255 | **/ | ||
248 | static SurfaceInterface *get(wl_resource *native); | 256 | static SurfaceInterface *get(wl_resource *native); | ||
249 | /** | 257 | /** | ||
250 | * @returns The SurfaceInterface with given @p id for @p client, if it exists, otherwise @c nullptr. | 258 | * @returns The SurfaceInterface with given @p id for @p client, if it exists, otherwise @c nullptr. | ||
251 | * @since 5.3 | 259 | * @since 5.3 | ||
252 | **/ | 260 | **/ | ||
253 | static SurfaceInterface *get(quint32 id, const ClientConnection *client); | 261 | static SurfaceInterface *get(quint32 id, const ClientConnection *client); | ||
▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | 263 | Q_SIGNALS: | |||
303 | * the lock/confinement. | 311 | * the lock/confinement. | ||
304 | * | 312 | * | ||
305 | * @see confinedPointer | 313 | * @see confinedPointer | ||
306 | * @see lockedPointer | 314 | * @see lockedPointer | ||
307 | * @since 5.29 | 315 | * @since 5.29 | ||
308 | **/ | 316 | **/ | ||
309 | void pointerConstraintsChanged(); | 317 | void pointerConstraintsChanged(); | ||
310 | 318 | | |||
319 | /** | ||||
320 | * Emitted whenever the SurfaceInterface starts/ends to inhibit idle. | ||||
321 | * @see inhibitsIdle | ||||
322 | * @since 5.41 | ||||
323 | **/ | ||||
324 | void inhibitsIdleChanged(); | ||||
325 | | ||||
311 | private: | 326 | private: | ||
312 | friend class CompositorInterface; | 327 | friend class CompositorInterface; | ||
313 | friend class SubSurfaceInterface; | 328 | friend class SubSurfaceInterface; | ||
314 | friend class ShadowManagerInterface; | 329 | friend class ShadowManagerInterface; | ||
315 | friend class BlurManagerInterface; | 330 | friend class BlurManagerInterface; | ||
316 | friend class SlideManagerInterface; | 331 | friend class SlideManagerInterface; | ||
317 | friend class ContrastManagerInterface; | 332 | friend class ContrastManagerInterface; | ||
333 | friend class IdleInhibitManagerUnstableV1Interface; | ||||
318 | friend class PointerConstraintsUnstableV1Interface; | 334 | friend class PointerConstraintsUnstableV1Interface; | ||
319 | explicit SurfaceInterface(CompositorInterface *parent, wl_resource *parentResource); | 335 | explicit SurfaceInterface(CompositorInterface *parent, wl_resource *parentResource); | ||
320 | 336 | | |||
321 | class Private; | 337 | class Private; | ||
322 | Private *d_func() const; | 338 | Private *d_func() const; | ||
323 | }; | 339 | }; | ||
324 | 340 | | |||
325 | } | 341 | } | ||
326 | } | 342 | } | ||
327 | 343 | | |||
328 | Q_DECLARE_METATYPE(KWayland::Server::SurfaceInterface*) | 344 | Q_DECLARE_METATYPE(KWayland::Server::SurfaceInterface*) | ||
329 | 345 | | |||
330 | #endif | 346 | #endif |