This needs to be called before any other thing is done!
void initSclui();
Those are some pre-made filters for the textbox component
bool TextBoxFilterIsText(int c);
bool TextBoxFilterIsNumber(int c);
bool TextBoxFilterAllowAll(int c);
Gracefully quit the programm
void doQuit();
Returns the number of columns of the current console window
int getMaxX();
Returns the number of rows of the current console window
int getMaxY();
void (*onDraw)(); //event, when drawn
void (*onDestruct)(); //event, when destroyed
std::string name = (""); //name of the element
int x,y,color, colorFocus; //x- and y-position, color and focus color
bool visible = true; //visibility
bool enabled = true; //if the item should be interactable
T value; // T being the value type of the item, stores the value
Button(std::string_view name,int x, int y,int color, int colorFocus);
onButtonPress is an event, which is fired, when the button is pressed. -> Can be NULL.
void(*onButtonPress)();
TextBox(std::string_view name,int x, int y,int color, int colorFocus,int maxLength, bool(*filter)(int), char splitter);
onCheckChange is an event, which is fired, when the value of the checkbox is changed. -> Can be NULL.
void(*onCheckBoxChange)();
Text(std::string_view name,int x, int y,int color);