8#include <phosphorengine_export.h>
19struct LayerSwitchResult;
73 return m_engineSettings;
96 void navigationFeedback(
bool success,
const QString& action,
const QString& reason,
const QString& sourceId,
97 const QString& targetId,
const QString& screenId);
131 const QString& direction);
143 const QString& direction);
177 void windowsReleased(
const QStringList& windowIds,
const QSet<QString>& releasedScreenIds);
184 QPointer<QObject> m_engineSettings;
Unified placement engine interface.
Definition IPlacementEngine.h:72
Abstract base class for placement engines.
Definition PlacementEngineBase.h:32
void windowOutputMoveExpected(const QString &windowId, const QString &targetScreenId)
Emitted when daemon-initiated directional navigation moves a window across physical outputs: the engi...
void setEngineSettings(QObject *settings)
void windowFloatingStateSynced(const QString &windowId, bool floating, const QString &screenId)
Emitted to sync floating state without restoring geometry.
void windowFloatingChanged(const QString &windowId, bool floating, const QString &screenId)
void crossModeSwapRequested(const QString &windowId, const QString &targetScreenId, int targetDesktop, const QString &direction)
Emitted when a directional SWAP reaches a context boundary whose target is a DIFFERENT tiling mode th...
void crossModeFocusRequested(const QString &targetScreenId, const QString &direction, bool *handled)
Emitted when a directional FOCUS reaches a monitor boundary whose neighbour context runs a DIFFERENT ...
void algorithmChanged(const QString &algorithmId)
Emitted when the active tiling algorithm changes.
void geometryRestoreRequested(const QString &windowId, const QRect &geometry, const QString &screenId)
void windowDesktopMoveRequested(const QString &windowId, int desktop)
Emitted when directional navigation moves a window across virtual desktops: the engine has already re...
void activateWindowRequested(const QString &windowId)
void announceLayerSwitch(const LayerSwitchResult &result, const QString &action, const QString &screenId)
Emit the activation + navigationFeedback pair for a resolved layer focus switch (resolveLayerFocusSwi...
virtual QRect lastManagedRect(const QString &windowId) const
The exact rect this engine last APPLIED to windowId while managing it (its tile rect),...
Definition PlacementEngineBase.h:51
PlacementEngineBase(QObject *parent=nullptr)
void placementChanged(const QString &screenId)
Emitted when the placement layout changes for a screen.
virtual int pruneStaleWindows(const QSet< QString > &aliveWindowIds)
Drop any per-engine bookkeeping for windows not in aliveWindowIds.
void settingsPersistRequested()
Emitted when the engine writes tuning values back to the settings object and wants the daemon to pers...
void windowsReleased(const QStringList &windowIds, const QSet< QString > &releasedScreenIds)
Emitted when windows are released from engine management.
void crossModeMoveRequested(const QString &windowId, const QString &targetScreenId, int targetDesktop, const QString &direction)
Emitted when a directional MOVE reaches a context boundary whose target is a DIFFERENT tiling mode th...
~PlacementEngineBase() override
void navigationFeedback(bool success, const QString &action, const QString &reason, const QString &sourceId, const QString &targetId, const QString &screenId)
void windowsBatchFloated(const QStringList &windowIds, const QString &screenId)
Emitted when overflow windows are batch-floated during applyTiling.
QObject * engineSettings() const
Definition PlacementEngineBase.h:71
Definition EngineTypes.h:14
Outcome of resolving a layer focus switch.
Definition LayerFocusSwitch.h:53