6#include "phosphorwayland_export.h"
59 [[nodiscard]] QList<ForeignToplevel*>
toplevels()
const;
73 std::unique_ptr<Private> d;
90class PHOSPHORWAYLAND_EXPORT ForeignToplevel :
public QObject
106 [[nodiscard]] QString
title()
const;
107 [[nodiscard]] QString
appId()
const;
112 [[nodiscard]] QList<QScreen*>
outputs()
const;
156 explicit ForeignToplevel(std::unique_ptr<Private> p);
157 std::unique_ptr<Private> d;
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.
friend class ForeignToplevel
Definition ForeignToplevel.h:71
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
friend class ForeignToplevelManager
Definition ForeignToplevel.h:154
void parentToplevelChanged()
ForeignToplevel * parentToplevel() const
bool isFullscreen() const
void setMinimized(bool minimized)
QList< QScreen * > outputs() const
Definition BackgroundEffect.h:15