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

An element's slot in ElementStorage: its depth and index within that depth. More...

#include <gui_core/elements/gui_element.h>

Public Member Functions

constexpr bool IsRoot () const
constexpr bool IsValid () const
bool operator== (const ElementRef &rhs) const
bool operator!= (const ElementRef &rhs) const
uint64_t HashCode () const noexcept
 A 64-bit key: depth in the high 32 bits, index in the low 32.

Static Public Member Functions

static constexpr ElementRef Invalid ()

Public Attributes

uint32_t depth = 0
uint32_t index = 0
 Index into the depth's array, which holds children of many parents.

Detailed Description

An element's slot in ElementStorage: its depth and index within that depth.

Member Function Documentation

◆ IsRoot()

bool tachyon::ElementRef::IsRoot ( ) const
inlineconstexpr

◆ IsValid()

bool tachyon::ElementRef::IsValid ( ) const
inlineconstexpr

◆ Invalid()

constexpr ElementRef tachyon::ElementRef::Invalid ( )
inlinestaticconstexpr

◆ operator==()

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

◆ operator!=()

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

◆ HashCode()

uint64_t tachyon::ElementRef::HashCode ( ) const
inlinenoexcept

A 64-bit key: depth in the high 32 bits, index in the low 32.

Member Data Documentation

◆ depth

uint32_t tachyon::ElementRef::depth = 0

◆ index

uint32_t tachyon::ElementRef::index = 0

Index into the depth's array, which holds children of many parents.


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