Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
PhosphorZones::ContextOverlayOverride Struct Reference

Per-context overlay-property overrides resolved from window-rule actions. More...

#include <phosphor-zones/include/PhosphorZones/AssignmentEntry.h>

Public Member Functions

bool isEmpty () const
 

Public Attributes

std::optional< QString > shaderId
 
QVariantMap shaderParams
 
std::optional< int > style
 

Detailed Description

Per-context overlay-property overrides resolved from window-rule actions.

Each field is set only when a matching context rule fills the corresponding overlay slot (OverrideOverlayShader / OverrideOverlayStyle); an unset field falls through to the active layout's own value. Consumed daemon-side by the overlay service — see LayoutRegistry::resolveContextOverlay.

style is the OverlayDisplayMode int (0 = ZoneRectangles, 1 = LayoutPreview); the resolver maps the wire token ("rectangles" / "preview") to the int so consumers compare against the same enum the layout exposes. shaderParams holds the overridden shader's uniform values (translated by the overlay service); it is only meaningful when shaderId is set and is empty when the rule overrides only the shader id (shader defaults apply).

Member Function Documentation

◆ isEmpty()

bool PhosphorZones::ContextOverlayOverride::isEmpty ( ) const
inline

Member Data Documentation

◆ shaderId

std::optional<QString> PhosphorZones::ContextOverlayOverride::shaderId

◆ shaderParams

QVariantMap PhosphorZones::ContextOverlayOverride::shaderParams

◆ style

std::optional<int> PhosphorZones::ContextOverlayOverride::style

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