Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorShell::PlacementMapParser::Cell Struct Reference

One cell of the placement map, in work-area fractions. More...

#include <PhosphorShell/PlacementMapParser.h>

Public Attributes

QString id
QRectF rect
qreal t = 0.0
bool occupied = false
bool focused = false
QString label
int zoneNumber = 0
 Snapping only: the zone's 1-based number, used by the click path (Snap.snapToZoneByNumber).
int stack = 1
 Tiling monocle and scrolling columns: how many windows share this rect (a tabbed or stacked column's tile count).
qreal stripT = 0.0
 Scrolling only: the column's start as a fraction of the whole strip (stripPosPx / stripExtentPx), the structure axis of A2 §1.2.
int columnIndex = -1
 Scrolling only: the column's index in the strip, the argument to Scrolling.focusColumnAt.
QString windowId
 The window this cell stands for: the tile's window (tiling), the column's first tile (scrolling), or the TOPMOST occupant of the zone (snapping; empty for an empty zone).
QString appId
 WindowTracking.getWindowMetadata for windowId, empty until it has answered.
QString title
bool urgent = false
 Snapping: any occupant demands attention.
bool offscreen = false
bool minimized = false

Detailed Description

One cell of the placement map, in work-area fractions.

rect is 0..1 of the work area on both axes. t is the hue axis (A2 §1.2): the cell's horizontal centre in work-area space for snapping and tiling, and the visible-cut fallback for scrolling until the daemon exposes the strip extent.

Member Data Documentation

◆ appId

QString PhosphorShell::PlacementMapParser::Cell::appId

WindowTracking.getWindowMetadata for windowId, empty until it has answered.

◆ columnIndex

int PhosphorShell::PlacementMapParser::Cell::columnIndex = -1

Scrolling only: the column's index in the strip, the argument to Scrolling.focusColumnAt.

-1 for every other cell.

◆ focused

bool PhosphorShell::PlacementMapParser::Cell::focused = false

◆ id

QString PhosphorShell::PlacementMapParser::Cell::id

◆ label

QString PhosphorShell::PlacementMapParser::Cell::label

◆ minimized

bool PhosphorShell::PlacementMapParser::Cell::minimized = false

◆ occupied

bool PhosphorShell::PlacementMapParser::Cell::occupied = false

◆ offscreen

bool PhosphorShell::PlacementMapParser::Cell::offscreen = false

◆ rect

QRectF PhosphorShell::PlacementMapParser::Cell::rect

◆ stack

int PhosphorShell::PlacementMapParser::Cell::stack = 1

Tiling monocle and scrolling columns: how many windows share this rect (a tabbed or stacked column's tile count).

1 otherwise.

◆ stripT

qreal PhosphorShell::PlacementMapParser::Cell::stripT = 0.0

Scrolling only: the column's start as a fraction of the whole strip (stripPosPx / stripExtentPx), the structure axis of A2 §1.2.

It is the hue for a strip cell, kept apart from t so a reader can tell a real strip position from the visible-cut fallback. 0 for snapping and tiling cells.

◆ t

qreal PhosphorShell::PlacementMapParser::Cell::t = 0.0

◆ title

QString PhosphorShell::PlacementMapParser::Cell::title

◆ urgent

bool PhosphorShell::PlacementMapParser::Cell::urgent = false

Snapping: any occupant demands attention.

Tiling and scrolling: the cell's window does.

◆ windowId

QString PhosphorShell::PlacementMapParser::Cell::windowId

The window this cell stands for: the tile's window (tiling), the column's first tile (scrolling), or the TOPMOST occupant of the zone (snapping; empty for an empty zone).

The argument to WindowTracking.activateWindow and the float / desktop verbs.

◆ zoneNumber

int PhosphorShell::PlacementMapParser::Cell::zoneNumber = 0

Snapping only: the zone's 1-based number, used by the click path (Snap.snapToZoneByNumber).

0 for tiling and scrolling cells.


The documentation for this struct was generated from the following file: