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

提供: robot-jp wiki
ナビゲーションに移動検索に移動
9行目: 9行目:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
|'''[http://www.fabglib.org/classfabgl_1_1_input_box_aeed16a1f110da832346d6177acd00d07.html#aeed16a1f110da832346d6177acd00d07 InputBox]''' ('''[http://www.fabglib.org/classfabgl_1_1ui_app.html uiApp]''' *app=nullptr)
+
|'''[http://www.fabglib.org/classfabgl_1_1_input_box_aaf81d3fdaf258088d7692fa70cece087.html#aaf81d3fdaf258088d7692fa70cece087 InputBox]''' ('''[http://www.fabglib.org/classfabgl_1_1ui_app.html uiApp]''' *app=nullptr)
:新しい '''InputBox''' インスタンスを作成します。 [[App:Library:FabGL:Class:InputBox:InputBox|More...]]
+
:新しい '''InputBox''' インスタンスを作成します。 '''[http://www.fabglib.org/classfabgl_1_1_input_box_aeed16a1f110da832346d6177acd00d07.html#aeed16a1f110da832346d6177acd00d07 More...]'''
 
|-
 
|-
 
|void '''[http://www.fabglib.org/classfabgl_1_1_input_box_abaff5cb73e3c60262d8f96d4bea27fb4.html#abaff5cb73e3c60262d8f96d4bea27fb4 begin]''' ('''[http://www.fabglib.org/classfabgl_1_1_bitmapped_display_controller.html BitmappedDisplayController]''' *displayController)
 
