#include <CUI_MenuItem.h>
Inheritance diagram for CUI_MenuItem:
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_Shader * | GetSubMenuIcon () |
get the shader being used for the submenu icon | |
virtual CUI_Frame * | GetSubMenuIconFrame () |
get the frame being used for the submenu icon | |
Protected Attributes | |
void * | m_submenu |
the sub | |
IUI_Shader * | m_subMenuIcon |
icon used to denote that this item is a submenu | |
CUI_Frame * | m_subMenuIconFrame |
the frame used by this item to display the sub-icon |
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