TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::TreeViewRow Struct Reference

One row of a flat-data tree view (VirtualTreeView); rows are in depth-first order. More...

#include <gui_controls/gui_tree_grid_types.h>

Public Member Functions

bool HasChildren () const

Public Attributes

tachyon::ID id = tachyon::ID::Invalid()
 The caller's own ID for the row; the view does not read it.
std::string name
 label
int depth = 0
 nesting level, 0 = root; defines the hierarchy
bool isOpen = false
 expanded
IconID icon = IconID::Invalid
std::string * renameBuffer = nullptr
 null = not renameable
int skipCount = 0
 Number of descendant rows (skipped when the row is closed); > 0 means it has children.
uint32_t ancestorLineMask = 0
 Bit d is set when the ancestor at depth d+1 has a next sibling; drives guide lines.
bool isLastSibling = true
 no later sibling at the same depth

Detailed Description

One row of a flat-data tree view (VirtualTreeView); rows are in depth-first order.

Member Function Documentation

◆ HasChildren()

bool tachyon::TreeViewRow::HasChildren ( ) const
inline

Member Data Documentation

◆ id

tachyon::ID tachyon::TreeViewRow::id = tachyon::ID::Invalid()

The caller's own ID for the row; the view does not read it.

◆ name

std::string tachyon::TreeViewRow::name

label

◆ depth

int tachyon::TreeViewRow::depth = 0

nesting level, 0 = root; defines the hierarchy

◆ isOpen

bool tachyon::TreeViewRow::isOpen = false

expanded

◆ icon

IconID tachyon::TreeViewRow::icon = IconID::Invalid

◆ renameBuffer

std::string* tachyon::TreeViewRow::renameBuffer = nullptr

null = not renameable

◆ skipCount

int tachyon::TreeViewRow::skipCount = 0

Number of descendant rows (skipped when the row is closed); > 0 means it has children.

◆ ancestorLineMask

uint32_t tachyon::TreeViewRow::ancestorLineMask = 0

Bit d is set when the ancestor at depth d+1 has a next sibling; drives guide lines.

◆ isLastSibling

bool tachyon::TreeViewRow::isLastSibling = true

no later sibling at the same depth


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