Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
EngineTypes.h File Reference
#include <QHashFunctions>
#include <QLatin1StringView>
#include <QList>
#include <QRect>
#include <QSet>
#include <QString>
#include <QStringList>
#include <functional>
#include <utility>

Go to the source code of this file.

Classes

struct  PhosphorEngine::PlacementStateKey
 Identity of a per-screen placement state: a window's placement is scoped to the (screen, virtual desktop, activity) triple it was created in. More...
struct  std::hash< PhosphorEngine::PlacementStateKey >
 std::hash alongside qHash, so the key works in a std:: container too. More...
struct  PhosphorEngine::ResnapEntry
struct  PhosphorEngine::SnapResult
struct  PhosphorEngine::UnfloatResult
struct  PhosphorEngine::ZoneAssignmentEntry
struct  PhosphorEngine::DesktopSpan
 The contexts a window occupies, as the per-desktop membership pass reads them: which desktops (x11 numbering, the numbering the state keys use) and which activity. More...
struct  PhosphorEngine::MembershipReconcileResult
 What a membership pass did, so the caller can drive the bookkeeping the engines cannot reach: the placement re-capture and the effect's per-window zone mirror for a snap release, and the adaptor-level untrack for a window that holds no context at all any more. More...

Namespaces

namespace  PhosphorEngine

Typedefs

using PhosphorEngine::TilingStateKey = PlacementStateKey
 Backwards-compatible spelling for autotile's existing sources.
using PhosphorEngine::StickyPredicate = std::function<bool(const QString&)>
 Answers whether a window is on all desktops.
using PhosphorEngine::DesktopSpanQuery = std::function<DesktopSpan(const QString&)>
 Answers a window's DesktopSpan.

Enumerations

enum class  PhosphorEngine::SnapIntent { PhosphorEngine::UserInitiated , PhosphorEngine::AutoRestored , PhosphorEngine::AutoReplaced }
enum class  PhosphorEngine::WindowKind : int { PhosphorEngine::Unknown = 0 , PhosphorEngine::Normal = 1 , PhosphorEngine::Transient = 2 }
 Coarse structural classification of a window, carried on the open and close wire calls and on the placement record. More...
enum class  PhosphorEngine::RestoreReason : int {
  PhosphorEngine::Open = 0 , PhosphorEngine::Unminimize = 1 , PhosphorEngine::PendingSweep = 2 , PhosphorEngine::DesktopArrival = 3 ,
  PhosphorEngine::DaemonRestartSweep = 4 , PhosphorEngine::DesktopReapply = 5
}
 Why a snap restore is being resolved. More...
enum class  PhosphorEngine::StickyWindowHandling { PhosphorEngine::TreatAsNormal = 0 , PhosphorEngine::RestoreOnly = 1 , PhosphorEngine::IgnoreAll = 2 }
enum class  PhosphorEngine::StickyPinPhase { PhosphorEngine::Acquire , PhosphorEngine::Release }
 Which half of the sticky-screen pin pass to run. More...

Functions

size_t PhosphorEngine::qHash (const PlacementStateKey &key, size_t seed=0)
WindowKind PhosphorEngine::clampWindowKindFromWire (int wire)
 Clamp an integer wire value to a valid WindowKind.
RestoreReason PhosphorEngine::clampRestoreReasonFromWire (int wire)
 Clamp an integer wire value to a valid RestoreReason.
constexpr QLatin1StringView PhosphorEngine::RestoreSentinel ("__restore__")