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

Where a tree row's open state lives: a bool of the caller's (flag), or the rows a view has open (set, the row's key in it, as TableState::openRows keeps them). More...

#include <gui_controls/gui_table_types.h>

Public Member Functions

 operator bool () const
bool IsOpen () const
void SetOpen (bool open) const
void Toggle () const

Public Attributes

bool * flag = nullptr
std::unordered_set< tachyon::ID > * set = nullptr
tachyon::ID key = tachyon::ID::Invalid()

Detailed Description

Where a tree row's open state lives: a bool of the caller's (flag), or the rows a view has open (set, the row's key in it, as TableState::openRows keeps them).

Neither: a leaf, which can't open. Event handlers keep it, so both must outlive the frame.

Member Function Documentation

◆ operator bool()

tachyon::TreeOpenRef::operator bool ( ) const
inlineexplicit

◆ IsOpen()

bool tachyon::TreeOpenRef::IsOpen ( ) const
inline

◆ SetOpen()

void tachyon::TreeOpenRef::SetOpen ( bool open) const
inline

◆ Toggle()

void tachyon::TreeOpenRef::Toggle ( ) const
inline

Member Data Documentation

◆ flag

bool* tachyon::TreeOpenRef::flag = nullptr

◆ set

std::unordered_set<tachyon::ID>* tachyon::TreeOpenRef::set = nullptr

◆ key

tachyon::ID tachyon::TreeOpenRef::key = tachyon::ID::Invalid()

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