A single radio button, which has an attribute to signify what group it belongs to.
Public Member Functions | |
PG_RadioButton (PG_Widget *parent, const PG_Rect &r=PG_Rect::null, const char *text=NULL, PG_RadioButton *firstOfGroup=NULL, int id=-1, const char *style="RadioButton") | |
~PG_RadioButton () | |
void | LoadThemeStyle (const char *widgettype) |
Load a specific themestyle. | |
bool | GetPressed () |
void | SetPressed () |
void | SetAlignment (PG_Label::TextAlign a) |
Sets text alignment. | |
void | SetText (const char *text) |
Sets text. | |
const char * | GetText () |
Returns text. | |
void | SetFontColor (const PG_Color &Color) |
Set font color. | |
void | SetSizeByText (int Width=0, int Height=0, const char *Text=NULL) |
Set widget size by size of text (should be used before Show() or AddWidget()). | |
void | AddToGroup (PG_RadioButton *w) |
Public Attributes | |
SignalButtonClick< bool > | sigClick |
Protected Member Functions | |
void | ReleaseButton () |
void | eventMouseEnter () |
eventhandler for mouse movements. | |
void | eventMouseLeave () |
eventhandler for mouse movements. | |
bool | eventMouseButtonUp (const SDL_MouseButtonEvent *button) |
Overridable Eventhandler for a SDL_MouseButtonEvent message. | |
bool | handleButtonClick (PG_Button *button) |
Protected Attributes | |
PG_RadioButton * | my_groupFirst |
PG_RadioButton * | my_groupNext |
PG_Button * | my_widgetButton |
PG_Label * | my_widgetLabel |
bool | my_isPressed |
|
|
|
|
|
|
|
Overridable Eventhandler for a SDL_MouseButtonEvent message. This handler is called when a mouse button is released. The default implementation returns 'false' which indicates that this message is not processed by this object.
Reimplemented from PG_MessageObject. Reimplemented in PG_CheckButton. |
|
eventhandler for mouse movements. This overrideable handler is called everytime the mouse cursor is entering the widget area. Reimplemented from PG_Widget. |
|
eventhandler for mouse movements. This overrideable handler is called everytime the mouse cursor is leaving the widget area. Reimplemented from PG_Widget. |
|
|
|
Returns text.
Reimplemented from PG_Widget. |
|
|
|
Load a specific themestyle.
Reimplemented from PG_ThemeWidget. |
|
|
|
Sets text alignment.
|
|
Set font color.
Reimplemented from PG_Widget. |
|
|
|
Set widget size by size of text (should be used before Show() or AddWidget()).
Reimplemented from PG_Widget. |
|
Sets text.
Reimplemented from PG_Widget. |
|
|
|
|
|
|
|
|
|
|
|
|