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

提供: robot-jp wiki
ナビゲーションに移動検索に移動
39行目: 39行目:
 
: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...
 
|-
 
|-
|'''[[App:Library:FabGL:Enumerations:InputResult|InputResult]]''' '''message''' (char const *titleText, char const *messageText, char const *buttonCancelText=nullptr, char const *buttonOKText="OK")
+
|'''[[App:Library:FabGL:Enumerations:InputResult|InputResult]]''' '''[http://www.fabglib.org/classfabgl_1_1_input_box_a28a9108d1cfab33a1b1054f0c22782a3.html#a28a9108d1cfab33a1b1054f0c22782a3 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...
 
|-
 
|-
|'''[[App:Library:FabGL:Enumerations:InputResult|InputResult]]''' '''messageFmt''' (char const *titleText, char const *buttonCancelText, char const *buttonOKText, const char *format,...)
+
|'''[[App:Library:FabGL:Enumerations:InputResult|InputResult]]''' '''[http://www.fabglib.org/classfabgl_1_1_input_box_aa16a7bd46cbf4f1a3b9ce6f46d8c49e5.html#aa16a7bd46cbf4f1a3b9ce6f46d8c49e5 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 >
 
|-
 
|-
|'''[[App:Library:FabGL:Enumerations:InputResult|InputResult]]''' '''progressBox''' (char const *titleText, char const *buttonCancelText, bool hasProgressBar, int '''width''', Func execFunc)
+
|'''[[App:Library:FabGL:Enumerations:InputResult|InputResult]]''' '''[http://www.fabglib.org/classfabgl_1_1_input_box_a5aae0f53ec7c8f05fc206aa5b9c6e501.html#a5aae0f53ec7c8f05fc206aa5b9c6e501 progressBox]''' (char const *titleText, char const *buttonCancelText, bool hasProgressBar, int '''[http://www.fabglib.org/fabutils_8h_ae0ffb42440f0305b6d22a1c6106b6e6f.html#ae0ffb42440f0305b6d22a1c6106b6e6f 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...
 
|-
 
|-
|int '''select''' (char const *titleText, char const *messageText, char const *itemsText, char separator=';', char const *buttonCancelText="Cancel", char const *buttonOKText="OK")
+
|int '''[http://www.fabglib.org/classfabgl_1_1_input_box_ab72467a63779dd88176432ff3d5b24b7.html#ab72467a63779dd88176432ff3d5b24b7 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...
 
:Shows a dialog with a label and a list box. More...
 
|-
 
|-
|'''[[App:Library:FabGL:Enumerations:InputResult|InputResult]]''' '''select''' (char const *titleText, char const *messageText, StringList *items, char const *buttonCancelText="Cancel", char const *buttonOKText="OK")
+
|'''[[App:Library:FabGL:Enumerations:InputResult|InputResult]]''' '''[http://www.fabglib.org/classfabgl_1_1_input_box_a8ab9323152ae5b47daea7dcabdee7e6b.html#a8ab9323152ae5b47daea7dcabdee7e6b 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...
 
|-
 
|-
|int '''selectedSubItem''' ()
+
|int '''[http://www.fabglib.org/classfabgl_1_1_input_box_a6c5831f0da2247fac5e74c48626c9a87.html#a6c5831f0da2247fac5e74c48626c9a87 selectedSubItem]''' ()
 
:Gets the selected item on a multichoice button. More...
 
:Gets the selected item on a multichoice button. More...
 
|-
 
|-
|void '''setAutoOK''' (int timeout)
+
|void '''[http://www.fabglib.org/classfabgl_1_1_input_box_ac183cebdfbacb6a523725f0cd620eb9d.html#ac183cebdfbacb6a523725f0cd620eb9d setAutoOK]''' (int timeout)
 
:Specifies a timeout for the dialog. More...
 
:Specifies a timeout for the dialog. More...
 
|-
 
|-
|void '''setBackgroundColor''' ('''RGB888''' const &value)
+
|void '''[http://www.fabglib.org/classfabgl_1_1_input_box_af73b152e9293e3b0fc0835274538ca82.html#af73b152e9293e3b0fc0835274538ca82 setBackgroundColor]''' ('''[http://www.fabglib.org/structfabgl_1_1_r_g_b888.html RGB888]''' const &value)
 
:Sets the background color. More...
 
:Sets the background color. More...
 
|-
 
|-
|void '''setMinButtonsWidth''' (int value)
+
|void '''[http://www.fabglib.org/classfabgl_1_1_input_box_a3c7b7124f7c6cd722d53e7032dce1efa.html#a3c7b7124f7c6cd722d53e7032dce1efa setMinButtonsWidth]''' (int value)
 
:Sets minimum buttons size. More...
 
:Sets minimum buttons size. More...
 
|-
 
|-
|void '''setupButton''' (int index, char const *text, char const *subItems=nullptr, int subItemsHeight=80)
+
|void '''[http://www.fabglib.org/classfabgl_1_1_input_box_a5c26d3b0f55937545f658d66d78c7067.html#a5c26d3b0f55937545f658d66d78c7067 setupButton]''' (int index, char const *text, char const *subItems=nullptr, int subItemsHeight=80)
 
:Setups extended button or split-button. More...
 
:Setups extended button or split-button. More...
 
|-
 
|-
|'''[[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)
+
|'''[[App:Library:FabGL:Enumerations:InputResult|InputResult]]''' '''[http://www.fabglib.org/classfabgl_1_1_input_box_a0e125469676d904e23584f68c8518780.html#a0e125469676d904e23584f68c8518780 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...
 
|}
 
|}
78行目: 78行目:
 
=== Public Attributes ===
 
=== Public Attributes ===
 
{| class="wikitable"
 
{| class="wikitable"
|Delegate< '''Canvas *''' >  '''onPaint'''
+
|Delegate< '''[http://www.fabglib.org/classfabgl_1_1_canvas.html Canvas] *''' >  '''[http://www.fabglib.org/classfabgl_1_1_input_box_af3a004aaef5d509371945a87d4239a30.html#af3a004aaef5d509371945a87d4239a30 onPaint]'''
 
:Paint event delegate. More...
 
:Paint event delegate. More...
 
|}
 
|}
85行目: 85行目:
 
'''InputBox''' is an helper class which allows to create simple UI interfaces, like wizards or simple input boxes.
 
'''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'''.
+
[http://www.fabglib.org/inputbox_8h_source.html#l00322 Definition at line '''322''' of file '''inputbox.h'''].
 
----The documentation for this class was generated from the following files:
 
----The documentation for this class was generated from the following files:
  
 
* [http://www.fabglib.org/inputbox_8h_source.html '''inputbox.h''']
 
* [http://www.fabglib.org/inputbox_8h_source.html '''inputbox.h''']
 
* [http://www.fabglib.org/inputbox_8cpp_source.html '''inputbox.cpp''']
 
* [http://www.fabglib.org/inputbox_8cpp_source.html '''inputbox.cpp''']
 +
 +
 +
----[https://robot-jp.com/wiki/index.php/App:Library:FabGL 戻る]

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

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)
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...


Public Attributes

Delegate< Canvas * > onPaint
Paint event delegate. More...

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:



戻る