omegalib  13.1
omegaToolkit::ui::MenuItem Class Reference

#include <Menu.h>

Public Types

enum  Type {
  Button, Checkbox, Slider, Label,
  SubMenu, Image, Container
}
 

Public Member Functions

 MenuItem (Type type, Menu *owner)
 
virtual void handleEvent (const Event &evt)
 
Type getType ()
 
void setListener (IMenuItemListener *value)
 
IMenuItemListenergetListener ()
 
const StringgetText ()
 
void setText (const String &value)
 
const StringgetDescription ()
 
void setDescription (const String &value)
 
void setCommand (const String &command)
 
const StringgetCommand ()
 
void setImage (PixelData *image)
 Submenu methods. More...
 
omegaToolkit::ui::WidgetgetWidget ()
 
omegaToolkit::ui::SlidergetSlider ()
 
omegaToolkit::ui::LabelgetLabel ()
 
omegaToolkit::ui::ButtongetButton ()
 
omegaToolkit::ui::ImagegetImage ()
 
omegaToolkit::ui::ContainergetContainer ()
 
MenugetSubMenu ()
 
void setChecked (bool value)
 Checkbox methods. More...
 
bool isChecked ()
 
void setUserTag (const String &value)
 User data management. More...
 
const StringgetUserTag ()
 
void * getUserData ()
 
void setUserData (void *value)
 
- Public Member Functions inherited from omicron::ReferenceType
 ReferenceType ()
 
virtual ~ReferenceType ()
 
void ref ()
 
void unref ()
 
long refCount ()
 
- Public Member Functions inherited from omicron::IEventListener
virtual void handleEvent (const Event &evt)=0
 

Friends

class Menu
 

Additional Inherited Members

- Static Public Member Functions inherited from omicron::ReferenceType
static void printObjCounts ()
 
- Static Protected Attributes inherited from omicron::ReferenceType
static List< ReferenceType * > mysObjList
 
+ Inheritance diagram for omegaToolkit::ui::MenuItem:

Member Enumeration Documentation

Enumerator
Button 
Checkbox 
Slider 
Label 
SubMenu 
Image 
Container 

Constructor & Destructor Documentation

omegaToolkit::ui::MenuItem::MenuItem ( Type  type,
Menu owner 
)

Member Function Documentation

omegaToolkit::ui::Button* omegaToolkit::ui::MenuItem::getButton ( )
inline
const String& omegaToolkit::ui::MenuItem::getCommand ( )
omegaToolkit::ui::Container* omegaToolkit::ui::MenuItem::getContainer ( )
inline
const String& omegaToolkit::ui::MenuItem::getDescription ( )
inline
omegaToolkit::ui::Image* omegaToolkit::ui::MenuItem::getImage ( )
inline
omegaToolkit::ui::Label* omegaToolkit::ui::MenuItem::getLabel ( )
inline
IMenuItemListener* omegaToolkit::ui::MenuItem::getListener ( )
inline
omegaToolkit::ui::Slider* omegaToolkit::ui::MenuItem::getSlider ( )
inline
Menu* omegaToolkit::ui::MenuItem::getSubMenu ( )
inline
const String& omegaToolkit::ui::MenuItem::getText ( )
inline
Type omegaToolkit::ui::MenuItem::getType ( )
inline
void* omegaToolkit::ui::MenuItem::getUserData ( )
inline
const String& omegaToolkit::ui::MenuItem::getUserTag ( )
inline
omegaToolkit::ui::Widget* omegaToolkit::ui::MenuItem::getWidget ( )
inline
virtual void omegaToolkit::ui::MenuItem::handleEvent ( const Event &  evt)
virtual
bool omegaToolkit::ui::MenuItem::isChecked ( )
void omegaToolkit::ui::MenuItem::setChecked ( bool  value)

Checkbox methods.

void omegaToolkit::ui::MenuItem::setCommand ( const String command)
void omegaToolkit::ui::MenuItem::setDescription ( const String value)
void omegaToolkit::ui::MenuItem::setImage ( PixelData image)

Submenu methods.

Sets the image for this menu item. Image and Button menu items support images

void omegaToolkit::ui::MenuItem::setListener ( IMenuItemListener value)
void omegaToolkit::ui::MenuItem::setText ( const String value)
void omegaToolkit::ui::MenuItem::setUserData ( void *  value)
inline
void omegaToolkit::ui::MenuItem::setUserTag ( const String value)
inline

User data management.

Friends And Related Function Documentation

friend class Menu
friend

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