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

ufo::UMenuItem Class Reference

A menu item. More...

#include <umenuitem.hpp>

Inheritance diagram for ufo::UMenuItem:

ufo::UButton ufo::UCompound ufo::UWidget ufo::UObject ufo::UCollectable ufo::UCheckBoxMenuItem ufo::UMenu List of all members.

Public Member Functions

 UMenuItem (UIcon *icon)
 UMenuItem (const std::string &text, UIcon *icon=NULL)
UMenugetParentMenu () const
virtual void activate ()
virtual UStyle::ComponentElement getStyleType () const

Protected Member Functions

virtual void processMouseEvent (UMouseEvent *e)
virtual void processKeyEvent (UKeyEvent *e)
UMenuItemModelgetMenuItemModel () const

Detailed Description

A menu item.

Author:
Johannes Schmidt


Member Function Documentation

virtual void ufo::UMenuItem::activate  )  [virtual]
 

Activates the button and fires an action event.

Reimplemented from ufo::UButton.

UMenu* ufo::UMenuItem::getParentMenu  )  const
 

Returns:
The logical parent which created the popupmenu with this menuitem or NULL if this menu is in the top most menu container (e.g. a menubar or a context popup menu).

virtual void ufo::UMenuItem::processKeyEvent UKeyEvent e  )  [protected, virtual]
 

Processes key events. Primarily, it is used to notify listeners.

Reimplemented from ufo::UButton.

virtual void ufo::UMenuItem::processMouseEvent UMouseEvent e  )  [protected, virtual]
 

Processes focus events. Primarily, it is used to notify listeners.

Reimplemented from ufo::UButton.


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