CAMenuItem Class Reference

Base class for items which can appear in menus (labels, inputs or selectors). More...

#include <camenuitem.h>

Inheritance diagram for CAMenuItem:

CAMenuLabel CAMenuInput CAMenuSelect List of all members.

Public Member Functions

 CAMenuItem (CAMenu *menu, int pos, const char *label)
 Constructor.
virtual ~CAMenuItem ()
 Destructor.
virtual int rtti ()
 Returns rtti of this menu item.
virtual void display (bool highlight)=0
virtual void handleKey (const CL_Key &key)=0
void setLabel (const char *l)
 Sets a new label for this menu item.

Protected Attributes

CAMenu * menu
 Pointer to menu.
int pos
 Position of this menu item (0 is the top position).
int top
 Top position of this menu item (in pixel).
CL_String label
 The label of this menu item.

Detailed Description

Base class for items which can appear in menus (labels, inputs or selectors).

Author:
Andrew Mustun


Member Function Documentation

virtual int CAMenuItem::rtti (  )  [inline, virtual]

Returns rtti of this menu item.

CA_MI_VIRTUAL for virtual menu items (should never happen).

Reimplemented in CAMenuInput, CAMenuLabel, and CAMenuSelect.


The documentation for this class was generated from the following files:
Generated on Tue Nov 28 06:48:29 2006 by  doxygen 1.5.0