TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
Menus, tooltips and dialogs

Menus, context menus, the menu and title bar, tooltips, message dialogs and toasts. More...

Classes

class  tachyon::MenuManager
 State of the open menus (menu bar dropdowns, context menus, submenus) and their mouse and keyboard behaviour; one per application. More...
class  tachyon::TooltipManager
 Decides which element's tooltip shows: the hovered one after a delay, or at once for focus moved by the keyboard. More...

Functions

EventHandler tachyon::MakeMenuItemHandler (IDManager &idManager, GUIStateManager &guiStateManager, ElementStorage &elementStorage, MenuManager &menuManager, int depth, std::function< void()> onClick)
 Menu item event handler - fires the onClick callback on click/activation.
EventHandler tachyon::MakeSubmenuTriggerHandler (IDManager &idManager, GUIStateManager &guiStateManager, ElementStorage &elementStorage, MenuManager &menuManager, int depth)
 Like MakeMenuItemHandler, but Right arrow or activation opens a submenu instead of closing.

Detailed Description

Menus, context menus, the menu and title bar, tooltips, message dialogs and toasts.

Calls (members of tachyon::GUIApplication): BeginMenu, MenuItem, BeginMenuBar, BeginTitleBar, BeginContextMenu, SetTooltip, BeginTooltip, MessageDialog, ShowToast, Banner. Tooltips and dialogs: Tooltips and message dialogs. Guide: Menus.

Function Documentation

◆ MakeMenuItemHandler()

EventHandler tachyon::MakeMenuItemHandler ( IDManager & idManager,
GUIStateManager & guiStateManager,
ElementStorage & elementStorage,
MenuManager & menuManager,
int depth,
std::function< void()> onClick )

#include <gui_controls/gui_menu_manager.h>

Menu item event handler - fires the onClick callback on click/activation.

◆ MakeSubmenuTriggerHandler()

EventHandler tachyon::MakeSubmenuTriggerHandler ( IDManager & idManager,
GUIStateManager & guiStateManager,
ElementStorage & elementStorage,
MenuManager & menuManager,
int depth )

#include <gui_controls/gui_menu_manager.h>

Like MakeMenuItemHandler, but Right arrow or activation opens a submenu instead of closing.