QWaylandWlShellSurface Class
The QWaylandWlShellSurface class provides desktop-style compositor-specific features to a surface. 更多...
头文件: | #include <QWaylandWlShellSurface> |
qmake: | QT += waylandcompositor |
开始支持版本: | Qt 5.8 |
基类: | QWaylandShellSurfaceTemplate |
公有类型
enum | FullScreenMethod { DefaultFullScreen, ScaleFullScreen, DriverFullScreen, FillFullScreen } |
enum | ResizeEdge { NoneEdge, TopEdge, BottomEdge, LeftEdge, ..., BottomRightEdge } |
属性
- className : const QString
- shell : QWaylandWlShell * const
- surface : QWaylandSurface * const
- title : const QString
- 1 个属性继承自 QWaylandShellSurface
公有函数
QWaylandWlShellSurface() | |
QWaylandWlShellSurface(QWaylandWlShell *shell, QWaylandSurface *surface, const QWaylandResource &res) | |
virtual | ~QWaylandWlShellSurface() |
QString | className() const |
void | initialize(QWaylandWlShell *shell, QWaylandSurface *surface, const QWaylandResource &resource) |
void | sendConfigure(const QSize &size, ResizeEdge edges) |
void | sendPopupDone() |
QWaylandWlShell * | shell() const |
QSize | sizeForResize(const QSizeF &size, const QPointF &delta, ResizeEdge edges) |
QWaylandSurface * | surface() const |
QString | title() const |
重新实现的公有函数
virtual Qt::WindowType | windowType() const override |
- 1 个公有函数继承自 QWaylandShellSurface
- 4 个公有函数继承自 QWaylandCompositorExtension
- 5 个公有函数继承自 QWaylandObject
公有槽函数
void | ping() |
信号
void | classNameChanged() |
void | pong() |
void | setDefaultToplevel() |
void | setFullScreen(FullScreenMethod method, uint framerate, QWaylandOutput *output) |
void | setMaximized(QWaylandOutput *output) |
void | setPopup(QWaylandSeat *seat, QWaylandSurface *parentSurface, const QPoint &relativeToParent) |
void | setTransient(QWaylandSurface *parentSurface, const QPoint &relativeToParent, bool inactive) |
void | shellChanged() |
void | startMove(QWaylandSeat *seat) |
void | startResize(QWaylandSeat *seat, ResizeEdge edges) |
void | surfaceChanged() |
void | titleChanged() |
- 1 个信号继承自 QWaylandShellSurface
静态公有成员
QWaylandWlShellSurface * | fromResource(wl_resource *resource) |
QWaylandSurfaceRole * | role() |
其他继承的成员
- 1 个受保护的函数继承自 QWaylandCompositorExtension
详细描述
The QWaylandWlShellSurface class provides desktop-style compositor-specific features to a surface.
This class is part of the 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::FullScreenMethod
enum QWaylandWlShellSurface::ResizeEdge
This enum type provides a way to specify an edge or corner of the surface.
Constant | Value | Description |
---|---|---|
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 |
Notifier signal:
void | classNameChanged() |
shell : QWaylandWlShell * const
This property holds the shell associated with this QWaylandWlShellSurface.
访问函数:
QWaylandWlShell * | shell() const |
Notifier signal:
void | shellChanged() |
surface : QWaylandSurface * const
This property holds the surface associated with this QWaylandWlShellSurface.
访问函数:
QWaylandSurface * | surface() const |
Notifier signal:
void | surfaceChanged() |
title : const QString
This property holds the title of the QWaylandWlShellSurface.
访问函数:
QString | title() const |
Notifier signal:
void | titleChanged() |
成员函数
QWaylandWlShellSurface::QWaylandWlShellSurface()
Constructs a QWaylandWlShellSurface.
QWaylandWlShellSurface::QWaylandWlShellSurface(QWaylandWlShell *shell, QWaylandSurface *surface, const QWaylandResource &res)
Constructs a QWaylandWlShellSurface for surface and initializes it with the given shell and resource res.
[virtual]
QWaylandWlShellSurface::~QWaylandWlShellSurface()
Destroys the instance of QWaylandWlShellSurface. The destructor is virtual.
[static]
QWaylandWlShellSurface *QWaylandWlShellSurface::fromResource(wl_resource *resource)
Returns the QWaylandWlShellSurface object associated with the given resource, or null if no such object exists.
void QWaylandWlShellSurface::initialize(QWaylandWlShell *shell, QWaylandSurface *surface, const QWaylandResource &resource)
Initializes the QWaylandWlShellSurface and associates it with the given shell, surface, and resource.
[slot]
void QWaylandWlShellSurface::ping()
Sends a ping event to the client. If the client replies to the event the pong signal will be emitted.
[signal]
void QWaylandWlShellSurface::pong()
[static]
QWaylandSurfaceRole *QWaylandWlShellSurface::role()
void QWaylandWlShellSurface::sendConfigure(const QSize &size, ResizeEdge edges)
Sends a configure event to the client, suggesting that it resize its surface to the provided size. The edges provide a hint about how the surface was resized.
void QWaylandWlShellSurface::sendPopupDone()
Sends a popup_done event to the client to indicate that the user has clicked somewhere outside the client's surfaces.