ubit
Public Member Functions | Protected Attributes | Friends | List of all members
ubit::UMenuManager Class Reference

[Implementation] manages the stack of menus that are currently opened on a given EventFlow. More...

#include <umenuImpl.hpp>

Public Member Functions

 UMenuManager (UEventFlow *)
 
UMenugetDeepestMenu () const
 returns the deepest menu in the menu stack (if any, null otherwise).
 
bool contains (UMenu *menu) const
 
bool contains (UView *) const
 
void closeAllMenus (bool clear_top_menu)
 closes all menus in the menu stack.
 
void closeSubMenus (UMenu *from_menu, bool including_this_menu)
 closes the submenus of this menu (calls closeAllMenus if menu is not found).
 
void openMenu (UView *opener, UMenu *, UDisp *)
 
void openMenuAfterDelay ()
 
void closeMenuAfterDelay ()
 
void menuChildCB (UInputEvent &, UBox *menu_or_menubar)
 

Protected Attributes

std::vector< UMenu * > menustack
 
int menu_count
 
UDispdisp
 
UEventFloweflow
 
UViewactive_opener
 
UViewpossible_opener
 
UViewpossible_closer
 
UMenuactive_menu
 
UMenupossible_opener_menu
 
UMenupossible_closer_menu
 
uptr< UTimerkk_open_timer
 
uptr< UTimerkk_close_timer
 
UBoxtop_menu
 

Friends

class UMenu
 
class UMenubar
 
class UEventFlow
 

Detailed Description

[Implementation] manages the stack of menus that are currently opened on a given EventFlow.


The documentation for this class was generated from the following files: