csMenuItem Class Reference
[Menu]
This class encapsulates a menu item.
More...
#include <csws/csmenu.h>
Inheritance diagram for csMenuItem:

Public Member Functions | |
csMenuItem (csComponent *iParent, const char *iText, int iCommandCode=0, int iStyle=CSMIS_DEFAULTVALUE) | |
Menu item constructor: text item with optional style. | |
csMenuItem (csComponent *iParent, int iStyle=CSMIS_DEFAULTVALUE) | |
Menu item constructor: construct a separator item. | |
csMenuItem (csComponent *iParent, const char *iText, csMenu *iSubMenu, int iStyle=CSMIS_DEFAULTVALUE) | |
Menu item constructor: construct a submenu. | |
virtual | ~csMenuItem () |
Destroy menu item object. | |
virtual void | SuggestSize (int &w, int &h) |
Report the minimal size of menu item. | |
virtual void | SetText (const char *iText) |
Set menu item text. | |
virtual bool | HandleEvent (iEvent &Event) |
Handle input events. | |
virtual void | Draw () |
Draw the menu item. | |
virtual bool | SetRect (int xmin, int ymin, int xmax, int ymax) |
Move child menus when moved. | |
virtual int | GetStyle () |
Get the Style bitmask for this menu item. | |
Protected Member Functions | |
void | Init () |
Common part of constructors. | |
virtual void | Press () |
Activate this menu item. | |
Static Protected Attributes | |
csPixmap * | sprchecked |
Menu item 'checked' image. | |
csPixmap * | sprsubmenu |
"Open submenu" arrow image |
Detailed Description
This class encapsulates a menu item.
Definition at line 54 of file csmenu.h.
Constructor & Destructor Documentation
|
Menu item constructor: text item with optional style.
|
|
Menu item constructor: construct a separator item.
|
|
Menu item constructor: construct a submenu.
|
|
Destroy menu item object.
|
Member Function Documentation
|
Draw the menu item.
Reimplemented from csComponent. |
|
Get the Style bitmask for this menu item.
|
|
Handle input events.
Reimplemented from csComponent. |
|
Common part of constructors.
|
|
Activate this menu item.
|
|
Move child menus when moved.
Reimplemented from csComponent. |
|
Set menu item text.
Reimplemented from csComponent. |
|
Report the minimal size of menu item.
Reimplemented from csComponent. |
Member Data Documentation
|
Menu item 'checked' image.
|
|
"Open submenu" arrow image
|
The documentation for this class was generated from the following file:
- csws/csmenu.h
Generated for Crystal Space by doxygen 1.3.9.1