FabGL
ESP32 Display Controller and Graphics Library
InputBox Class Reference

InputBox is an helper class which allows to create simple UI interfaces, like wizards or simple input boxes. More...

#include <inputbox.h>

Public Member Functions

 InputBox ()
 Creates a new InputBox instance. More...
 
void begin (char const *modeline=nullptr, int viewPortWidth=-1, int viewPortHeight=-1)
 Initializes InputBox from VGA modeline, using a VGA16Controller. More...
 
void begin (BitmappedDisplayController *displayController)
 Initializes InputBox from already initialized display controller. More...
 
void end ()
 Cleanup resources and eventually disable VGA output. More...
 
int menu (char const *titleText, char const *messageText, char const *itemsText, char separator=';')
 Shows a dialog with a label and a list box. The dialog exits when an item is selected, just like a menu. More...
 
int menu (char const *titleText, char const *messageText, StringList *items)
 Shows a dialog with a label and a list box. The dialog exits when an item is selected, just like a menu. More...
 
InputResult message (char const *titleText, char const *messageText, char const *buttonCancelText=nullptr, char const *buttonOKText="OK")
 Shows a dialog with just a label. More...
 
InputResult messageFmt (char const *titleText, char const *buttonCancelText, char const *buttonOKText, const char *format,...)
 Shows a dialog with a just a label. Allows printf like formatted text. More...
 
template<typename Func >
InputResult progressBox (char const *titleText, char const *buttonCancelText, bool hasProgressBar, int width, Func execFunc)
 Shows a dialog with a label and a progress bar, updated dynamically by a user function. More...
 
int select (char const *titleText, char const *messageText, char const *itemsText, char separator=';', char const *buttonCancelText="Cancel", char const *buttonOKText="OK", int OKAfter=0)
 Shows a dialog with a label and a list box. More...
 
InputResult select (char const *titleText, char const *messageText, StringList *items, char const *buttonCancelText="Cancel", char const *buttonOKText="OK", int OKAfter=0)
 Shows a dialog with a label and a list box. More...
 
void setBackgroundColor (RGB888 const &value)
 Sets the background color. More...
 
InputResult textInput (char const *titleText, char const *labelText, char *inOutString, int maxLength, char const *buttonCancelText="Cancel", char const *buttonOKText="OK", bool passwordMode=false)
 Shows a dialog with a label and a text edit box. More...
 

Detailed Description

InputBox is an helper class which allows to create simple UI interfaces, like wizards or simple input boxes.

Definition at line 183 of file inputbox.h.


The documentation for this class was generated from the following files: