TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
gui_menu_manager.h File Reference
#include <string>
#include <gui_core/input/gui_input_handler_func.h>
#include <gui_core/gui_id.h>
#include <gui_core/gui_base_types.h>
#include <functional>
#include <unordered_map>
#include <vector>

Go to the source code of this file.

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...
struct  tachyon::MenuManager::Level
 One open menu: the root dropdown or a submenu. More...

Namespaces

namespace  tachyon

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.