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

Tracks the next/prev tab targets around the focused element, rebuilt each frame during construction and scoped to the active window. More...

#include <gui_core/state/gui_tab_chain_manager.h>

Public Member Functions

void BeginFrame (const GUIStateManager &guiStateManager)
void SetDefaultFocusID (ID defaultID)
 The target Tab moves to when nothing has focus, e.g.
void BeginWindow (ID windowID)
 Starts collecting windowID's tab targets until EndWindow; only the active window builds a chain.
void RegisterTabTarget (ID elementID)
 Adds elementID to the current window's tab chain, in call order.
void BeginSpan ()
 Notes the first and last targets the active window registers until EndSpan, e.g.
void EndSpan ()
ID SpanFirst () const
 The first and last targets of the last span; Invalid when it had none.
ID SpanLast () const
void EndWindow ()
 Ends the window begun by BeginWindow; its chain wraps around.
void EndFrame ()
ID GetNextTabTarget () const
ID GetPrevTabTarget () const
ID GetDefaultFocus () const

Detailed Description

Tracks the next/prev tab targets around the focused element, rebuilt each frame during construction and scoped to the active window.

Without focus it falls back to the default focus ID, else the window's first target.

Member Function Documentation

◆ BeginFrame()

void tachyon::TabChainManager::BeginFrame ( const GUIStateManager & guiStateManager)

◆ SetDefaultFocusID()

void tachyon::TabChainManager::SetDefaultFocusID ( ID defaultID)
inline

The target Tab moves to when nothing has focus, e.g.

a rename textbox that should take focus.

◆ BeginWindow()

void tachyon::TabChainManager::BeginWindow ( ID windowID)
inline

Starts collecting windowID's tab targets until EndWindow; only the active window builds a chain.

◆ RegisterTabTarget()

void tachyon::TabChainManager::RegisterTabTarget ( ID elementID)
inline

Adds elementID to the current window's tab chain, in call order.

◆ BeginSpan()

void tachyon::TabChainManager::BeginSpan ( )
inline

Notes the first and last targets the active window registers until EndSpan, e.g.

the controls of one part of a view, to move the focus onto them.

◆ EndSpan()

void tachyon::TabChainManager::EndSpan ( )
inline

◆ SpanFirst()

ID tachyon::TabChainManager::SpanFirst ( ) const
inline

The first and last targets of the last span; Invalid when it had none.

◆ SpanLast()

ID tachyon::TabChainManager::SpanLast ( ) const
inline

◆ EndWindow()

void tachyon::TabChainManager::EndWindow ( )
inline

Ends the window begun by BeginWindow; its chain wraps around.

◆ EndFrame()

void tachyon::TabChainManager::EndFrame ( )
inline

◆ GetNextTabTarget()

ID tachyon::TabChainManager::GetNextTabTarget ( ) const
inline

◆ GetPrevTabTarget()

ID tachyon::TabChainManager::GetPrevTabTarget ( ) const
inline

◆ GetDefaultFocus()

ID tachyon::TabChainManager::GetDefaultFocus ( ) const
inline

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