GuiRadioBtn Class Reference
[2D graphical user interface2D graphical user interface]

A class for radio buttons. More...

#include <guidynamicbutton.h>

Inheritance diagram for GuiRadioBtn:

Inheritance graph
[legend]
Collaboration diagram for GuiRadioBtn:

Collaboration graph
[legend]
List of all members.

Public Member Functions

DECLSPEC GuiRadioBtn (const SDL_Rect &r, GuiRadioContainer *p, const char *name, const char *t=0, SdlSurfaceContainer *b=0, SdlAudio *u=0, SdlAudio *d=0)
DECLSPEC GuiRadioBtn (TiXmlElement *el, GuiRadioContainer *p)
virtual const char * getClassName ()
GuiRadioContainer::button_iter getiter ()

Static Public Member Functions

static void newguiobject (void *presult, BasicObject *o, void *xmldata)

Protected Member Functions

virtual DECLSPEC void onCheck (bool checked)
virtual DECLSPEC void onInit ()
virtual DECLSPEC Uint32 onThemeChanged (UiTheme *t)

Detailed Description

A class for radio buttons.


Constructor & Destructor Documentation

GuiRadioBtn::GuiRadioBtn ( TiXmlElement el,
GuiRadioContainer p 
)

Constructor. Uses XML data.

Parameters:
el the XML data for initialisation
p the element's container
See also:
GuiElement(TiXmlElement*,GuiElement*)


Member Function Documentation

virtual const char* GuiRadioBtn::getClassName (  )  [inline, virtual]

This function should be overriden in every sub-class of BasicObject!

Returns:
the name of the class.

Reimplemented from GuiCheckableBtn.

void GuiRadioBtn::onCheck ( bool  checked  )  [protected, virtual]

Called after the checked-state changed.

Parameters:
checked the new state (true if checked, false if unchecked)

Reimplemented from GuiCheckableBtn.

void GuiRadioBtn::onInit (  )  [protected, virtual]

Initializes the object's variables by reading data from the XML element. If there were no XML data used for creation, nothing is done. This function calls onInit() of its children recursively (after it has inited itself). It is highly recommended to call BasicObject::onInit(), usually at the end of the onInit() method, when overwriting it in a derived class.

Reimplemented from GuiCheckableBtn.

Uint32 GuiRadioBtn::onThemeChanged ( UiTheme t  )  [protected, virtual]

This event is called, when the theme changes. Perform here the changes of the object's look and feel.

Parameters:
t pointer to the new used theme
Returns:
currently the result is not used; may be zero, if no error...

Reimplemented from GuiCheckableBtn.


The documentation for this class was generated from the following files:
Generated on Wed May 9 17:36:25 2007 for netrinjo by  doxygen 1.5.1