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

What RenderSettingsPanel shows: its pages, the selected one and the tree width. More...

#include <gui_controls/gui_application.h>

Classes

struct  Page
 A page: a stable ID, its name in the tree, and render, which builds its content. More...
struct  Internal
 Tree-view backing state, rebuilt per frame; not part of the API. More...

Public Member Functions

tachyon::ID AddPage (tachyon::ID id, std::string_view name, std::function< void()> render)
 id must be stable. The first page added is selected initially.

Public Attributes

std::vector< Page > pages
 Added with AddPage.
tachyon::ID selectedID = tachyon::ID::Invalid()
 The page shown; a click in the tree changes it.
CssPx treeWidth = 200
 The page tree's width; its sizer changes it.
struct tachyon::GUIApplication::SettingsPanelState::Internal internal

Detailed Description

What RenderSettingsPanel shows: its pages, the selected one and the tree width.

Member Function Documentation

◆ AddPage()

tachyon::ID tachyon::GUIApplication::SettingsPanelState::AddPage ( tachyon::ID id,
std::string_view name,
std::function< void()> render )
inline

id must be stable. The first page added is selected initially.

Member Data Documentation

◆ pages

std::vector<Page> tachyon::GUIApplication::SettingsPanelState::pages

Added with AddPage.

◆ selectedID

tachyon::ID tachyon::GUIApplication::SettingsPanelState::selectedID = tachyon::ID::Invalid()

The page shown; a click in the tree changes it.

◆ treeWidth

CssPx tachyon::GUIApplication::SettingsPanelState::treeWidth = 200

The page tree's width; its sizer changes it.

◆ internal

struct tachyon::GUIApplication::SettingsPanelState::Internal tachyon::GUIApplication::SettingsPanelState::internal

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