Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CUI_MenuItem Class Reference

A simple class for keeping track of items in a menu. More...

#include <CUI_MenuItem.h>

Inheritance diagram for CUI_MenuItem:

CUI_ListItem List of all members.

Public Member Functions

 CUI_MenuItem (const char *text=NULL, unsigned int itemID=0, IUI_Shader *icon=NULL, unsigned short flags=UI_ITEM_BUTTON, IUI_Shader *submenuicon=NULL, void *submenu=NULL)
 constructor

virtual ~CUI_MenuItem ()
 destructor

virtual bool CreateElements (CUI_UI *ui, CUI_Frame *parent, IUI_Shader *itemShader, IUI_Shader *hoverShader, IUI_Border *itemBorder, IUI_Font *font)
 create elements and add them to the ui and parent

virtual bool SetSubMenu (void *submenu)
 set the sublist

virtual void * GetSubMenu ()
 get the sublist

virtual bool SetSubMenuIcon (IUI_Shader *icon)
 set the shader to use for the submenu icon

virtual IUI_ShaderGetSubMenuIcon ()
 get the shader being used for the submenu icon

virtual CUI_FrameGetSubMenuIconFrame ()
 get the frame being used for the submenu icon


Protected Attributes

void * m_submenu
 the sub

IUI_Shaderm_subMenuIcon
 icon used to denote that this item is a submenu

CUI_Framem_subMenuIconFrame
 the frame used by this item to display the sub-icon


Detailed Description

A simple class for keeping track of items in a menu.

adds submenu interface over listitem

Like listem, it can be inherited to produce custom items in a menu.

Recognized Flags:
UI_ITEM_INACTIVE
UI_ITEM_DISABLED
UI_ITEM_BUTTON
UI_ITEM_TOGGLE


The documentation for this class was generated from the following files:
Generated on Mon Sep 29 23:07:03 2003 for glGUI by doxygen 1.3.4