File button.hpp¶
-
struct Button : public UIElement¶
- #include <button.hpp>
Public Functions
-
Button()¶
-
virtual void init()¶
Initialize the properties and callbacks.
-
virtual void update()¶
Update routine.
-
virtual void draw(Rectangle rect)¶
Draw routine using a rect.
-
virtual void config()¶
Routine to update the element after a property has been changed.
-
void loadFont(const std::string &path)¶
Public Members
-
Color shownTextColor = BLACK¶
-
Button()¶