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

A single node in the binary split tree. More...

#include <phosphor-tiles/include/PhosphorTiles/SplitTree.h>

Public Member Functions

bool isLeaf () const
 

Public Attributes

qreal splitRatio = AutotileDefaults::DefaultSplitRatio
 How to divide this node's space (first child fraction)
 
bool splitHorizontal = false
 true = top/bottom, false = left/right
 
std::unique_ptr< SplitNodefirst
 First child (left or top)
 
std::unique_ptr< SplitNodesecond
 Second child (right or bottom)
 
SplitNodeparent = nullptr
 Non-owning back-pointer.
 
QString windowId
 Non-empty only for leaf nodes.
 

Detailed Description

A single node in the binary split tree.

Internal nodes have two children and define a split direction + ratio. Leaf nodes represent individual windows and have no children.

Member Function Documentation

◆ isLeaf()

bool PhosphorTiles::SplitNode::isLeaf ( ) const
inline

Member Data Documentation

◆ first

std::unique_ptr<SplitNode> PhosphorTiles::SplitNode::first

First child (left or top)

◆ parent

SplitNode* PhosphorTiles::SplitNode::parent = nullptr

Non-owning back-pointer.

◆ second

std::unique_ptr<SplitNode> PhosphorTiles::SplitNode::second

Second child (right or bottom)

◆ splitHorizontal

bool PhosphorTiles::SplitNode::splitHorizontal = false

true = top/bottom, false = left/right

◆ splitRatio

qreal PhosphorTiles::SplitNode::splitRatio = AutotileDefaults::DefaultSplitRatio

How to divide this node's space (first child fraction)

◆ windowId

QString PhosphorTiles::SplitNode::windowId

Non-empty only for leaf nodes.


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