KWayland
6 #ifndef WAYLAND_SURFACE_H
7 #define WAYLAND_SURFACE_H
16 #include "KWayland/Client/kwaylandclient_export.h"
74 static Surface *fromQtWinId(WId wid);
81 void setup(wl_surface *surface);
106 bool isValid()
const;
120 void setupFrameCallback();
137 void commit(CommitFlag flag = CommitFlag::FrameCallback);
142 void damage(
const QRect &rect);
147 void damage(
const QRegion ®ion);
153 void damageBuffer(
const QRect &rect);
159 void damageBuffer(
const QRegion ®ion);
165 void attachBuffer(wl_buffer *buffer,
const QPoint &offset =
QPoint());
188 void setInputRegion(
const Region *region =
nullptr);
203 void setOpaqueRegion(
const Region *region =
nullptr);
204 void setSize(
const QSize &size);
224 void setScale(qint32 scale);
230 qint32 scale()
const;
232 operator wl_surface *();
233 operator wl_surface *()
const;
267 void frameRendered();
268 void sizeChanged(
const QSize &);
Wrapper for the wl_output interface.
virtual void release(quint64 objid)
Wrapper for the wl_surface interface.
Wrapper class for wl_buffer interface.
CommitFlag
Flags to be added to commit.
Wrapper for the wl_region interface.
virtual QVariant get(ScriptableExtension *callerPrincipal, quint64 objId, const QString &propName)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 03:55:52 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.