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

Links labels to the controls they describe during construction; owned by GUIStateManager. More...

#include <gui_controls/gui_label_binding.h>

Public Member Functions

void RegisterPendingLabel (ID labelID)
 Remembers labelID as the label the next control links to.
void ClearPendingLabel ()
ID GetPendingLabelID () const
void ClearFocusedAssociatedLabelIDs ()
void AddFocusedAssociatedLabelID (ID id)
const std::vector< ID > & GetFocusedAssociatedLabelIDs () const
 Labels whose bound control is focused; they get :focus too, one frame late.

Static Public Member Functions

static ID ResolveControlForLabel (const ElementStorage &storage, ID labelID)
 The control bound to label labelID, or Invalid.
static ID FindFirstControlInSubtree (const ElementStorage &storage, const ElementRef &rootRef)
 First IsControl element in rootRef's subtree (pre-order), or Invalid.

Detailed Description

Links labels to the controls they describe during construction; owned by GUIStateManager.

Member Function Documentation

◆ RegisterPendingLabel()

void tachyon::LabelBinding::RegisterPendingLabel ( ID labelID)
inline

Remembers labelID as the label the next control links to.

◆ ClearPendingLabel()

void tachyon::LabelBinding::ClearPendingLabel ( )
inline

◆ GetPendingLabelID()

ID tachyon::LabelBinding::GetPendingLabelID ( ) const
inline

◆ ClearFocusedAssociatedLabelIDs()

void tachyon::LabelBinding::ClearFocusedAssociatedLabelIDs ( )
inline

◆ AddFocusedAssociatedLabelID()

void tachyon::LabelBinding::AddFocusedAssociatedLabelID ( ID id)
inline

◆ GetFocusedAssociatedLabelIDs()

const std::vector< ID > & tachyon::LabelBinding::GetFocusedAssociatedLabelIDs ( ) const
inline

Labels whose bound control is focused; they get :focus too, one frame late.

◆ ResolveControlForLabel()

ID tachyon::LabelBinding::ResolveControlForLabel ( const ElementStorage & storage,
ID labelID )
static

The control bound to label labelID, or Invalid.

◆ FindFirstControlInSubtree()

ID tachyon::LabelBinding::FindFirstControlInSubtree ( const ElementStorage & storage,
const ElementRef & rootRef )
static

First IsControl element in rootRef's subtree (pre-order), or Invalid.


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