#include <ui_elements.hpp>
Public Member Functions | |
CheckBox (const char *text, Rectangle bounds, float rotation, bool checked=false) | |
virtual | ~CheckBox ()=default |
void | Draw () override |
Draws the sprites. More... | |
bool | IsChecked () |
Checks whether or not any of the checkboxes are checked. More... | |
void | SetChecked (bool value) |
Sets the "Checked" status of the boxes. More... | |
![]() | |
UIElement (Rectangle bounds, float rotation) | |
virtual | ~UIElement ()=default |
void | SetPosition (Vector2 position) |
Vector2 | GetPosition () |
void | SetRotation (float rotation) |
float | GetRotation () |
void | SetSize (Vector2 size) |
Vector2 | GetSize () |
![]() | |
Drawable () | |
Sets the sprites' IDs. More... | |
virtual | ~Drawable ()=default |
virtual void | Create () |
virtual void | Update () |
int | GetID () |
Protected Attributes | |
const char * | placeholder_text |
![]() | |
Rectangle | bounds |
float | rotation |
|
inline |
|
virtualdefault |
|
overridevirtual |
Draws the sprites.
Reimplemented from DrawableManager::Drawable.
bool CheckBox::IsChecked | ( | ) |
Checks whether or not any of the checkboxes are checked.
void CheckBox::SetChecked | ( | bool | value | ) |
Sets the "Checked" status of the boxes.
value | This describes the output from the IsChecked() function |
|
protected |