#include <ui_elements.hpp>
Public Member Functions | |
Button (const char *text, Rectangle bounds, float rotation) | |
virtual | ~Button () |
bool | IsClicked () |
Checks whether the button has been clicked or not. More... | |
void | Draw () override |
Draws the sprites. More... | |
void | Update () override |
Updates the spritess. 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 () |
int | GetID () |
Protected Attributes | |
bool | is_clicked |
const char * | text |
Sound | hover_sound |
Sound | click_sound |
![]() | |
Rectangle | bounds |
float | rotation |
|
inline |
|
inlinevirtual |
|
overridevirtual |
Draws the sprites.
Reimplemented from DrawableManager::Drawable.
bool Button::IsClicked | ( | ) |
Checks whether the button has been clicked or not.
|
overridevirtual |
Updates the spritess.
Reimplemented from DrawableManager::Drawable.
|
protected |
|
protected |
|
protected |
|
protected |