Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
PhosphorPlacement::IGeometryResolver Class Referenceabstract

#include <phosphor-placement/include/PhosphorPlacement/IGeometryResolver.h>

Public Member Functions

virtual ~IGeometryResolver ()=default
 
virtual int resolveInnerGap (PhosphorZones::Layout *layout, const QString &screenId) const =0
 
virtual PhosphorLayout::EdgeGaps resolveOuterGaps (PhosphorZones::Layout *layout, const QString &screenId) const =0
 
virtual int defaultBorderWidth () const =0
 
virtual int defaultBorderRadius () const =0
 
virtual int snapBorderInset () const =0
 Per-side inset (in logical px) applied to a snapped window's frame.
 

Constructor & Destructor Documentation

◆ ~IGeometryResolver()

virtual PhosphorPlacement::IGeometryResolver::~IGeometryResolver ( )
virtualdefault

Member Function Documentation

◆ defaultBorderRadius()

virtual int PhosphorPlacement::IGeometryResolver::defaultBorderRadius ( ) const
pure virtual

◆ defaultBorderWidth()

virtual int PhosphorPlacement::IGeometryResolver::defaultBorderWidth ( ) const
pure virtual

◆ resolveInnerGap()

virtual int PhosphorPlacement::IGeometryResolver::resolveInnerGap ( PhosphorZones::Layout layout,
const QString &  screenId 
) const
pure virtual

◆ resolveOuterGaps()

virtual PhosphorLayout::EdgeGaps PhosphorPlacement::IGeometryResolver::resolveOuterGaps ( PhosphorZones::Layout layout,
const QString &  screenId 
) const
pure virtual

◆ snapBorderInset()

virtual int PhosphorPlacement::IGeometryResolver::snapBorderInset ( ) const
pure virtual

Per-side inset (in logical px) applied to a snapped window's frame.

Returns 0 in all configurations today: the KWin effect's border shader recolours the window's OWN outermost band (inside the frame) for decorated and borderless windows alike, so the border never extends past the frame edge into the neighbour and a snapped window fills its zone exactly. Any visible separation between tiles comes from the zone gap/padding settings, not from a border-width inset. This is a reserved seam — implementations return 0 and the inset is pinned to 0 by test_daemongeometryresolver_inset — kept so a future per-window-border design that draws OUTSIDE the frame can reintroduce a non-zero inset here without re-threading the call sites.


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