QWaylandXdgToplevel Class
The QWaylandXdgToplevel class represents the toplevel window specific parts of an xdg surface. More...
| Header: | #include <QWaylandXdgToplevel> |
| qmake: | QT += waylandcompositor |
| Since: | Qt 5.12 |
| Instantiated By: | XdgToplevel |
| Inherits: | QObject |
This class was introduced in Qt 5.12.
Public Types
| enum | DecorationMode { ServerSideDecoration, ClientSideDecoration } |
Properties
|
|
Public Functions
| bool | activated() const |
| QString | appId() const |
| QWaylandXdgToplevel::DecorationMode | decorationMode() const |
| bool | fullscreen() const |
| QSize | maxSize() const |
| bool | maximized() const |
| QSize | minSize() const |
| QWaylandXdgToplevel * | parentToplevel() const |
| bool | resizing() const |
| QString | title() const |
| QWaylandXdgSurface * | xdgSurface() const |
Signals
| void | activatedChanged() |
| void | appIdChanged() |
| void | decorationModeChanged() |
| void | fullscreenChanged() |
| void | maxSizeChanged() |
| void | maximizedChanged() |
| void | minSizeChanged() |
| void | parentToplevelChanged() |
| void | resizingChanged() |
| void | statesChanged() |
| void | titleChanged() |
Detailed Description
This class is part of the QWaylandXdgShell extension and provides a way to extend the functionality of an QWaylandXdgSurface with features specific to desktop-style windows.
It corresponds to the Wayland interface xdg_toplevel.
Member Type Documentation
enum QWaylandXdgToplevel::DecorationMode
This enum type is used to specify the window decoration mode for toplevel windows.
| Constant | Value | Description |
|---|---|---|
QWaylandXdgToplevel::ServerSideDecoration | 2 | The compositor should draw window decorations. |
QWaylandXdgToplevel::ClientSideDecoration | 1 | The client should draw window decorations. |
Property Documentation
activated : const bool
This property holds whether toplevel is drawing itself as having input focus.
Access functions:
| bool | activated() const |
Notifier signal:
| void | activatedChanged() |
appId : const QString
This property holds the app id of the QWaylandXdgToplevel.
Access functions:
| QString | appId() const |
Notifier signal:
| void | appIdChanged() |
decorationMode : const DecorationMode
This property holds the current window decoration mode for this toplevel.
Access functions:
| QWaylandXdgToplevel::DecorationMode | decorationMode() const |
Notifier signal:
| void | decorationModeChanged() |
See also QWaylandXdgDecorationManagerV1.
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() |
maxSize : const QSize
This property holds the maximum size of the QWaylandXdgToplevel.
The compositor is free to ignore this value and request a larger size.
Access functions:
| QSize | maxSize() const |
Notifier signal:
| void | maxSizeChanged() |
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() |
minSize : const QSize
This property holds the minimum size of the QWaylandXdgToplevel.
The compositor is free to ignore this value and request a smaller size.
Access functions:
| QSize | minSize() const |
Notifier signal:
| void | minSizeChanged() |
parentToplevel : QWaylandXdgToplevel* const
This property holds the XdgToplevel parent of this XdgToplevel.
Access functions:
| QWaylandXdgToplevel * | parentToplevel() const |
Notifier signal:
| void | parentToplevelChanged() |
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() |
states : const QList<int>
This property holds the last states the client acknowledged for this QWaylandToplevel.
Notifier signal:
| void | statesChanged() |
title : const QString
This property holds the title of the QWaylandXdgToplevel.
Access functions:
| QString | title() const |
Notifier signal:
| void | titleChanged() |
xdgSurface : QWaylandXdgSurface* const
This property holds the QWaylandXdgSurface for this QWaylandXdgToplevel.
Access functions:
| QWaylandXdgSurface * | xdgSurface() const |