CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

csRadioButton Class Reference
[Radio button]

The csRadioButton class is a close child of csButton class. More...

#include <csradbut.h>

Inheritance diagram for csRadioButton:

csButton csComponent List of all members.

Public Methods

 csRadioButton (csComponent *iParent, int iButtonID, int iButtonStyle=CSBS_DEFAULTRADIOBUTTON)
 Create a radio button object.

virtual bool HandleEvent (iEvent &Event)
 Handle external events.


Protected Methods

virtual void Press ()
 Emulate a button press (generate command).

void SetButtBitmap (char *id_n, char *id_p)
 Change bitmaps used for displaying normal/pressed states.

void SetRadioButtonState (bool iNewState)
 Set radio button state.


Detailed Description

The csRadioButton class is a close child of csButton class.

The radio button contains a fixed bitmap which changes depending on its state (selected/unselected) and no text. Radio buttons are usualy tied in groups of which only one can be selected, and when user selects one previous selection automatically deselects. The first radio button in group should have the CSS_GROUP flag set.

Definition at line 73 of file csradbut.h.


Constructor & Destructor Documentation

csRadioButton::csRadioButton csComponent   iParent,
int    iButtonID,
int    iButtonStyle = CSBS_DEFAULTRADIOBUTTON
 

Create a radio button object.


Member Function Documentation

virtual bool csRadioButton::HandleEvent iEvent   Event [virtual]
 

Handle external events.

Reimplemented from csButton.

virtual void csRadioButton::Press   [protected, virtual]
 

Emulate a button press (generate command).

Reimplemented from csButton.

void csRadioButton::SetButtBitmap char *    id_n,
char *    id_p
[protected]
 

Change bitmaps used for displaying normal/pressed states.

void csRadioButton::SetRadioButtonState bool    iNewState [protected]
 

Set radio button state.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.18