6 #ifndef WAYLAND_SERVER_SURFACE_INTERFACE_H 7 #define WAYLAND_SERVER_SURFACE_INTERFACE_H 10 #include "output_interface.h" 16 #include <KWayland/Server/kwaylandserver_export.h> 22 class BlurManagerInterface;
24 class BufferInterface;
25 class ConfinedPointerInterface;
26 class ContrastInterface;
27 class ContrastManagerInterface;
28 class CompositorInterface;
29 class IdleInhibitManagerUnstableV1Interface;
30 class LockedPointerInterface;
31 class PointerConstraintsUnstableV1Interface;
32 class ShadowManagerInterface;
33 class ShadowInterface;
35 class SubSurfaceInterface;
68 Q_PROPERTY(
QRegion damage READ damage NOTIFY damaged)
72 Q_PROPERTY(
QRegion opaque READ opaque NOTIFY opaqueChanged)
76 Q_PROPERTY(
QRegion input READ input NOTIFY inputChanged)
77 Q_PROPERTY(qint32 scale READ scale NOTIFY scaleChanged)
79 Q_PROPERTY(
QSize size READ size NOTIFY sizeChanged)
83 void frameRendered(quint32 msec);
88 #if KWAYLANDSERVER_ENABLE_DEPRECATED_SINCE(5, 5) 93 KWAYLANDSERVER_DEPRECATED_VERSION(5, 5,
"Use SurfaceInterface::inputIsInfinite()")
94 bool inputIsInfitine() const;
100 bool inputIsInfinite()
const;
101 qint32 scale()
const;
102 OutputInterface::Transform transform()
const;
122 QRect boundingRect()
const;
166 bool isMapped()
const;
194 void resetTrackedDamage();
208 SurfaceInterface *surfaceAt(
const QPointF &position);
223 SurfaceInterface *inputSurfaceAt(
const QPointF &position);
262 bool inhibitsIdle()
const;
267 static SurfaceInterface *
get(wl_resource *native);
282 void setDataProxy(SurfaceInterface *surface);
288 SurfaceInterface* dataProxy()
const;
300 void opaqueChanged(
const QRegion&);
301 void inputChanged(
const QRegion&);
302 void scaleChanged(qint32);
303 void transformChanged(KWayland::Server::OutputInterface::Transform);
315 void shadowChanged();
323 void slideOnShowHideChanged();
327 void contrastChanged();
332 void subSurfaceTreeChanged();
354 void pointerConstraintsChanged();
361 void inhibitsIdleChanged();
379 friend class IdleInhibitManagerUnstableV1Interface;
380 friend class PointerConstraintsUnstableV1Interface;
381 friend class SurfaceRole;
385 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.