ui::MenuItem Class Reference

Inheritance diagram for ui::MenuItem:

Inheritance graph
[legend]
List of all members.

Detailed Description

An Item in a Menu. This is the superclass of all Menu related classes (Menu).


Public Member Functions

 MenuItem (const std::string &label)
 MenuItem (Icon *icon, const std::string &label)
virtual bool canHoldPermanentFocus () const


Constructor & Destructor Documentation

ui::MenuItem::MenuItem const std::string &  label  ) 
 

Create a new MenuItem with the given string as label.

Parameters:
str The string to use as label.


Member Function Documentation

bool ui::MenuItem::canHoldPermanentFocus  )  const [virtual]
 

Returns wether or not this Component can be a permanent focus owner. This is true by default, except for things like MenuItems, where a menu is the permanent focus owner and a menuitem merely a focus owner.

Reimplemented from ui::Component.

Reimplemented in ui::Menu.


Generated on Mon Jun 20 19:41:51 2005 for UI by doxygen 1.3.1 using KingsTools