KWayland
6 #ifndef WAYLAND_SURFACE_H 7 #define WAYLAND_SURFACE_H 16 #include <KWayland/Client/kwaylandclient_export.h> 72 static Surface *fromQtWinId(WId wid);
79 void setup(wl_surface *surface);
104 bool isValid()
const;
118 void setupFrameCallback();
135 void commit(
CommitFlag flag = CommitFlag::FrameCallback);
140 void damage(
const QRect &rect);
145 void damage(
const QRegion ®ion);
151 void damageBuffer(
const QRect &rect);
157 void damageBuffer(
const QRegion ®ion);
163 void attachBuffer(wl_buffer *buffer,
const QPoint &offset =
QPoint());
186 void setInputRegion(
const Region *region =
nullptr);
201 void setOpaqueRegion(
const Region *region =
nullptr);
202 void setSize(
const QSize &size);
222 void setScale(qint32 scale);
228 qint32 scale()
const;
230 operator wl_surface*();
231 operator wl_surface*()
const;
255 static Surface *
get(wl_surface *native);
265 void frameRendered();
266 void sizeChanged(
const QSize&);
Wrapper class for wl_buffer interface.
CommitFlag
Flags to be added to commit.
Wrapper for the wl_output interface.
Wrapper for the wl_surface interface.
Wrapper for the wl_region interface.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 03:00:33 by
doxygen 1.8.11 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.