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

One open menu: the root dropdown or a submenu. More...

#include <gui_controls/gui_menu_manager.h>

Public Attributes

int depth = -1
 root is 0, each submenu level adds 1
ID windowID = ID::Invalid()
ID triggerID = ID::Invalid()
ID activeItemID = ID::Invalid()
 highlighted item (mouse or keyboard)
ID scrollUpID = ID::Invalid()
 pre-allocated each frame for stable dynamic IDs
ID scrollDownID = ID::Invalid()
bool canScrollUp = false
 from last frame's layout
bool canScrollDown = false
 from last frame's layout
bool isOpen = false
bool reopened = false
 closed since last shown: start scrolled to the top
bool reserveIconColumn = false
 This frame: reserve the icon slot (from last frame's content).
bool itemsHaveIcons = false
 this frame: accumulated as items with icons are added
std::string filter
 MenuFilter's text; cleared when the menu closes.
bool filtering = false
 This frame: MenuFilter holds text, so items not matching it hide.

Detailed Description

One open menu: the root dropdown or a submenu.

Member Data Documentation

◆ depth

int tachyon::MenuManager::Level::depth = -1

root is 0, each submenu level adds 1

◆ windowID

ID tachyon::MenuManager::Level::windowID = ID::Invalid()

◆ triggerID

ID tachyon::MenuManager::Level::triggerID = ID::Invalid()

◆ activeItemID

ID tachyon::MenuManager::Level::activeItemID = ID::Invalid()

highlighted item (mouse or keyboard)

◆ scrollUpID

ID tachyon::MenuManager::Level::scrollUpID = ID::Invalid()

pre-allocated each frame for stable dynamic IDs

◆ scrollDownID

ID tachyon::MenuManager::Level::scrollDownID = ID::Invalid()

◆ canScrollUp

bool tachyon::MenuManager::Level::canScrollUp = false

from last frame's layout

◆ canScrollDown

bool tachyon::MenuManager::Level::canScrollDown = false

from last frame's layout

◆ isOpen

bool tachyon::MenuManager::Level::isOpen = false

◆ reopened

bool tachyon::MenuManager::Level::reopened = false

closed since last shown: start scrolled to the top

◆ reserveIconColumn

bool tachyon::MenuManager::Level::reserveIconColumn = false

This frame: reserve the icon slot (from last frame's content).

◆ itemsHaveIcons

bool tachyon::MenuManager::Level::itemsHaveIcons = false

this frame: accumulated as items with icons are added

◆ filter

std::string tachyon::MenuManager::Level::filter

MenuFilter's text; cleared when the menu closes.

◆ filtering

bool tachyon::MenuManager::Level::filtering = false

This frame: MenuFilter holds text, so items not matching it hide.


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