TachyonUI 0.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 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.

◆ 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: