QWaylandXdgSurface Class

The QWaylandXdgSurface class provides desktop-style compositor-specific features to an xdg surface. 更多...

頭: #include <QWaylandXdgSurface>
qmake: QT += waylandcompositor
Since: Qt 5.12
繼承: QWaylandShellSurfaceTemplate

特性

公共函數

QWaylandXdgSurface ()
QWaylandXdgSurface (QWaylandXdgShell * xdgShell , QWaylandSurface * surface , const QWaylandResource & res )
QQmlListProperty<QObject> data ()
void initialize (QWaylandXdgShell * xdgShell , QWaylandSurface * surface , const QWaylandResource & resource )
QWaylandXdgPopup * popup () const
QWaylandXdgShell * shell () const
QWaylandSurface * surface () const
QWaylandXdgToplevel * toplevel () const
QRect windowGeometry () const

重實現公共函數

virtual QWaylandQuickShellIntegration * createIntegration (QWaylandQuickShellSurfaceItem * item ) override
virtual Qt::WindowType windowType () const override

信號

void popupCreated ()
void shellChanged ()
void surfaceChanged ()
void toplevelCreated ()
void windowGeometryChanged ()

靜態公共成員

void appendFunction (QQmlListProperty<QObject> * list , QObject * object )
QObject * atFunction (QQmlListProperty<QObject> * list , int index )
void clearFunction (QQmlListProperty<QObject> * list )
int countFunction (QQmlListProperty<QObject> * list )
QWaylandXdgSurface * fromResource (::wl_resource * resource )
const struct wl_interface * interface ()
const QMetaObject staticMetaObject

額外繼承成員

詳細描述

The QWaylandXdgSurface class provides desktop-style compositor-specific features to an xdg surface.

此類屬於 QWaylandXdgShell 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 xdg_surface .

特性文檔編製

This property holds the properties and methods that are specific to the popup QWaylandXdgSurface .

訪問函數:

QWaylandXdgPopup * popup () const

通知程序信號:

void popupCreated ()

另請參閱 QWaylandXdgSurface::toplevel and QWaylandXdgShell::popupCreated .

shell : QWaylandXdgShell * const

This property holds the shell associated with this QWaylandXdgSurface .

訪問函數:

QWaylandXdgShell * shell () const

通知程序信號:

void shellChanged ()

surface : QWaylandSurface * const

This property holds the surface associated with this QWaylandXdgSurface .

訪問函數:

QWaylandSurface * surface () const

通知程序信號:

void surfaceChanged ()

toplevel : QWaylandXdgToplevel * const

This property holds the properties and methods that are specific to the toplevel QWaylandXdgSurface .

訪問函數:

QWaylandXdgToplevel * toplevel () const

通知程序信號:

void toplevelCreated ()

另請參閱 QWaylandXdgSurface::popup and QWaylandXdgShell::toplevelCreated .

windowGeometry : const QRect

This property holds the window geometry of the QWaylandXdgSurface . The window geometry describes the window's visible bounds from the user's perspective. The geometry includes title bars and borders if drawn by the client, but excludes drop shadows. It is meant to be used for aligning and tiling windows.

訪問函數:

QRect windowGeometry () const

通知程序信號:

void windowGeometryChanged ()

成員函數文檔編製

QWaylandXdgSurface:: QWaylandXdgSurface ()

構造 QWaylandXdgSurface .

QWaylandXdgSurface:: QWaylandXdgSurface ( QWaylandXdgShell * xdgShell , QWaylandSurface * surface , const QWaylandResource & res )

構造 QWaylandXdgSurface for surface and initializes it with the given xdgShell , surface , and resource res .

[static] void QWaylandXdgSurface:: appendFunction ( QQmlListProperty < QObject > * list , QObject * object )

[static] QObject *QWaylandXdgSurface:: atFunction ( QQmlListProperty < QObject > * list , int index )

[static] void QWaylandXdgSurface:: clearFunction ( QQmlListProperty < QObject > * list )

[static] int QWaylandXdgSurface:: countFunction ( QQmlListProperty < QObject > * list )

[override virtual] QWaylandQuickShellIntegration *QWaylandXdgSurface:: createIntegration ( QWaylandQuickShellSurfaceItem * item )

QQmlListProperty < QObject > QWaylandXdgSurface:: data ()

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

返迴 QWaylandXdgSurface corresponding to the resource .

void QWaylandXdgSurface:: initialize ( QWaylandXdgShell * xdgShell , QWaylandSurface * surface , const QWaylandResource & resource )

初始化 QWaylandXdgSurface , associating it with the given xdgShell , surface and resource .

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

[static] const struct wl_interface *QWaylandXdgSurface:: interface ()

返迴 Wayland 接口為 QWaylandXdgSurface .

[override virtual] Qt::WindowType QWaylandXdgSurface:: windowType () const