|void '''[http://www.fabglib.org/classfabgl_1_1_input_box_abaff5cb73e3c60262d8f96d4bea27fb4.html#abaff5cb73e3c60262d8f96d4bea27fb4 begin]''' ('''[http://www.fabglib.org/classfabgl_1_1_bitmapped_display_controller.html BitmappedDisplayController]''' *displayController)
:すでに初期化されているディスプレイコントローラから '''InputBox''' を初期化します。 More...
+
:すでに初期化されているディスプレイコントローラから '''InputBox''' を初期化します。 [http://www.fabglib.org/classfabgl_1_1_input_box_a09d6c04dbe3aa0bc7220b4ebd8323746.html#a09d6c04dbe3aa0bc7220b4ebd8323746 '''More...''']
 
|-
 
|-
 
|void '''[http://www.fabglib.org/classfabgl_1_1_input_box_abaff5cb73e3c60262d8f96d4bea27fb4.html#abaff5cb73e3c60262d8f96d4bea27fb4 begin]''' (char const *modeline=nullptr, int viewPortWidth=-1, int viewPortHeight=-1, int displayColors=16)
 
|void '''[http://www.fabglib.org/classfabgl_1_1_input_box_abaff5cb73e3c60262d8f96d4bea27fb4.html#abaff5cb73e3c60262d8f96d4bea27fb4 begin]''' (char const *modeline=nullptr, int viewPortWidth=-1, int viewPortHeight=-1, int displayColors=16)
:Initializes '''InputBox''' from VGA modeline, using a '''[http://www.fabglib.org/classfabgl_1_1_v_g_a16_controller.html VGA16Controller]'''. [http://www.fabglib.org/classfabgl_1_1_input_box_aeed16a1f110da832346d6177acd00d07.html#aeed16a1f110da832346d6177acd00d07 More...]
+
:'''[http://www.fabglib.org/classfabgl_1_1_v_g_a16_controller.html VGA16Controller]''' を使用して、VGAモードラインから '''InputBox''' を初期化します。 [http://www.fabglib.org/classfabgl_1_1_input_box_abaff5cb73e3c60262d8f96d4bea27fb4.html#abaff5cb73e3c60262d8f96d4bea27fb4 '''More...''']
 
|-
 
|-
 
|void '''[http://www.fabglib.org/classfabgl_1_1_input_box_aaf81d3fdaf258088d7692fa70cece087.html#aaf81d3fdaf258088d7692fa70cece087 end]''' ()
 
|void '''[http://www.fabglib.org/classfabgl_1_1_input_box_aaf81d3fdaf258088d7692fa70cece087.html#aaf81d3fdaf258088d7692fa70cece087 end]''' ()
:Cleanup resources and eventually disable VGA output. More...
+
:リソースをクリーンアップし、最終的にVGA出力を無効にします。[http://www.fabglib.org/classfabgl_1_1_input_box_aaf81d3fdaf258088d7692fa70cece087.html#aaf81d3fdaf258088d7692fa70cece087 '''More...''']
 
|-
 
|-
 
|'''[[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")
 
|'''[[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...
+
:指定したパスからファイルとディレクトリを選択します。 '''[http://www.fabglib.org/classfabgl_1_1_input_box_aef83632569a1995f12f701922106d827.html#aef83632569a1995f12f701922106d827 More...]'''
 
|-
 
|-
 
|'''[[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")
 
|'''[[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...
+
:新しいフォルダを作成したり、フォルダとファイルの名前を削除お​​よび変更したりするためのファイルとフォルダおよびボタンを含むダイアログを表示します。'''[http://www.fabglib.org/classfabgl_1_1_input_box_aef83632569a1995f12f701922106d827.html#aef83632569a1995f12f701922106d827 More...]'''
 
|-
 
|-
 
|'''[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]''' ()
 
|'''[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...
+
:作成または割り当てられたディスプレイコントローラを取得します。'''[http://www.fabglib.org/classfabgl_1_1_input_box_a0788e9d707a2308fc26567a56802d523.html#a0788e9d707a2308fc26567a56802d523 More...]'''
 
|-
 
|-
 
|'''[[App:Library:FabGL:Enumerations:InputResult|InputResult]]''' '''[http://www.fabglib.org/classfabgl_1_1_input_box_a03a8ca3293dfb3946f6dd5a0d69c3d26.html#a03a8ca3293dfb3946f6dd5a0d69c3d26 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...
+
:最後のダイアログ結果を取得します。 '''[http://www.fabglib.org/classfabgl_1_1_input_box_a03a8ca3293dfb3946f6dd5a0d69c3d26.html#a03a8ca3293dfb3946f6dd5a0d69c3d26 More...]'''
 
|-
 
|-
 
|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=';')
 
|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...
+
:ラベルとリストボックスを含むダイアログを表示します。メニューと同じように、項目を選択するとダイアログが終了します。 '''[http://www.fabglib.org/classfabgl_1_1_input_box_a909d54457e17a691b324f65a7637caa0.html#a909d54457e17a691b324f65a7637caa0 More...]'''
 
|-
 
|-
 
|int '''[http://www.fabglib.org/classfabgl_1_1_input_box_a909d54457e17a691b324f65a7637caa0.html#a909d54457e17a691b324f65a7637caa0 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...
+
:ラベルとリストボックスを含むダイアログを表示します。メニューと同じように、項目を選択するとダイアログが終了します。 '''[http://www.fabglib.org/classfabgl_1_1_input_box_abbfa60003c83722f3fa22fe0d870ee23.html#abbfa60003c83722f3fa22fe0d870ee23 More...]'''
 
|-
 
|-
 
|'''[[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")
 
|'''[[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...
+
:ラベルだけのダイアログを表示します。 '''[http://www.fabglib.org/classfabgl_1_1_input_box_a28a9108d1cfab33a1b1054f0c22782a3.html#a28a9108d1cfab33a1b1054f0c22782a3 More...]'''
 
|-
 
|-
 
|'''[[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,...)
 
|'''[[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...
+
:ラベルだけのダイアログを表示します。フォーマットされたテキストのようなprintfを許可します。 '''[http://www.fabglib.org/classfabgl_1_1_input_box_aa16a7bd46cbf4f1a3b9ce6f46d8c49e5.html#aa16a7bd46cbf4f1a3b9ce6f46d8c49e5 More...]'''
 
|-
 
|-
 
|template<typename Func >
 
|template<typename Func >
|-
+
'''[[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)
|'''[[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)
+
:ユーザー関数によって動的に更新される、ラベルと進行状況バーを含むダイアログを表示します。 '''[http://www.fabglib.org/classfabgl_1_1_input_box_a5aae0f53ec7c8f05fc206aa5b9c6e501.html#a5aae0f53ec7c8f05fc206aa5b9c6e501 More...]'''
:Shows a dialog with a label and a progress bar, updated dynamically by a user function. More...
 
 
|-
 
|-
 
|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")
 
|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")

2022年6月9日 (木) 18:41時点における版

InputBox Class Reference

InputBox は、ウィザードや単純な入力ボックスなどの単純なUIインターフェイスを作成できるヘルパークラスです。more...

#include <inputbox.h>

パブリックメンバー関数

InputBox (uiApp *app=nullptr)
新しい InputBox インスタンスを作成します。 More...
void begin (BitmappedDisplayController *displayController)
すでに初期化されているディスプレイコントローラから InputBox を初期化します。 More...
void begin (char const *modeline=nullptr, int viewPortWidth=-1, int viewPortHeight=-1, int displayColors=16)
VGA16Controller を使用して、VGAモードラインから InputBox を初期化します。 More...
void end ()
リソースをクリーンアップし、最終的にVGA出力を無効にします。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")
指定したパスからファイルとディレクトリを選択します。 More...
InputResult folderBrowser (char const *titleText, char const *directory="/", char const *buttonOKText="Close")
新しいフォルダを作成したり、フォルダとファイルの名前を削除お​​よび変更したりするためのファイルとフォルダおよびボタンを含むダイアログを表示します。More...
BitmappedDisplayController * getDisplayController ()
作成または割り当てられたディスプレイコントローラを取得します。More...
InputResult getLastResult ()
最後のダイアログ結果を取得します。 More...
int menu (char const *titleText, char const *messageText, char const *itemsText, char separator=';')
ラベルとリストボックスを含むダイアログを表示します。メニューと同じように、項目を選択するとダイアログが終了します。 More...
int menu (char const *titleText, char const *messageText, StringList *items)
ラベルとリストボックスを含むダイアログを表示します。メニューと同じように、項目を選択するとダイアログが終了します。 More...
InputResult message (char const *titleText, char const *messageText, char const *buttonCancelText=nullptr, char const *buttonOKText="OK")
ラベルだけのダイアログを表示します。 More...
InputResult messageFmt (char const *titleText, char const *buttonCancelText, char const *buttonOKText, const char *format,...)
ラベルだけのダイアログを表示します。フォーマットされたテキストのようなprintfを許可します。 More...
template<typename Func >

InputResult progressBox (char const *titleText, char const *buttonCancelText, bool hasProgressBar, int width, Func execFunc)

ユーザー関数によって動的に更新される、ラベルと進行状況バーを含むダイアログを表示します。 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:



戻る