Logo Search packages:      
Sourcecode: fbdesk version File versions  Download package

FbTk::MenuItem Class Reference

#include <MenuItem.hh>

List of all members.


Detailed Description

An interface for a menu item in Menu.

Definition at line 36 of file MenuItem.hh.


Public Member Functions

 MenuItem (const char *label, Menu *submenu)
 MenuItem (const char *label, RefCount< Command > &cmd)
 create a menu item with a specific command to be executed on click
 MenuItem (const char *label)
virtual void setEnabled (bool enabled)
virtual void setLabel (const char *label)
virtual void setSelected (bool selected)
Menusubmenu ()
accessors
virtual void click (int button, int time)
const RefCount< Command > & command () const
RefCount< Command > & command ()
virtual bool isEnabled () const
virtual bool isSelected () const
virtual const std::string & label () const
const Menusubmenu () const

Private Attributes

RefCount< Commandm_command
 command to be executed
bool m_enabled
std::string m_label
 label of this item
bool m_selected
Menum_submenu
 a submenu, 0 if we don't have one

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

Generated by  Doxygen 1.6.0   Back to index