QWaylandWlShellSurface Class

The QWaylandWlShellSurface class provides desktop-style compositor-specific features to a surface. 更多...

頭: #include <QWaylandWlShellSurface>
qmake: QT += waylandcompositor
Since: Qt 5.8
實例化: WlShellSurface
繼承: QWaylandShellSurfaceTemplate

該類在 Qt 5.8 引入。

公共類型

enum ResizeEdge { NoneEdge, TopEdge, BottomEdge, LeftEdge, TopLeftEdge, …, BottomRightEdge }

特性

公共函數

QWaylandWlShellSurface (QWaylandWlShell * shell , QWaylandSurface * surface , const QWaylandResource & res )
QWaylandWlShellSurface ()
QString className () const
void initialize (QWaylandWlShell * shell , QWaylandSurface * surface , const QWaylandResource & resource )
void sendConfigure (const QSize & size , QWaylandWlShellSurface::ResizeEdge edges )
void sendPopupDone ()
QWaylandWlShell * shell () const
QWaylandSurface * surface () const
QString title () const

公共槽

void ping ()

信號

void classNameChanged ()
void shellChanged ()
void surfaceChanged ()
void titleChanged ()

靜態公共成員

QWaylandWlShellSurface * fromResource (wl_resource * resource )

詳細描述

此類屬於 QWaylandWlShell extension and provides a way to extend the functionality of an existing QWaylandSurface with features specific to desktop-style compositors, such as resizing and moving the surface.

It corresponds to the Wayland interface wl_shell_surface .

成員類型文檔編製

enum QWaylandWlShellSurface:: ResizeEdge

This enum type provides a way to specify an edge or corner of the surface.

常量 描述
QWaylandWlShellSurface::NoneEdge 0 No edge.
QWaylandWlShellSurface::TopEdge 1 The top edge.
QWaylandWlShellSurface::BottomEdge 2 The bottom edge.
QWaylandWlShellSurface::LeftEdge 4 The left edge.
QWaylandWlShellSurface::TopLeftEdge 5 The top left corner.
QWaylandWlShellSurface::BottomLeftEdge 6 The bottom left corner.
QWaylandWlShellSurface::RightEdge 8 The right edge.
QWaylandWlShellSurface::TopRightEdge 9 The top right corner.
QWaylandWlShellSurface::BottomRightEdge 10 The bottom right corner.

特性文檔編製

className : const QString

This property holds the class name of the QWaylandWlShellSurface .

訪問函數:

QString className () const

通知程序信號:

void classNameChanged ()

shell : QWaylandWlShell * const

This property holds the shell associated with this QWaylandWlShellSurface .

訪問函數:

QWaylandWlShell * shell () const

通知程序信號:

void shellChanged ()

surface : QWaylandSurface * const

This property holds the surface associated with this QWaylandWlShellSurface .

訪問函數:

QWaylandSurface * surface () const

通知程序信號:

void surfaceChanged ()

title : const QString

This property holds the title of the QWaylandWlShellSurface .

訪問函數:

QString title () const

通知程序信號:

void titleChanged ()

成員函數文檔編製

QWaylandWlShellSurface:: QWaylandWlShellSurface ( QWaylandWlShell * shell , QWaylandSurface * surface , const QWaylandResource & res )

Constructs a QWaylandWlShellSurface for surface and initializes it with the given shell and resource res .

QWaylandWlShellSurface:: QWaylandWlShellSurface ()

Constructs a QWaylandWlShellSurface.

[slot] void QWaylandWlShellSurface:: ping ()

Sends a ping event to the client. If the client replies to the event the pong signal will be emitted.

[static] QWaylandWlShellSurface *QWaylandWlShellSurface:: fromResource ( wl_resource * resource )

返迴 QWaylandWlShellSurface object associated with the given resource , or null if no such object exists.

void QWaylandWlShellSurface:: initialize ( QWaylandWlShell * shell , QWaylandSurface * surface , const QWaylandResource & resource )

初始化 QWaylandWlShellSurface and associates it with the given shell , surface ,和 resource .

注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .

void QWaylandWlShellSurface:: sendConfigure (const QSize & size , QWaylandWlShellSurface::ResizeEdge edges )

Sends a configure event to the client, suggesting that it resize its surface to the provided size edges provide a hint about how the surface was resized.

注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .

void QWaylandWlShellSurface:: sendPopupDone ()

Sends a popup_done event to the client to indicate that the user has clicked somewhere outside the client's surfaces.

注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .