QWaylandSurface Class▲
-
Header: QWaylandSurface
-
Since: Qt 5.8
-
qmake: QT += waylandcompositor
Detailed Description▲
This class encapsulates a rectangular area of pixels that is displayed on an output device. It corresponds to the interface wl_surface in the Wayland protocol.
Member Function Documentation▲
void QWaylandSurface::childAdded(QWaylandSurface *child)▲
This signal is emitted when a wl_subsurface, child, has been added to the surface.
int QWaylandSurface::destroy()▲
Destroys the https://.
void QWaylandSurface::dragStarted(QWaylandDrag *drag)▲
This signal is emitted when a drag has started from this surface.
int QWaylandSurface::frameStarted()▲
Prepares all frame callbacks for sending.
[static] QWaylandSurface *QWaylandSurface::fromResource(::wl_resource *resource)▲
Returns the https:// corresponding to the Wayland resource resource.
int QWaylandSurface::isDestroyed() const▲
Returns true if the https:// has been destroyed. Otherwise returns false.
QWaylandView *QWaylandSurface::primaryView() const▲
struct wl_resource *QWaylandSurface::resource() const▲
Returns the Wayland resource corresponding to this https://.
int QWaylandSurface::sendFrameCallbacks()▲
Sends pending frame callbacks.
void QWaylandSurface::setPrimaryView(QWaylandView *view)▲
Sets this https://'s primary view to view, in case there are multiple views of this surface. The primary view is the view that governs the client's refresh rate. It takes care of discarding buffer references when QWaylandView::advance() is called. See the documentation for QWaylandView::advance() for more details.
In shell surface integrations, such as QWaylandWlShellIntegration and QWaylandXdgShellV5Integration, maximize and fullscreen requests from the client will only have an effect if the integration has the primary view of the surface.
See Also▲
See also https://(), QWaylandView::advance()
void QWaylandSurface::surfaceDestroyed()▲
This signal is emitted when the corresponing wl_surface is destroyed.
int QWaylandSurface::views() const▲
Returns the views for this https://.


