The QWaylandXdgToplevelV6 class represents the toplevel window specific parts of an xdg surface. 更多...
头: | #include <QWaylandXdgToplevelV6> |
qmake: | QT += waylandcompositor |
Since: | Qt 5.10 |
继承: | QObject |
enum | State { MaximizedState, FullscreenState, ResizingState, ActivatedState } |
|
|
QWaylandXdgToplevelV6 (QWaylandXdgSurfaceV6 * xdgSurface , QWaylandResource & resource ) | |
bool | activated () const |
QString | appId () const |
bool | fullscreen () const |
QSize | maxSize () const |
bool | maximized () const |
QSize | minSize () const |
QWaylandXdgToplevelV6 * | parentToplevel () const |
bool | resizing () const |
void | sendClose () |
uint | sendConfigure (const QSize & size , const QVector<QWaylandXdgToplevelV6::State> & 状态 ) |
uint | sendConfigure (const QSize & size , const QVector<int> & 状态 ) |
uint | sendFullscreen (const QSize & size ) |
uint | sendMaximized (const QSize & size ) |
uint | sendResizing (const QSize & maxSize ) |
uint | sendUnmaximized (const QSize & size = QSize(0, 0)) |
QSize | sizeForResize (const QSizeF & size , const QPointF & delta , Qt::Edges edges ) const |
QVector<QWaylandXdgToplevelV6::State> | states () const |
QString | title () const |
void | activatedChanged () |
void | appIdChanged () |
void | fullscreenChanged () |
void | maxSizeChanged () |
void | maximizedChanged () |
void | minSizeChanged () |
void | parentToplevelChanged () |
void | resizingChanged () |
void | setFullscreen (QWaylandOutput * output ) |
void | setMaximized () |
void | setMinimized () |
void | showWindowMenu (QWaylandSeat * seat , const QPoint & localSurfacePosition ) |
void | startMove (QWaylandSeat * seat ) |
void | startResize (QWaylandSeat * seat , Qt::Edges edges ) |
void | statesChanged () |
void | titleChanged () |
void | unsetFullscreen () |
void | unsetMaximized () |
QWaylandSurfaceRole * | role () |
const QMetaObject | staticMetaObject |
The QWaylandXdgToplevelV6 class represents the toplevel window specific parts of an xdg surface.
此类属于 QWaylandXdgShellV6 extension and provides a way to extend the functionality of an QWaylandXdgSurfaceV6 with features specific to desktop-style windows.
It corresponds to the Wayland interface
zxdg_toplevel_v6
.
This property holds whether toplevel is drawing itself as having input focus.
访问函数:
bool | activated () const |
通知程序信号:
void | activatedChanged () |
This property holds the app id of the QWaylandXdgToplevelV6 .
访问函数:
QString | appId () const |
通知程序信号:
void | appIdChanged () |
This property holds whether the client has acknowledged that it should be fullscreen.
访问函数:
bool | fullscreen () const |
通知程序信号:
void | fullscreenChanged () |
This property holds the maximum size of the QWaylandXdgToplevelV6 .
The compositor is free to ignore this value and request a larger size.
访问函数:
QSize | maxSize () const |
通知程序信号:
void | maxSizeChanged () |
This property holds whether the client has acknowledged that it should be maximized.
访问函数:
bool | maximized () const |
通知程序信号:
void | maximizedChanged () |
This property holds the minimum size of the QWaylandXdgToplevelV6 .
The compositor is free to ignore this value and request a smaller size.
访问函数:
QSize | minSize () const |
通知程序信号:
void | minSizeChanged () |
此特性保持 XdgToplevelV6 parent of this XdgToplevelV6 .
访问函数:
QWaylandXdgToplevelV6 * | parentToplevel () const |
通知程序信号:
void | parentToplevelChanged () |
This property holds whether the client has acknowledged that it is being resized.
访问函数:
bool | resizing () const |
通知程序信号:
void | resizingChanged () |
This property holds the last states the client acknowledged for this QWaylandToplevelV6.
通知程序信号:
void | statesChanged () |
This property holds the title of the QWaylandXdgToplevelV6 .
访问函数:
QString | title () const |
通知程序信号:
void | titleChanged () |
构造 QWaylandXdgToplevelV6 为给定 xdgSurface and resource .
[static]
QWaylandSurfaceRole
*QWaylandXdgToplevelV6::
role
()
Returns the surface role for the QWaylandToplevelV6.
Sends a close event to the client. The client may choose to ignore the event.
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
Sends a configure event to the client. Parameter size contains the pixel size of the surface. A size of zero means the client is free to decide the size. Known 状态 are enumerated in QWaylandXdgToplevelV6::State .
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
Convenience for sending a configure event with the fullscreen state set, and maximized and resizing removed. The activated state is left in its current state.
size is the new size of the window.
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
另请参阅 sendUnmaximized .
Convenience for sending a configure event with the maximized state set, and fullscreen and resizing removed. The activated state is left in its current state.
size is the new size of the window.
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
Convenience for sending a configure event with the resizing state set, and maximized and fullscreen removed. The activated state is left in its current state.
maxSize is the new size of the window.
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
Convenience for sending a configure event with the maximized, fullscreen and resizing states removed, and fullscreen and resizing removed. The activated state is left in its current state.
size is the new size of the window. If size is zero, the client decides the size.
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
[signal]
void
QWaylandXdgToplevelV6::
setFullscreen
(
QWaylandOutput
*
output
)
另请参阅 fullscreen ().
[signal]
void
QWaylandXdgToplevelV6::
setMaximized
()
另请参阅 maximized ().
[signal]
void
QWaylandXdgToplevelV6::
setMinimized
()
[signal]
void
QWaylandXdgToplevelV6::
showWindowMenu
(
QWaylandSeat
*
seat
, const
QPoint
&
localSurfacePosition
)
Convenience for computing the new size given the current size , delta ,和 edges active in the drag.
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
[signal]
void
QWaylandXdgToplevelV6::
startMove
(
QWaylandSeat
*
seat
)
[signal]
void
QWaylandXdgToplevelV6::
startResize
(
QWaylandSeat
*
seat
,
Qt::Edges
edges
)
[signal]
void
QWaylandXdgToplevelV6::
unsetFullscreen
()
[signal]
void
QWaylandXdgToplevelV6::
unsetMaximized
()