

Public Member Functions | |
| PG_RadioButton (PG_Widget *parent, const PG_Rect &r=PG_Rect::null, const std::string &text=PG_NULLSTR, PG_RadioButton *firstOfGroup=NULL, int id=-1, const std::string &style="RadioButton") | |
| ~PG_RadioButton () | |
| void | LoadThemeStyle (const std::string &widgettype) |
| Load a specific themestyle. | |
| bool | GetPressed () |
| void | SetPressed () |
| void | SetAlignment (PG_Label::TextAlign a) |
| Sets text alignment. | |
| void | SetText (const std::string &text) |
| Sets text. | |
| const PG_String & | GetText () |
| Returns text. | |
| void | SetFontColor (const PG_Color &Color) |
| void | SetSizeByText (int Width=0, int Height=0, const std::string &Text=PG_NULLSTR) |
| Set widget size by size of text (should be used before Show() or AddWidget()). | |
| void | AddToGroup (PG_RadioButton *w) |
| PG_RadioButton * | GetFirstOfGroup () |
| Returns first radio button of the group. | |
| PG_RadioButton * | GetNextOfGroup () |
| Returns next radio button in the group. | |
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. | |
| virtual 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 |
Classes | |
| class | SignalButtonClick |
| Signal type declaration. More... | |
|
||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
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 first radio button of the group.
|
|
|
Returns next radio button in the group.
|
|
|
|
|
|
Returns text.
Reimplemented from PG_Widget. |
|
|
|
|
|
Load a specific themestyle.
Reimplemented from PG_ThemeWidget. |
|
|
|
|
|
Sets text alignment.
|
|
|
|
|
|
|
|
||||||||||||||||
|
Set widget size by size of text (should be used before Show() or AddWidget()).
Reimplemented from PG_Widget. |
|
|
Sets text.
Reimplemented from PG_Widget. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.2