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

CUI_RadioItem Class Reference

A simple class for keeping track of properties of items in a radio group. More...

#include <CUI_RadioItem.h>

Inheritance diagram for CUI_RadioItem:

CUI_ListItem List of all members.

Public Member Functions

 CUI_RadioItem (const char *text=NULL, unsigned int itemID=0, IUI_Shader *icon=NULL, unsigned short flags=UI_ITEM_BUTTON)
 constructor

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

virtual CUI_ButtonGetButton ()
 get the button which represents this list item


Protected Attributes

CUI_MultipleStateButtonm_button
 button is a multiple state button now


Detailed Description

A simple class for keeping track of properties of items in a radio group.

The only difference is in the CreateElements member function.

This is a good example of how to extend CUI_ListItem for custom lists.

Recognized Flags:
UI_ITEM_INACTIVE
UI_ITEM_DISABLED


Member Function Documentation

virtual CUI_Button* CUI_RadioItem::GetButton  )  [inline, virtual]
 

get the button which represents this list item

Need to have it use the local m_button, instead of the one in CUI_ListItem.

Can't override with different return type, so caller will need to cast the returned pointer.

Reimplemented from CUI_ListItem.


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