- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo::UMenuManager Class Reference

Manages menu trees for popup menus. More...

#include <umenumanager.hpp>

Inheritance diagram for ufo::UMenuManager:

ufo::UObject ufo::UCollectable List of all members.

Public Member Functions

virtual void highlightItem (UMenuItem *item)
virtual void activateItem (UMenuItem *item)
virtual void clearPath ()
virtual void processKeyEvent (UKeyEvent *e)
virtual void processMouseEvent (UMouseEvent *e)

Static Public Member Functions

void setMenuManager (UMenuManager *manager)
UMenuManagergetMenuManager ()

Protected Member Functions

std::vector< UMenu * >::iterator getIteratorOfSameHierarchy (UMenuItem *item)
void clearPathFrom (const std::vector< UMenu * >::iterator &iter)
void closeMenuPopups (UEvent *e)
void openMenu (UMenu *menu)
void recalcPathWithLeaf (UMenuItem *item)
void highlightNextSibling (UMenuItem *item)
void highlightPreviousSibling (UMenuItem *item)
void highlightNextTopLevel (UMenuItem *item)
void highlightPreviousTopLevel (UMenuItem *item)

Detailed Description

Manages menu trees for popup menus.

Author:
Johannes Schmidt


Member Function Documentation

void ufo::UMenuManager::clearPathFrom const std::vector< UMenu * >::iterator &  iter  )  [protected]
 

Clears i.e. closes all menus following iter.

void ufo::UMenuManager::closeMenuPopups UEvent e  )  [protected]
 

Closes all menu popups.

std::vector<UMenu*>::iterator ufo::UMenuManager::getIteratorOfSameHierarchy UMenuItem item  )  [protected]
 

Returns:
The parent menu or the given item if it is itsself an aldready visible menu.


The documentation for this class was generated from the following file:
The libUFO Project - written by Johannes Schmidt