「App:Library:FabGL:Class:InputBox」の版間の差分

提供: robot-jp wiki
ナビゲーションに移動検索に移動
8行目: 8行目:
 
! colspan="2" |''' Enumerator'''
 
! colspan="2" |''' Enumerator'''
 
|-
 
|-
|1
 
 
|
 
|
 +
|InputBox (uiApp *app=nullptr)
 
|-
 
|-
|2
 
 
|
 
|
 +
|Creates a new InputBox instance. More...
 +
|-
 +
| colspan="2" |
 +
|-
 +
|void
 +
|begin (char const *modeline=nullptr, int viewPortWidth=-1, int viewPortHeight=-1, int displayColors=16)
 
|-
 
|-
|3
 
 
|
 
|
 +
|Initializes InputBox from VGA modeline, using a VGA16Controller. More...
 +
|-
 +
| colspan="2" |
 +
|-
 +
|void
 +
|begin (BitmappedDisplayController *displayController)
 
|-
 
|-
|4
 
 
|
 
|
 +
|Initializes InputBox from already initialized display controller. More...
 +
|-
 +
| colspan="2" |
 +
|-
 +
|void
 +
|end ()
 
|-
 
|-
|5
 
 
|
 
|
 +
|Cleanup resources and eventually disable VGA output. More...
 +
|-
 +
| colspan="2" |
 +
|-
 +
|InputResult
 +
|fileSelector (char const *titleText, char const *messageText, char *inOutDirectory, int maxDirectoryLength, char *inOutFilename, int maxFilenameLength, char const *buttonCancelText="Cancel", char const *buttonOKText="OK")
 
|-
 
|-
|6
 
 
|
 
|
 +
|Selects a file and directory starting from the specified path. More...
 +
|-
 +
| colspan="2" |
 +
|-
 +
|InputResult
 +
|folderBrowser (char const *titleText, char const *directory="/", char const *buttonOKText="Close")
 
|-
 
|-
|7
 
 
|
 
|
 +
|Shows a dialog with files and folders and buttons to create new folders, delete and rename folders and files. More...
 +
|-
 +
| colspan="2" |
 +
|-
 +
|BitmappedDisplayController *
 +
|getDisplayController ()
 
|-
 
|-
|8
 
 
|
 
|
 +
|Gets created or assigned display controller. More...
 +
|-
 +
| colspan="2" |
 +
|-
 +
|InputResult
 +
|getLastResult ()
 
|-
 
|-
|9
 
 
|
 
|
 +
|Gets last dialog result. More...
 +
|-
 +
| colspan="2" |
 +
|-
 +
|int
 +
|menu (char const *titleText, char const *messageText, char const *itemsText, char separator=';')
 
|-
 
|-
|0
 
 
|
 
|
 +
|Shows a dialog with a label and a list box. The dialog exits when an item is selected, just like a menu. More...
 +
|-
 +
| colspan="2" |
 +
|-
 +
|int
 +
|menu (char const *titleText, char const *messageText, StringList *items)
 
|-
 
|-
|1
 
 
|
 
|
 +
|Shows a dialog with a label and a list box. The dialog exits when an item is selected, just like a menu. More...
 +
|-
 +
| colspan="2" |
 +
|-
 +
|InputResult
 +
|message (char const *titleText, char const *messageText, char const *buttonCancelText=nullptr, char const *buttonOKText="OK")
 
|-
 
|-
|2
 
 
|
 
|
 +
|Shows a dialog with just a label. More...
 +
|-
 +
| colspan="2" |
 +
|-
 +
|InputResult
 +
|messageFmt (char const *titleText, char const *buttonCancelText, char const *buttonOKText, const char *format,...)
 
|-
 
|-
|3
 
 
|
 
|
 +
|Shows a dialog with a just a label. Allows printf like formatted text. More...
 +
|-
 +
| colspan="2" |
 +
|-
 +
| colspan="2" |template<typename Func >
 +
|-
 +
|InputResult
 +
