6#include <phosphorwayland_export.h>
59 [[nodiscard]] QList<ForeignToplevel*>
toplevels()
const;
73 std::unique_ptr<Private> d;
93 Q_PROPERTY(QString title READ title NOTIFY titleChanged)
94 Q_PROPERTY(QString appId READ appId NOTIFY appIdChanged)
95 Q_PROPERTY(
bool maximized READ isMaximized NOTIFY stateChanged)
96 Q_PROPERTY(
bool minimized READ isMinimized NOTIFY stateChanged)
97 Q_PROPERTY(
bool activated READ isActivated NOTIFY stateChanged)
98 Q_PROPERTY(
bool fullscreen READ isFullscreen NOTIFY stateChanged)
99 Q_PROPERTY(QList<QScreen*> outputs READ outputs NOTIFY outputsChanged)
101 Q_PROPERTY(
bool closed READ isClosed NOTIFY closedChanged)
106 [[nodiscard]] QString
title()
const;
107 [[nodiscard]] QString
appId()
const;
112 [[nodiscard]] QList<QScreen*>
outputs()
const;
157 std::unique_ptr<Private> d;
Client-side wrapper around zwlr_foreign_toplevel_manager_v1.
Definition ForeignToplevel.h:44
static bool isSupported()
True iff the compositor advertises zwlr_foreign_toplevel_manager_v1.
void toplevelRemoved(PhosphorWayland::ForeignToplevel *toplevel)
void toplevelAdded(PhosphorWayland::ForeignToplevel *toplevel)
ForeignToplevelManager(QObject *parent=nullptr)
~ForeignToplevelManager() override
void stop()
Stop receiving events.
QList< ForeignToplevel * > toplevels() const
Snapshot of the current toplevel set.
A single toplevel window owned by some other Wayland client.
Definition ForeignToplevel.h:91
void setMaximized(bool maximized)
void setRectangle(QWindow *surface, const QRect &rect)
Tell the compositor where on screen this toplevel's representation lives (e.g.
void close()
Request the compositor close this toplevel.
void setFullscreen(bool fullscreen, QScreen *output=nullptr)
Toggle fullscreen on the given output (null = compositor's choice).
void activate()
Request the compositor focus this toplevel.
~ForeignToplevel() override
void parentToplevelChanged()
ForeignToplevel * parentToplevel() const
bool isFullscreen() const
void setMinimized(bool minimized)
QList< QScreen * > outputs() const
Definition CompositorLost.h:11