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< SplitNode > | first |
| First child (left or top) | |
| std::unique_ptr< SplitNode > | second |
| Second child (right or bottom) | |
| SplitNode * | parent = nullptr |
| Non-owning back-pointer. | |
| QString | windowId |
| Non-empty only for leaf nodes. | |
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.
|
inline |
| std::unique_ptr<SplitNode> PhosphorTiles::SplitNode::first |
First child (left or top)
| SplitNode* PhosphorTiles::SplitNode::parent = nullptr |
Non-owning back-pointer.
| std::unique_ptr<SplitNode> PhosphorTiles::SplitNode::second |
Second child (right or bottom)
| bool PhosphorTiles::SplitNode::splitHorizontal = false |
true = top/bottom, false = left/right
| qreal PhosphorTiles::SplitNode::splitRatio = AutotileDefaults::DefaultSplitRatio |
How to divide this node's space (first child fraction)
| QString PhosphorTiles::SplitNode::windowId |
Non-empty only for leaf nodes.