20 #ifndef WAYLAND_SERVER_SURFACE_INTERFACE_H 21 #define WAYLAND_SERVER_SURFACE_INTERFACE_H 24 #include "output_interface.h" 30 #include <KWayland/Server/kwaylandserver_export.h> 36 class BlurManagerInterface;
38 class BufferInterface;
39 class ConfinedPointerInterface;
40 class ContrastInterface;
41 class ContrastManagerInterface;
42 class CompositorInterface;
43 class IdleInhibitManagerUnstableV1Interface;
44 class LockedPointerInterface;
45 class PointerConstraintsUnstableV1Interface;
46 class ShadowManagerInterface;
47 class ShadowInterface;
49 class SubSurfaceInterface;
82 Q_PROPERTY(
QRegion damage READ damage NOTIFY damaged)
86 Q_PROPERTY(
QRegion opaque READ opaque NOTIFY opaqueChanged)
90 Q_PROPERTY(
QRegion input READ input NOTIFY inputChanged)
91 Q_PROPERTY(qint32 scale READ scale NOTIFY scaleChanged)
93 Q_PROPERTY(
QSize size READ size NOTIFY sizeChanged)
97 void frameRendered(quint32 msec);
102 #if KWAYLANDSERVER_ENABLE_DEPRECATED_SINCE(5, 5) 107 KWAYLANDSERVER_DEPRECATED_VERSION(5, 5,
"Use SurfaceInterface::inputIsInfinite()")
108 bool inputIsInfitine() const;
114 bool inputIsInfinite()
const;
115 qint32 scale()
const;
116 OutputInterface::Transform transform()
const;
172 bool isMapped()
const;
200 void resetTrackedDamage();
214 SurfaceInterface *surfaceAt(
const QPointF &position);
229 SurfaceInterface *inputSurfaceAt(
const QPointF &position);
268 bool inhibitsIdle()
const;
273 static SurfaceInterface *
get(wl_resource *native);
288 void setDataProxy(SurfaceInterface *surface);
294 SurfaceInterface* dataProxy()
const;
306 void opaqueChanged(
const QRegion&);
307 void inputChanged(
const QRegion&);
308 void scaleChanged(qint32);
309 void transformChanged(KWayland::Server::OutputInterface::Transform);
321 void shadowChanged();
329 void slideOnShowHideChanged();
333 void contrastChanged();
338 void subSurfaceTreeChanged();
350 void pointerConstraintsChanged();
357 void inhibitsIdleChanged();
375 friend class IdleInhibitManagerUnstableV1Interface;
376 friend class PointerConstraintsUnstableV1Interface;
377 friend class SurfaceRole;
381 Private *d_func()
const;
Global for the wl_output interface.
Resource representing a wl_surface.
Represents the Global for org_kde_kwin_contrast_manager interface.
Reference counted representation of a Wayland buffer on Server side.
Represents the Global for org_kde_kwin_blur_manager interface.
Represents the Global for wl_compositor interface.
Represents a bound Resource.
Convenient Class which represents a wl_client.