File textBox.hpp

struct TextBox : public UIElement
#include <textBox.hpp>

Public Functions

TextBox()
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 onNotify(Event event)

Notify routine, element responds to an event.

virtual void config()

Routine to update the element after a property has been changed.

void loadFont(const std::string &path)

Public Members

Color shownTextColor = RAYWHITE
int cursorPosition = 0
int debounce = 0