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

State of a CommandSearch box; user-owned, keep it alive across frames. More...

#include <gui_controls/gui_widget_state_types.h>

Public Attributes

std::string query
 the typed text
std::string hint = "Search or run a command"
 shown while the query is empty
std::string shortcut
 Keycap at the right, e.g. the key that focuses the search.
int current = 0
 highlighted match, moved by Up / Down
bool focusRequested = false
 set by FocusCommandSearch, taken next frame
bool ranCommand = false
 a command ran since the last CommandSearch call
tachyon::ID listWindowID = tachyon::ID::Invalid()
 internal: the results popup

Detailed Description

State of a CommandSearch box; user-owned, keep it alive across frames.

Member Data Documentation

◆ query

std::string tachyon::CommandSearchState::query

the typed text

◆ hint

std::string tachyon::CommandSearchState::hint = "Search or run a command"

shown while the query is empty

◆ shortcut

std::string tachyon::CommandSearchState::shortcut

Keycap at the right, e.g. the key that focuses the search.

◆ current

int tachyon::CommandSearchState::current = 0

highlighted match, moved by Up / Down

◆ focusRequested

bool tachyon::CommandSearchState::focusRequested = false

set by FocusCommandSearch, taken next frame

◆ ranCommand

bool tachyon::CommandSearchState::ranCommand = false

a command ran since the last CommandSearch call

◆ listWindowID

tachyon::ID tachyon::CommandSearchState::listWindowID = tachyon::ID::Invalid()

internal: the results popup


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