QWaylandXdgSurfaceV5 Class
The QWaylandXdgSurfaceV5 class provides desktop-style compositor-specific features to an xdg surface. 更多...
头文件: | #include <QWaylandXdgSurfaceV5> |
qmake: | QT += waylandcompositor |
开始支持版本: | Qt 5.8 |
基类: | QWaylandShellSurfaceTemplate |
公有类型
enum | ResizeEdge { NoneEdge, TopEdge, BottomEdge, LeftEdge, ..., BottomRightEdge } |
enum | State { MaximizedState, FullscreenState, ResizingState, ActivatedState } |
属性
|
|
- 1 个属性继承自 QWaylandShellSurface
公有函数
QWaylandXdgSurfaceV5() | |
QWaylandXdgSurfaceV5(QWaylandXdgShellV5 *xdgShell, QWaylandSurface *surface, const QWaylandResource &res) | |
bool | activated() const |
QString | appId() const |
bool | fullscreen() const |
void | initialize(QWaylandXdgShellV5 *xdgShell, QWaylandSurface *surface, const QWaylandResource &resource) |
bool | maximized() const |
QWaylandXdgSurfaceV5 * | parentSurface() const |
bool | resizing() const |
void | sendClose() |
uint | sendConfigure(const QSize &size, const QVector<uint> &states) |
uint | sendConfigure(const QSize &size, const QVector<State> &states) |
uint | sendFullscreen(const QSize &size) |
uint | sendMaximized(const QSize &size) |
uint | sendResizing(const QSize &maxSize) |
uint | sendUnmaximized(const QSize &size = QSize( 0, 0 )) |
QWaylandXdgShellV5 * | shell() const |
QSize | sizeForResize(const QSizeF &size, const QPointF &delta, ResizeEdge edge) |
QVector<uint> | states() const |
QWaylandSurface * | surface() const |
QString | title() const |
QRect | windowGeometry() const |
重新实现的公有函数
virtual Qt::WindowType | windowType() const override |
- 1 个公有函数继承自 QWaylandShellSurface
- 4 个公有函数继承自 QWaylandCompositorExtension
- 5 个公有函数继承自 QWaylandObject
信号
void | ackConfigure(uint serial) |
void | activatedChanged() |
void | appIdChanged() |
void | fullscreenChanged() |
void | maximizedChanged() |
void | parentSurfaceChanged() |
void | resizingChanged() |
void | setFullscreen(QWaylandOutput *output) |
void | setMaximized() |
void | setMinimized() |
void | setTopLevel() |
void | setTransient() |
void | shellChanged() |
void | showWindowMenu(QWaylandSeat *seat, const QPoint &localSurfacePosition) |
void | startMove(QWaylandSeat *seat) |
void | startResize(QWaylandSeat *seat, ResizeEdge edges) |
void | statesChanged() |
void | surfaceChanged() |
void | titleChanged() |
void | unsetFullscreen() |
void | unsetMaximized() |
void | windowGeometryChanged() |
- 1 个信号继承自 QWaylandShellSurface
静态公有成员
QByteArray | interfaceName() |
QWaylandSurfaceRole * | role() |
其他继承的成员
- 1 个受保护的函数继承自 QWaylandCompositorExtension
详细描述
The QWaylandXdgSurfaceV5 class provides desktop-style compositor-specific features to an xdg surface.
This class is part of the QWaylandXdgShellV5 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.
属性
activated : const bool
访问函数:
bool | activated() const |
Notifier signal:
void | activatedChanged() |
appId : const QString
This property holds the app id of the QWaylandXdgSurfaceV5.
访问函数:
QString | appId() const |
Notifier signal:
void | appIdChanged() |
fullscreen : const bool
访问函数:
bool | fullscreen() const |
Notifier signal:
void | fullscreenChanged() |
maximized : const bool
访问函数:
bool | maximized() const |
Notifier signal:
void | maximizedChanged() |
parentSurface : QWaylandXdgSurfaceV5 * const
This property holds the XdgSurface parent of this XdgSurface. When a parent surface is set, the parentSurfaceChanged() signal is guaranteed to be emitted before setTopLevel() and setTransient().
访问函数:
QWaylandXdgSurfaceV5 * | parentSurface() const |
Notifier signal:
void | parentSurfaceChanged() |
参见 QWaylandXdgSurfaceV5::setTopLevel() and QWaylandXdgSurfaceV5::setTransient().
resizing : const bool
访问函数:
bool | resizing() const |
Notifier signal:
void | resizingChanged() |
shell : QWaylandXdgShellV5 * const
This property holds the shell associated with this QWaylandXdgSurfaceV5.
访问函数:
QWaylandXdgShellV5 * | shell() const |
Notifier signal:
void | shellChanged() |
states : const QList<int>
This property holds the last states the client acknowledged for this QWaylandXdgSurfaceV5.
Notifier signal:
void | statesChanged() |
surface : QWaylandSurface * const
This property holds the surface associated with this QWaylandXdgSurfaceV5.
访问函数:
QWaylandSurface * | surface() const |
Notifier signal:
void | surfaceChanged() |
title : const QString
This property holds the title of the QWaylandXdgSurfaceV5.
访问函数:
QString | title() const |
Notifier signal:
void | titleChanged() |
windowGeometry : const QRect
This property holds the window geometry of the QWaylandXdgSurfaceV5. 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 |
Notifier signal:
void | windowGeometryChanged() |
成员函数
QWaylandXdgSurfaceV5::QWaylandXdgSurfaceV5()
Constructs a QWaylandXdgSurfaceV5.
QWaylandXdgSurfaceV5::QWaylandXdgSurfaceV5(QWaylandXdgShellV5 *xdgShell, QWaylandSurface *surface, const QWaylandResource &res)
Constructs a QWaylandXdgSurfaceV5 for surface and initializes it with the given xdgShell, surface, and resource res.
[signal]
void QWaylandXdgSurfaceV5::ackConfigure(uint serial)
void QWaylandXdgSurfaceV5::initialize(QWaylandXdgShellV5 *xdgShell, QWaylandSurface *surface, const QWaylandResource &resource)
Initializes the QWaylandXdgSurfaceV5, associating it with the given xdgShell, surface and resource.
[static]
QByteArray QWaylandXdgSurfaceV5::interfaceName()
[static]
QWaylandSurfaceRole *QWaylandXdgSurfaceV5::role()
Returns the surface role for the QWaylandXdgSurfaceV5.
void QWaylandXdgSurfaceV5::sendClose()
Sends a close event to the client.
uint QWaylandXdgSurfaceV5::sendConfigure(const QSize &size, const QVector<uint> &states)
Sends a configure event to the client. Parameter size contains the pixel size of the surface. Known states are enumerated in QWaylandXdgSurfaceV5::State.
uint QWaylandXdgSurfaceV5::sendConfigure(const QSize &size, const QVector<State> &states)
uint QWaylandXdgSurfaceV5::sendFullscreen(const QSize &size)
uint QWaylandXdgSurfaceV5::sendMaximized(const QSize &size)
uint QWaylandXdgSurfaceV5::sendResizing(const QSize &maxSize)
uint QWaylandXdgSurfaceV5::sendUnmaximized(const QSize &size = QSize( 0, 0 ))
[signal]
void QWaylandXdgSurfaceV5::setFullscreen(QWaylandOutput *output)
参见 fullscreen().
[signal]
void QWaylandXdgSurfaceV5::setMaximized()
参见 maximized().