「App:Library:FabGL:Class:InputBox」の版間の差分
提供: robot-jp wiki
ナビゲーションに移動検索に移動21行目: | 21行目: | ||
:Cleanup resources and eventually disable VGA output. More... | :Cleanup resources and eventually disable VGA output. More... | ||
|- | |- | ||
− | |'''InputResult''' '''[http://www.fabglib.org/classfabgl_1_1_input_box_a6241937ae9870d37f4947ef9b4cde1f4.html#a6241937ae9870d37f4947ef9b4cde1f4 fileSelector]''' (char const *titleText, char const *messageText, char *inOutDirectory, int maxDirectoryLength, char *inOutFilename, int :maxFilenameLength, char const *buttonCancelText="Cancel", char const *buttonOKText="OK") | + | |'''[[App:Library:FabGL:Enumerations:InputResult|InputResult]]''' '''[http://www.fabglib.org/classfabgl_1_1_input_box_a6241937ae9870d37f4947ef9b4cde1f4.html#a6241937ae9870d37f4947ef9b4cde1f4 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... | :Selects a file and directory starting from the specified path. More... | ||
|- | |- | ||
− | |'''InputResult''' '''folderBrowser''' (char const *titleText, char const *directory="/", char const *buttonOKText="Close") | + | |'''[[App:Library:FabGL:Enumerations:InputResult|InputResult]]''' '''[http://www.fabglib.org/classfabgl_1_1_input_box_aef83632569a1995f12f701922106d827.html#aef83632569a1995f12f701922106d827 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... | :Shows a dialog with files and folders and buttons to create new folders, delete and rename folders and files. More... | ||
|- | |- | ||
− | |'''BitmappedDisplayController *''' '''getDisplayController''' () | + | |'''[http://www.fabglib.org/classfabgl_1_1_bitmapped_display_controller.html BitmappedDisplayController] *''' '''[http://www.fabglib.org/classfabgl_1_1_input_box_a68e646a3e168d23dc088dd1922e0801f.html#a68e646a3e168d23dc088dd1922e0801f getDisplayController]''' () |
:Gets created or assigned display controller. More... | :Gets created or assigned display controller. More... | ||
|- | |- | ||
− | |'''InputResult''' '''getLastResult''' () | + | |'''[[App:Library:FabGL:Enumerations:InputResult|InputResult]]''' '''[http://www.fabglib.org/classfabgl_1_1_input_box_a03a8ca3293dfb3946f6dd5a0d69c3d26.html#a03a8ca3293dfb3946f6dd5a0d69c3d26 getLastResult]''' () |
:Gets last dialog result. More... | :Gets last dialog result. More... | ||
|- | |- | ||
− | |int '''menu''' (char const *titleText, char const *messageText, char const *itemsText, char separator=';') | + | |int '''[http://www.fabglib.org/classfabgl_1_1_input_box_a909d54457e17a691b324f65a7637caa0.html#a909d54457e17a691b324f65a7637caa0 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... | :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) | + | |int '''[http://www.fabglib.org/classfabgl_1_1_input_box_a909d54457e17a691b324f65a7637caa0.html#a909d54457e17a691b324f65a7637caa0 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... | :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") | + | |'''[[App:Library:FabGL:Enumerations:InputResult|InputResult]]''' '''message''' (char const *titleText, char const *messageText, char const *buttonCancelText=nullptr, char const *buttonOKText="OK") |
:Shows a dialog with just a label. More... | :Shows a dialog with just a label. More... | ||
|- | |- | ||
− | |'''InputResult''' '''messageFmt''' (char const *titleText, char const *buttonCancelText, char const *buttonOKText, const char *format,...) | + | |'''[[App:Library:FabGL:Enumerations:InputResult|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... | :Shows a dialog with a just a label. Allows printf like formatted text. More... | ||
|- | |- | ||
|template<typename Func > | |template<typename Func > | ||
|- | |- | ||
− | |'''InputResult''' '''progressBox''' (char const *titleText, char const *buttonCancelText, bool hasProgressBar, int '''width''', Func execFunc) | + | |'''[[App:Library:FabGL:Enumerations:InputResult|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... | :Shows a dialog with a label and a progress bar, updated dynamically by a user function. More... | ||
|- | |- | ||
53行目: | 53行目: | ||
:Shows a dialog with a label and a list box. More... | :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") | + | |'''[[App:Library:FabGL:Enumerations:InputResult|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... | :Shows a dialog with a label and a list box. More... | ||
|- | |- | ||
71行目: | 71行目: | ||
:Setups extended button or split-button. More... | :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) | + | |'''[[App:Library:FabGL:Enumerations:InputResult|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... | :Shows a dialog with a label and a text edit box. More... | ||
|} | |} |
2022年3月21日 (月) 21:40時点における版
InputBox
InputBox is an helper class which allows to create simple UI interfaces, like wizards or simple input boxes.
#include <inputbox.h> |
パブリックメンバー関数
InputBox (uiApp *app=nullptr)
|
void begin (char const *modeline=nullptr, int viewPortWidth=-1, int viewPortHeight=-1, int displayColors=16)
|
void begin (BitmappedDisplayController *displayController)
|
void end ()
|
InputResult fileSelector (char const *titleText, char const *messageText, char *inOutDirectory, int maxDirectoryLength, char *inOutFilename, int :maxFilenameLength, char const *buttonCancelText="Cancel", char const *buttonOKText="OK")
|
InputResult folderBrowser (char const *titleText, char const *directory="/", char const *buttonOKText="Close")
|
BitmappedDisplayController * getDisplayController ()
|
InputResult getLastResult ()
|
int menu (char const *titleText, char const *messageText, char const *itemsText, char separator=';')
|
int menu (char const *titleText, char const *messageText, StringList *items)
|
InputResult message (char const *titleText, char const *messageText, char const *buttonCancelText=nullptr, char const *buttonOKText="OK")
|
InputResult messageFmt (char const *titleText, char const *buttonCancelText, char const *buttonOKText, const char *format,...)
|
template<typename Func > |
InputResult progressBox (char const *titleText, char const *buttonCancelText, bool hasProgressBar, int width, Func execFunc)
|
int select (char const *titleText, char const *messageText, char const *itemsText, char separator=';', char const *buttonCancelText="Cancel", char const *buttonOKText="OK")
|
InputResult select (char const *titleText, char const *messageText, StringList *items, char const *buttonCancelText="Cancel", char const *buttonOKText="OK")
|
int selectedSubItem ()
|
void setAutoOK (int timeout)
|
void setBackgroundColor (RGB888 const &value)
|
void setMinButtonsWidth (int value)
|
void setupButton (int index, char const *text, char const *subItems=nullptr, int subItemsHeight=80)
|
InputResult textInput (char const *titleText, char const *labelText, char *inOutString, int maxLength, char const *buttonCancelText="Cancel", char const *buttonOKText="OK", bool passwordMode=false)
|
Public Attributes
Delegate< Canvas * > onPaint
|
Detailed Description
InputBox is an helper class which allows to create simple UI interfaces, like wizards or simple input boxes.
Definition at line 322 of file inputbox.h.
The documentation for this class was generated from the following files: