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

#include <gui_core/elements/gui_element_iterators.h>

Public Member Functions

bool IsDone () const
bool HasChildren () const
ElementRef CurrentRef () const
const Element & CurrentElement (const ElementStorage &storage) const
Element & CurrentElement (ElementStorage &storage) const
const ElementRect & CurrentElementRect (const ElementStorage &storage) const
ElementRect & CurrentElementRect (ElementStorage &storage) const
std::span< const Element > GetChildren (const ElementStorage &storage) const
std::span< Element > GetChildren (ElementStorage &storage) const
std::span< const ElementRect > GetChildRects (const ElementStorage &storage) const
std::span< ElementRect > GetChildRects (ElementStorage &storage) const
bool operator== (const DepthScanCursor &rhs) const
bool operator!= (const DepthScanCursor &rhs) const
void SetDone ()

Static Public Member Functions

static constexpr DepthScanCursor EndCursor ()

Public Attributes

uint32_t parentDepth = 0
uint32_t parentIndex = 0
uint32_t parentCountAtDepth = 0
IndexRange childRange = {0, 0}
 This parent's children at parentDepth + 1.

Member Function Documentation

◆ IsDone()

bool tachyon::DepthScanCursor::IsDone ( ) const
inline

◆ HasChildren()

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

◆ CurrentRef()

ElementRef tachyon::DepthScanCursor::CurrentRef ( ) const
inline

◆ CurrentElement() [1/2]

const Element & tachyon::DepthScanCursor::CurrentElement ( const ElementStorage & storage) const

◆ CurrentElement() [2/2]

Element & tachyon::DepthScanCursor::CurrentElement ( ElementStorage & storage) const

◆ CurrentElementRect() [1/2]

const ElementRect & tachyon::DepthScanCursor::CurrentElementRect ( const ElementStorage & storage) const

◆ CurrentElementRect() [2/2]

ElementRect & tachyon::DepthScanCursor::CurrentElementRect ( ElementStorage & storage) const

◆ GetChildren() [1/2]

std::span< const Element > tachyon::DepthScanCursor::GetChildren ( const ElementStorage & storage) const

◆ GetChildren() [2/2]

std::span< Element > tachyon::DepthScanCursor::GetChildren ( ElementStorage & storage) const

◆ GetChildRects() [1/2]

std::span< const ElementRect > tachyon::DepthScanCursor::GetChildRects ( const ElementStorage & storage) const

◆ GetChildRects() [2/2]

std::span< ElementRect > tachyon::DepthScanCursor::GetChildRects ( ElementStorage & storage) const

◆ operator==()

bool tachyon::DepthScanCursor::operator== ( const DepthScanCursor & rhs) const
inline

◆ operator!=()

bool tachyon::DepthScanCursor::operator!= ( const DepthScanCursor & rhs) const
inline

◆ EndCursor()

constexpr DepthScanCursor tachyon::DepthScanCursor::EndCursor ( )
inlinestaticconstexpr

◆ SetDone()

void tachyon::DepthScanCursor::SetDone ( )
inline

Member Data Documentation

◆ parentDepth

uint32_t tachyon::DepthScanCursor::parentDepth = 0

◆ parentIndex

uint32_t tachyon::DepthScanCursor::parentIndex = 0

◆ parentCountAtDepth

uint32_t tachyon::DepthScanCursor::parentCountAtDepth = 0

◆ childRange

IndexRange tachyon::DepthScanCursor::childRange = {0, 0}

This parent's children at parentDepth + 1.


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