7#include <PhosphorLayer/phosphorlayer_export.h>
60 virtual QQuickWindow*
window() const = 0;
virtual bool isSupported() const =0
True if the compositor advertises wlr-layer-shell.
virtual std::unique_ptr< ITransportHandle > attach(QQuickWindow *win, const TransportAttachArgs &args)=0
Mark win as a layer-shell surface with the given initial configuration.
quint64 CompositorLostCookie
Definition ILayerShellTransport.h:150
std::function< void()> CompositorLostCallback
Register a callback fired when the compositor's layer-shell global is removed (compositor crash / res...
Definition ILayerShellTransport.h:149
ILayerShellTransport()=default
virtual CompositorLostCookie addCompositorLostCallback(CompositorLostCallback cb)=0
virtual void removeCompositorLostCallback(CompositorLostCookie cookie)=0
virtual ~ILayerShellTransport()=default
Handle returned by attach(); lets the caller mutate post-show properties that the wlr-layer-shell pro...
Definition ILayerShellTransport.h:53
virtual QQuickWindow * window() const =0
Window this handle controls.
virtual ~ITransportHandle()=default
ITransportHandle()=default
virtual void setMargins(QMargins m)=0
virtual void setExclusiveZone(int z)=0
virtual void setKeyboardInteractivity(KeyboardInteractivity k)=0
virtual void setDesiredSize(QSize size)=0
Push a desired surface size into the layer-shell set_size request, independent of QQuickWindow::size(...
virtual void setLayer(Layer l)=0
virtual void setAnchors(Anchors a)=0
virtual QSize configuredSize() const =0
Cached last-known pixel size from the compositor's configure event.
virtual bool isConfigured() const =0
True once the compositor has sent its initial configure event.
Definition SurfaceAnimator.h:26
KeyboardInteractivity
Keyboard focus policy (wlr-layer-shell v4 adds OnDemand).
Definition Role.h:51
@ None
Surface never receives keyboard focus (click-through).
Definition Role.h:52
Layer
Meta-object context for namespace-level enums so QML and QMetaEnum can stringify them.
Definition Role.h:24
@ Overlay
Above everything including fullscreen (HUDs, OSDs).
Definition Role.h:28
constexpr Anchors AnchorNone
Definition Role.h:47
Arguments passed to ILayerShellTransport::attach().
Definition ILayerShellTransport.h:33
Layer layer
Definition ILayerShellTransport.h:35
QScreen * screen
Definition ILayerShellTransport.h:34
KeyboardInteractivity keyboard
Definition ILayerShellTransport.h:38
QMargins margins
Definition ILayerShellTransport.h:39
QString scope
Fully-qualified scope (prefix + instance disambiguator).
Definition ILayerShellTransport.h:40
Anchors anchors
Definition ILayerShellTransport.h:36
int exclusiveZone
Definition ILayerShellTransport.h:37