CheckBoxWindow ライブラリ
- 目次 -
概要 - Abstract
このライブラリ gui.CheckBoxWindow は、GUI部品として、チェックボックスが並ぶウィンドウ ―― チェックボックスウィンドウ ―― を提供します。
VCSSLの標準ライブラリ「 GUI 」では、GUI部品をint型のIDで扱いますが、このモジュールで提供されるGUI部品は、CheckBoxWindow 構造体として扱います。
CheckBoxWindow 構造体は、内部にリソースのID等を保持していますが、
生成・破棄のための関数が提供されるため、その中身を特に意識する必要はありません( むしろメンバへの直接的なアクセスは推奨されません )。
具体的には、 newCheckBoxWindow 関数で生成し、 deleteComponent 関数で破棄します。
またこのモジュールでは、CheckBoxWindow 構造体を標準ライブラリ「 GUI 」と同様の感覚でそのまま扱えるように、標準GUIライブラリ関数のオーバーロードも提供されます。
例えば、 mountComponent 関数や、setComponentSize 関数、 setComponentLocation 関数などが提供されます。
目次 - Index
- struct CheckBoxWindow
- チェックボックスウィンドウの構造体です。
- CheckBoxWindow newCheckBoxWindow(int x, int y, int width, int height, string title, string labelText[ ], bool[ ] defaultValue)
- チェックボックスウィンドウを生成します。
- CheckBoxWindow newCheckBoxWindow(string labelText[ ], bool[ ] defaultValue)
- 自動でウィンドウサイズを決定し、チェックボックスウィンドウを生成します。
- void deleteComponent(CheckBoxWindow &windowInstance)
- チェックボックスウィンドウを破棄します。
- void setButton(CheckBoxWindow &windowInstance, string label)
- ウィンドウ下部に、決定ボタンを出現させます。
- int getButton(CheckBoxWindow &windowInstance)
- 決定ボタンのコンポーネントIDを取得します。
- int getWindow(CheckBoxWindow &windowInstance)
- ウィンドウのGUIコンポーネントIDを取得します。
- int getCheckBox(CheckBoxWindow &windowInstance, string labelText)
- 指定されたラベルに対応するチェックボックスを取得します。
- int getCheckBox(CheckBoxWindow &windowInstance, int index)
- 指定されたインデックスのチェックボックスを取得します。
- int[ ] getComponentSize(CheckBoxWindow &windowInstance)
- ウィンドウのサイズを返します。
- void setComponentSize(CheckBoxWindow &windowInstance, int width, int height)
- ウィンドウのサイズを設定します。
- void setComponentSize(CheckBoxWindow &windowInstance)
- ウィンドウの現在のサイズに合わせて、内部コンポーネントのサイズを自動設定します。ウィンドウのサイズを外部から変更した際に使用します。
- int[ ] getComponentLocation(CheckBoxWindow &windowInstance)
- ウィンドウの位置を返します。
- void setComponentLocation(CheckBoxWindow &windowInstance, int x, int y)
- ウィンドウの位置を設定します。
- void paintComponent(CheckBoxWindow &windowInstance)
- ウィンドウを再描画します。
- void hideComponent(CheckBoxWindow &windowInstance)
- ウィンドウを不可視化します。
- void showComponent(CheckBoxWindow &windowInstance)
- ウィンドウを可視化します。
構造体 - Structs
宣言 - Declaration |
struct CheckBoxWindow |
詳細 - Description |
チェックボックスウィンドウの構造体です。 |
変数 - Variables
関数 - Functions
宣言 - Declaration |
CheckBoxWindow newCheckBoxWindow(int x, int y, int width, int height, string title, string labelText[ ], bool[ ] defaultValue) |
詳細 - Description |
チェックボックスウィンドウを生成します。 |
引数 - Arguments |
x : ウィンドウ左上頂点のX座標 y : ウィンドウ左上頂点のY座標 width : ウィンドウの幅 height : ウィンドウの高さ title : ウィンドウのタイトル labelText : 全チェックボックスのラベル文字列を格納する配列 defaultText : 全チェックボックスのデフォルト値を格納する配列 |
戻り値 - Return |
生成したチェックボックスウィンドウ |
宣言 - Declaration |
CheckBoxWindow newCheckBoxWindow(string labelText[ ], bool[ ] defaultValue) |
詳細 - Description |
自動でウィンドウサイズを決定し、チェックボックスウィンドウを生成します。 |
引数 - Arguments |
labelText : 全チェックボックスのラベル文字列を格納する配列 defaultText : 全チェックボックスのデフォルト値を格納する配列 |
戻り値 - Return |
生成したチェックボックスウィンドウ |
宣言 - Declaration |
void deleteComponent(CheckBoxWindow &windowInstance) |
詳細 - Description |
チェックボックスウィンドウを破棄します。 |
引数 - Arguments |
windowInstance : 破棄するウィンドウ |
宣言 - Declaration |
void setButton(CheckBoxWindow &windowInstance, string label) |
詳細 - Description |
ウィンドウ下部に、決定ボタンを出現させます。 |
引数 - Arguments |
windowInstance : 対象のウィンドウ 決定ボタンのラベル文字列 : |
宣言 - Declaration |
int getButton(CheckBoxWindow &windowInstance) |
詳細 - Description |
決定ボタンのコンポーネントIDを取得します。 |
引数 - Arguments |
windowInstance : 対象のウィンドウ |
戻り値 - Return |
決定ボタンのコンポーネントID |
宣言 - Declaration |
int getWindow(CheckBoxWindow &windowInstance) |
詳細 - Description |
ウィンドウのGUIコンポーネントIDを取得します。 |
引数 - Arguments |
windowInstance : 対象のウィンドウ |
戻り値 - Return |
ウィンドウのGUIコンポーネントID |
宣言 - Declaration |
int getCheckBox(CheckBoxWindow &windowInstance, string labelText) |
詳細 - Description |
指定されたラベルに対応するチェックボックスを取得します。 |
引数 - Arguments |
windowInstance : 対象のウィンドウ labelText : 取得対象のチェックボックスに対応するラベル文字列 |
戻り値 - Return |
チェックボックスのGUIコンポーネントID |
宣言 - Declaration |
int getCheckBox(CheckBoxWindow &windowInstance, int index) |
詳細 - Description |
指定されたインデックスのチェックボックスを取得します。 |
引数 - Arguments |
windowInstance : 対象のウィンドウ index : チェックボックスのインデックス |
戻り値 - Return |
チェックボックスのGUIコンポーネントID |
宣言 - Declaration |
int[ ] getComponentSize(CheckBoxWindow &windowInstance) |
詳細 - Description |
ウィンドウのサイズを返します。 |
引数 - Arguments |
windowInstance : 対象のウィンドウ |
戻り値 - Return |
ウィンドウのサイズを格納する配列 |
宣言 - Declaration |
void setComponentSize(CheckBoxWindow &windowInstance, int width, int height) |
詳細 - Description |
ウィンドウのサイズを設定します。 |
引数 - Arguments |
windowInstance : 対象のウィンドウ width : 幅 width : 高さ |
戻り値 - Return |
ウィンドウのサイズを格納する配列 |
宣言 - Declaration |
void setComponentSize(CheckBoxWindow &windowInstance) |
詳細 - Description |
ウィンドウの現在のサイズに合わせて、内部コンポーネントのサイズを自動設定します。ウィンドウのサイズを外部から変更した際に使用します。 |
引数 - Arguments |
windowInstance : 対象のウィンドウ |
宣言 - Declaration |
int[ ] getComponentLocation(CheckBoxWindow &windowInstance) |
詳細 - Description |
ウィンドウの位置を返します。 |
引数 - Arguments |
windowInstance : 対象のウィンドウ |
戻り値 - Return |
ウィンドウの位置を格納する配列 |
宣言 - Declaration |
void setComponentLocation(CheckBoxWindow &windowInstance, int x, int y) |
詳細 - Description |
ウィンドウの位置を設定します。 |
引数 - Arguments |
windowInstance : 対象のウィンドウ x : ウィンドウのX座標 y : ウィンドウのY座標 |
宣言 - Declaration |
void paintComponent(CheckBoxWindow &windowInstance) |
詳細 - Description |
ウィンドウを再描画します。 |
引数 - Arguments |
windowInstance : 対象のウィンドウ |
宣言 - Declaration |
void hideComponent(CheckBoxWindow &windowInstance) |
詳細 - Description |
ウィンドウを不可視化します。 |
引数 - Arguments |
windowInstance : 対象のウィンドウ |
宣言 - Declaration |
void showComponent(CheckBoxWindow &windowInstance) |
詳細 - Description |
ウィンドウを可視化します。 |
引数 - Arguments |
windowInstance : 対象のウィンドウ |