|progressBox (char const *titleText, char const *buttonCancelText, bool hasProgressBar, int width, Func execFunc)
 
|-
 
|-
|4
 
 
|
 
|
 +
|Shows a dialog with a label and a progress bar, updated dynamically by a user function. More...
 +
|-
 +
| colspan="2" |
 +
|-
 +
|int
 +
|select (char const *titleText, char const *messageText, char const *itemsText, char separator=';', char const *buttonCancelText="Cancel", char const *buttonOKText="OK")
 
|-
 
|-
|5
 
 
|
 
|
 +
|Shows a dialog with a label and a list box. More...
 +
|-
 +
| colspan="2" |
 +
|-
 +
|InputResult
 +
|select (char const *titleText, char const *messageText, StringList *items, char const *buttonCancelText="Cancel", char const *buttonOKText="OK")
 
|-
 
|-
|6
 
 
|
 
|
 +
|Shows a dialog with a label and a list box. More...
 +
|-
 +
| colspan="2" |
 +
|-
 +
|int
 +
|selectedSubItem ()
 
|-
 
|-
|7
 
 
|
 
|
 +
|Gets the selected item on a multichoice button. More...
 +
|-
 +
| colspan="2" |
 +
|-
 +
|void
 +
|setAutoOK (int timeout)
 
|-
 
|-
|8
 
 
|
 
|
 +
|Specifies a timeout for the dialog. More...
 +
|-
 +
| colspan="2" |
 +
|-
 +
|void
 +
|setBackgroundColor (RGB888 const &value)
 
|-
 
|-
|9
 
 
|
 
|
 +
|Sets the background color. More...
 +
|-
 +
| colspan="2" |
 +
|-
 +
|void
 +
|setMinButtonsWidth (int value)
 
|-
 
|-
|0
 
 
|
 
|
 +
|Sets minimum buttons size. More...
 +
|-
 +
| colspan="2" |
 +
|-
 +
|void
 +
|setupButton (int index, char const *text, char const *subItems=nullptr, int subItemsHeight=80)
 
|-
 
|-
|0
 
 
|
 
|
 +
|Setups extended button or split-button. More...
 
|-
 
|-
|0
+
| colspan="2" |
|
+
|-
 +
|InputResult
 +
|textInput (char const *titleText, char const *labelText, char *inOutString, int maxLength, char const *buttonCancelText="Cancel", char const *buttonOKText="OK", bool passwordMode=false)
 
|-
 
|-
|0
 
 
|
 
|
 +
|Shows a dialog with a label and a text edit box. More...
 
|}
 
|}

2022年3月21日 (月) 21:00時点における版

InputBox

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

#include <inputbox.h>
Enumerator
InputBox (uiApp *app=nullptr)
Creates a new InputBox instance. More...
void begin (char const *modeline=nullptr, int viewPortWidth=-1, int viewPortHeight=-1, int displayColors=16)
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...
InputResult fileSelector (char const *titleText, char const *messageText, char *inOutDirectory, int maxDirectoryLength, char *inOutFilename, int maxFilenameLength, char const *buttonCancelText="Cancel", char const *buttonOKText="OK")
Selects a file and directory starting from the specified path. More...
InputResult folderBrowser (char const *titleText, char const *directory="/", char const *buttonOKText="Close")
Shows a dialog with files and folders and buttons to create new folders, delete and rename folders and files. More...
BitmappedDisplayController * getDisplayController ()
Gets created or assigned display controller. More...
InputResult getLastResult ()
Gets last dialog result. 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")
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")
Shows a dialog with a label and a list box. More...
int selectedSubItem ()
Gets the selected item on a multichoice button. More...
void setAutoOK (int timeout)
Specifies a timeout for the dialog. More...
void setBackgroundColor (RGB888 const &value)
Sets the background color. More...
void setMinButtonsWidth (int value)
Sets minimum buttons size. More...
void setupButton (int index, char const *text, char const *subItems=nullptr, int subItemsHeight=80)
Setups extended button or split-button. 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...