Public Member Functions | |
| RadioButton () | |
| Default constructor. More... | |
| RadioButton (const RadioButton ©) | |
| Copy constructor. More... | |
| RadioButton & | operator= (const RadioButton &right) |
| Overload of assignment operator. More... | |
| virtual void | check () |
| Checks the radio button. More... | |
| virtual void | uncheck () |
| Does nothing. More... | |
Public Member Functions inherited from tgui::Checkbox | |
| Checkbox () | |
| Default constructor. More... | |
| Checkbox (const Checkbox ©) | |
| Copy constructor. More... | |
| virtual | ~Checkbox () |
| Destructor. More... | |
| Checkbox & | operator= (const Checkbox &right) |
| Overload of assignment operator. More... | |
| virtual bool | load (const std::string &pathname) |
| Loads the checkbox images and optionally a matching text color. More... | |
| virtual void | setSize (float width, float height) |
| Changes the size of the checkbox. More... | |
| virtual Vector2u | getSize () const |
| Returns the size of the checkbox, unaffected by scaling. More... | |
| virtual Vector2f | getScaledSize () const |
| Returns the size of the checkbox, after the scaling transformation. More... | |
| virtual std::string | getLoadedPathname () const |
| Returns the pathname that was used to load the checkbox. More... | |
| virtual bool | isChecked () const |
| Returns whether the checkbox is checked or not. More... | |
| virtual void | setText (const sf::String &text) |
| Changes the text of the checkbox. More... | |
| virtual sf::String | getText () const |
| Returns the text of the checkbox. More... | |
| virtual void | setTextFont (const sf::Font &font) |
| Changes the font of the text. More... | |
| virtual const sf::Font * | getTextFont () const |
| Returns the font of the text. More... | |
| virtual void | setTextColor (const sf::Color &color) |
| Changes the color of the text. More... | |
| virtual const sf::Color & | getTextColor () const |
| Returns the color of the text. More... | |
| virtual void | setTextSize (unsigned int size) |
| Changes the character size of the text. More... | |
| virtual unsigned int | getTextSize () const |
| Returns the character size of the text. More... | |
Public Member Functions inherited from tgui::OBJECT | |
| OBJECT () | |
| Default constructor. More... | |
| OBJECT (const OBJECT ©) | |
| Copy constructor. More... | |
| virtual | ~OBJECT () |
| Destructor. More... | |
| OBJECT & | operator= (const OBJECT &right) |
| Overload of assignment operator. More... | |
| virtual void | show () |
| Shows the object. More... | |
| virtual void | hide () |
| Hides the object. More... | |
| virtual bool | isVisible () const |
| Returns true when the object is visible. More... | |
| virtual void | enable () |
| Enables the object. More... | |
| virtual void | disable () |
| Disables the object. More... | |
| virtual bool | isEnabled () const |
| Returns true when the object is enabled. More... | |
| virtual bool | isDisabled () const |
| Returns true when the object is disabled. More... | |
| virtual bool | isLoaded () const |
| Returns true when the object is loaded successfully. More... | |
| void | focus () |
| Focus the object. More... | |
| void | unfocus () |
| Unfocus the object. More... | |
| void | focusNextObject () |
| Focuses the next object. More... | |
| virtual bool | isFocused () const |
| Returns true when the object is focused and false otherwise. More... | |
| virtual ObjectTypes | getObjectType () const |
| Returns the type of the object. More... | |
| virtual void | moveToFront () |
| Places the object before all other objects. More... | |
| virtual void | moveToBack () |
| Places the object behind all other objects. More... | |
Additional Inherited Members | |
Public Attributes inherited from tgui::Checkbox | |
| bool | allowTextClick |
| When this boolean is true (default) then the checkbox will also be checked/unchecked by clicking on the text. More... | |
| tgui::RadioButton::RadioButton | ( | ) |
Default constructor.
| tgui::RadioButton::RadioButton | ( | const RadioButton & | copy | ) |
Copy constructor.
|
virtual |
Checks the radio button.
It will tell its parent to uncheck all the other radio buttons.
Reimplemented from tgui::Checkbox.
| RadioButton& tgui::RadioButton::operator= | ( | const RadioButton & | right | ) |
Overload of assignment operator.
|
virtual |
Does nothing.
Unchecking a radio button isn't possible so this function makes sure that nothing happens when trying to uncheck it.
Reimplemented from tgui::Checkbox.
1.8.5