QWaylandXdgToplevelV6 Class▲
-
Header: QWaylandXdgToplevelV6
-
Since: Qt 5.10
-
qmake: QT += waylandcompositor
-
Inherits: QObject
Detailed Description▲
This class is part of the 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.
Property Documentation▲
[read-only] activated : const bool▲
This property holds whether toplevel is drawing itself as having input focus.
Access functions:
-
bool activated() const
Notifier signal:
-
void activatedChanged()
[read-only] appId : const QString▲
This property holds the app id of the QWaylandXdgToplevelV6.
Access functions:
-
appId() const
Notifier signal:
-
void appIdChanged()
[read-only] fullscreen : const bool▲
This property holds whether the client has acknowledged that it should be fullscreen.
Access functions:
-
bool fullscreen() const
Notifier signal:
-
void fullscreenChanged()
[read-only] maxSize : const QSize▲
This property holds the maximum size of the QWaylandXdgToplevelV6.
The compositor is free to ignore this value and request a larger size.
Access functions:
-
maxSize() const
Notifier signal:
-
void maxSizeChanged()
[read-only] maximized : const bool▲
This property holds whether the client has acknowledged that it should be maximized.
Access functions:
-
bool maximized() const
Notifier signal:
-
void maximizedChanged()
[read-only] minSize : const QSize▲
This property holds the minimum size of the QWaylandXdgToplevelV6.
The compositor is free to ignore this value and request a smaller size.
Access functions:
-
minSize() const
Notifier signal:
-
void minSizeChanged()
[read-only] parentToplevel : QWaylandXdgToplevelV6* const▲
This property holds the XdgToplevelV6 parent of this XdgToplevelV6.
Access functions:
-
*parentToplevel() const
Notifier signal:
-
void parentToplevelChanged()
[read-only] resizing : const bool▲
This property holds whether the client has acknowledged that it is being resized.
Access functions:
-
bool resizing() const
Notifier signal:
-
void resizingChanged()
[read-only] states : const QList<int>▲
This property holds the last states the client acknowledged for this QWaylandToplevelV6.
Notifier signal:
-
void statesChanged()
[read-only] title : const QString▲
This property holds the title of the QWaylandXdgToplevelV6.
Access functions:
-
title() const
Notifier signal:
-
void titleChanged()
Member Function Documentation▲
QWaylandXdgToplevelV6::QWaylandXdgToplevelV6(QWaylandXdgSurfaceV6 *xdgSurface, QWaylandResource &resource)▲
Constructs a QWaylandXdgToplevelV6 for the given xdgSurface and resource.
[static] QWaylandSurfaceRole *QWaylandXdgToplevelV6::role()▲
Returns the surface role for the QWaylandToplevelV6.
void QWaylandXdgToplevelV6::sendClose()▲
Sends a close event to the client. The client may choose to ignore the event.
uint QWaylandXdgToplevelV6::sendConfigure(const QSize &size, const QVector<QWaylandXdgToplevelV6::State> &states)▲
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 states are enumerated in QWaylandXdgToplevelV6::State.
uint QWaylandXdgToplevelV6::sendFullscreen(const QSize &size)▲
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.
See Also▲
See also sendUnmaximized
uint QWaylandXdgToplevelV6::sendMaximized(const QSize &size)▲
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.
uint QWaylandXdgToplevelV6::sendResizing(const QSize &maxSize)▲
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.
uint QWaylandXdgToplevelV6::sendUnmaximized(const QSize &size = QSize(0, 0))▲
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.
QSize QWaylandXdgToplevelV6::sizeForResize(const QSizeF &size, const QPointF &delta, Qt::Edges edges) const▲
Convenience for computing the new size given the current size, a delta, and the edges active in the drag.