HorizontalSliderWindow


概要 - Abstract

このライブラリ gui.HorizontalSliderWindow は、GUI部品として、水平スライダーが並ぶウィンドウ ―― スライダーウィンドウ ―― を提供します。

VCSSLの標準ライブラリ「 GUI 」では、GUI部品をint型のIDで扱いますが、このモジュールで提供されるGUI部品は、HorizontalSliderWindow 構造体として扱います。

HorizontalSliderWindow 構造体は、内部にリソースのID等を保持していますが、
生成・破棄のための関数が提供されるため、その中身を特に意識する必要はありません( むしろメンバへの直接的なアクセスは推奨されません )。
具体的には、 newHorizontalSliderWindow 関数で生成し、 deleteComponent 関数で破棄します。

またこのモジュールでは、HorizontalSliderWindow 構造体を標準ライブラリ「 GUI 」と同様の感覚でそのまま扱えるように、標準GUIライブラリ関数のオーバーロードも提供されます。
例えば、 mountComponent 関数や、setComponentSize 関数、 setComponentLocation 関数などが提供されます。


目次 - Index

struct HorizontalSliderWindow
スライダーウィンドウの構造体です。
HorizontalSliderWindow newHorizontalSliderWindow(int x, int y, int width, int height, string title, string labelText[ ], float defaultValue[ ], float minValue[ ], float maxValue[ ])
スライダーウィンドウを生成します。
HorizontalSliderWindow newHorizontalSliderWindow(string labelText[ ], float defaultValue[ ], float minValue[ ], float maxValue[ ])
自動でウィンドウサイズを決定し、スライダーウィンドウを生成します。
HorizontalSliderWindow newHorizontalSliderWindow(int x, int y, int width, int height, string title, string labelText[ ], int defaultValue[ ], int minValue[ ], int maxValue[ ])
スライダーウィンドウを生成します。
HorizontalSliderWindow newHorizontalSliderWindow(string labelText[ ], int defaultValue[ ], int minValue[ ], int maxValue[ ])
自動でウィンドウサイズを決定し、スライダーウィンドウを生成します。
void deleteComponent(HorizontalSliderWindow &windowInstance)
スライダーウィンドウを破棄します。
void setTextLabelWidth(HorizontalSliderWindow &windowInstance, int labelWidth)
ラベル部分の幅を設定します。
void setButton(HorizontalSliderWindow &windowInstance, string label)
ウィンドウ下部に、決定ボタンを出現させます。
int getButton(HorizontalSliderWindow &windowInstance)
決定ボタンのGUIコンポーネントIDを取得します。
int getWindow(HorizontalSliderWindow &windowInstance)
ウィンドウのGUIコンポーネントIDを取得します。
int getHorizontalSlider(HorizontalSliderWindow &windowInstance, string labelText)
指定されたラベルに対応するスライダーを取得します。
int getHorizontalSlider(HorizontalSliderWindow &windowInstance, int index)
指定されたインデックスのスライダーを取得します。
int[ ] getComponentSize(HorizontalSliderWindow &windowInstance)
ウィンドウのサイズを返します。
void setComponentSize(HorizontalSliderWindow &windowInstance, int width, int height)
ウィンドウのサイズを設定します。
void setComponentSize(HorizontalSliderWindow &windowInstance)
ウィンドウの現在のサイズに合わせて、内部コンポーネントのサイズを自動設定します。ウィンドウのサイズを外部から変更した際に使用します。
int[ ] getComponentLocation(HorizontalSliderWindow &windowInstance)
ウィンドウの位置を返します。
void setComponentLocation(HorizontalSliderWindow &windowInstance, int x, int y)
ウィンドウの位置を設定します。
void setComponentLocation(HorizontalSliderWindow &windowInstance, int x, int y)
ウィンドウの位置を設定します。
void paintComponent(HorizontalSliderWindow &windowInstance)
ウィンドウを再描画します。
void hideComponent(HorizontalSliderWindow &windowInstance)
ウィンドウを不可視化します。
void showComponent(HorizontalSliderWindow &windowInstance)
ウィンドウを可視化します。

構造体 - Structs

文法的定義
- Signature
struct HorizontalSliderWindow
変数名
- Name
HorizontalSliderWindow
役割
- Role
スライダーウィンドウの構造体です。

変数 - Variables

- なし - None -


関数 - Functions

文法的定義
- Signature
HorizontalSliderWindow newHorizontalSliderWindow(int x, int y, int width, int height, string title, string labelText[ ], float defaultValue[ ], float minValue[ ], float maxValue[ ])
関数名
- Name
newHorizontalSliderWindow
役割
- Role
スライダーウィンドウを生成します。
引数
- Arguments
(int型) x : ウィンドウ左上頂点のX座標
(int型) y : ウィンドウ左上頂点のY座標
(int型) width : ウィンドウの幅
(int型) height : ウィンドウの高さ
(string型) title : ウィンドウのタイトル
(string[]型) labelText : 全スライダーのラベル文字列を格納する配列
(float[]型) defaultValue : 全スライダーのデフォルト値を格納する配列
(float[]型) minValue : 全スライダーの最小値を格納する配列
(float[]型) maxValue : 全スライダーの最大値を格納する配列
戻り値
- Return
(HorizontalSliderWindow型) 生成したテキストフィールドウィンドウ
文法的定義
- Signature
HorizontalSliderWindow newHorizontalSliderWindow(string labelText[ ], float defaultValue[ ], float minValue[ ], float maxValue[ ])
関数名
- Name
newHorizontalSliderWindow
役割
- Role
自動でウィンドウサイズを決定し、スライダーウィンドウを生成します。
引数
- Arguments
(string[]型) labelText : 全スライダーのラベル文字列を格納する配列
(float[]型) defaultValue : 全スライダーのデフォルト値を格納する配列
(float[]型) minValue : 全スライダーの最小値を格納する配列
(float[]型) maxValue : 全スライダーの最大値を格納する配列
戻り値
- Return
(HorizontalSliderWindow型) 生成したテキストフィールドウィンドウ
文法的定義
- Signature
HorizontalSliderWindow newHorizontalSliderWindow(int x, int y, int width, int height, string title, string labelText[ ], int defaultValue[ ], int minValue[ ], int maxValue[ ])
関数名
- Name
newHorizontalSliderWindow
役割
- Role
スライダーウィンドウを生成します。
引数
- Arguments
(int型) x : ウィンドウ左上頂点のX座標
(int型) y : ウィンドウ左上頂点のY座標
(int型) width : ウィンドウの幅
(int型) height : ウィンドウの高さ
(string型) title : ウィンドウのタイトル
(string[]型) labelText : 全スライダーのラベル文字列を格納する配列
(int[]型) defaultValue : 全スライダーのデフォルト値を格納する配列
(int[]型) minValue : 全スライダーの最小値を格納する配列
(int[]型) maxValue : 全スライダーの最大値を格納する配列
戻り値
- Return
(HorizontalSliderWindow型) 生成したテキストフィールドウィンドウ
文法的定義
- Signature
HorizontalSliderWindow newHorizontalSliderWindow(string labelText[ ], int defaultValue[ ], int minValue[ ], int maxValue[ ])
関数名
- Name
newHorizontalSliderWindow
役割
- Role
自動でウィンドウサイズを決定し、スライダーウィンドウを生成します。
引数
- Arguments
(string[]型) labelText : 全スライダーのラベル文字列を格納する配列
(int[]型) defaultValue : 全スライダーのデフォルト値を格納する配列
(int[]型) minValue : 全スライダーの最小値を格納する配列
(int[]型) maxValue : 全スライダーの最大値を格納する配列
戻り値
- Return
(HorizontalSliderWindow型) 生成したテキストフィールドウィンドウ
文法的定義
- Signature
void deleteComponent(HorizontalSliderWindow &windowInstance)
関数名
- Name
deleteComponent
役割
- Role
スライダーウィンドウを破棄します。
引数
- Arguments
(HorizontalSliderWindow型) windowInstance : 破棄するウィンドウ
戻り値
- Return
(void型)
文法的定義
- Signature
void setTextLabelWidth(HorizontalSliderWindow &windowInstance, int labelWidth)
関数名
- Name
setTextLabelWidth
役割
- Role
ラベル部分の幅を設定します。
引数
- Arguments
(HorizontalSliderWindow型) windowInstance : 取得対象のスライダーウィンドウ
(int型) labelWidth : ラベル幅
戻り値
- Return
(void型)
文法的定義
- Signature
void setButton(HorizontalSliderWindow &windowInstance, string label)
関数名
- Name
setButton
役割
- Role
ウィンドウ下部に、決定ボタンを出現させます。
引数
- Arguments
(HorizontalSliderWindow型) windowInstance : 対象のウィンドウ
決定ボタンのラベル文字列 :
戻り値
- Return
(void型)
文法的定義
- Signature
int getButton(HorizontalSliderWindow &windowInstance)
関数名
- Name
getButton
役割
- Role
決定ボタンのGUIコンポーネントIDを取得します。
引数
- Arguments
(HorizontalSliderWindow型) windowInstance : 対象のウィンドウ
戻り値
- Return
(int型) 決定ボタンのGUIコンポーネントID
文法的定義
- Signature
int getWindow(HorizontalSliderWindow &windowInstance)
関数名
- Name
getWindow
役割
- Role
ウィンドウのGUIコンポーネントIDを取得します。
引数
- Arguments
(HorizontalSliderWindow型) windowInstance : 対象のウィンドウ
戻り値
- Return
(int型) ウィンドウのGUIコンポーネントID
文法的定義
- Signature
int getHorizontalSlider(HorizontalSliderWindow &windowInstance, string labelText)
関数名
- Name
getHorizontalSlider
役割
- Role
指定されたラベルに対応するスライダーを取得します。
引数
- Arguments
(HorizontalSliderWindow型) windowInstance : 対象のウィンドウ
(string型) labelText : 取得対象のスライダーに対応するラベル文字列
戻り値
- Return
(int型) スライダーのGUIコンポーネントID
文法的定義
- Signature
int getHorizontalSlider(HorizontalSliderWindow &windowInstance, int index)
関数名
- Name
getHorizontalSlider
役割
- Role
指定されたインデックスのスライダーを取得します。
引数
- Arguments
(HorizontalSliderWindow型) windowInstance : 対象のウィンドウ
(int型) index : スライダーのインデックス
戻り値
- Return
(int型) スライダーのGUIコンポーネントID
文法的定義
- Signature
int[ ] getComponentSize(HorizontalSliderWindow &windowInstance)
関数名
- Name
getComponentSize
役割
- Role
ウィンドウのサイズを返します。
引数
- Arguments
(HorizontalSliderWindow型) windowInstance : 対象のウィンドウ
戻り値
- Return
(int[]型) ウィンドウのサイズを格納する配列
文法的定義
- Signature
void setComponentSize(HorizontalSliderWindow &windowInstance, int width, int height)
関数名
- Name
setComponentSize
役割
- Role
ウィンドウのサイズを設定します。
引数
- Arguments
(HorizontalSliderWindow型) windowInstance : 対象のウィンドウ
(int型) width : 幅
(int型) width : 高さ
戻り値
- Return
(void型) ウィンドウのサイズを格納する配列
文法的定義
- Signature
void setComponentSize(HorizontalSliderWindow &windowInstance)
関数名
- Name
setComponentSize
役割
- Role
ウィンドウの現在のサイズに合わせて、内部コンポーネントのサイズを自動設定します。ウィンドウのサイズを外部から変更した際に使用します。
引数
- Arguments
(HorizontalSliderWindow型) windowInstance : 対象のウィンドウ
戻り値
- Return
(void型)
文法的定義
- Signature
int[ ] getComponentLocation(HorizontalSliderWindow &windowInstance)
関数名
- Name
getComponentLocation
役割
- Role
ウィンドウの位置を返します。
引数
- Arguments
(HorizontalSliderWindow型) windowInstance : 対象のウィンドウ
戻り値
- Return
(int[]型) ウィンドウの位置を格納する配列
文法的定義
- Signature
void setComponentLocation(HorizontalSliderWindow &windowInstance, int x, int y)
関数名
- Name
setComponentLocation
役割
- Role
ウィンドウの位置を設定します。
引数
- Arguments
(HorizontalSliderWindow型) windowInstance : 設定対象のウィンドウ
(int型) x : ウィンドウ左上頂点のX座標
(int型) y : ウィンドウ左上頂点のY座標
戻り値
- Return
(void型)
文法的定義
- Signature
void setComponentLocation(HorizontalSliderWindow &windowInstance, int x, int y)
関数名
- Name
setComponentLocation
役割
- Role
ウィンドウの位置を設定します。
引数
- Arguments
(HorizontalSliderWindow型) windowInstance : 対象のウィンドウ
(int型) x : ウィンドウのX座標
(int型) y : ウィンドウのY座標
戻り値
- Return
(void型)
文法的定義
- Signature
void paintComponent(HorizontalSliderWindow &windowInstance)
関数名
- Name
paintComponent
役割
- Role
ウィンドウを再描画します。
引数
- Arguments
(HorizontalSliderWindow型) windowInstance : 対象のウィンドウ
戻り値
- Return
(void型)
文法的定義
- Signature
void hideComponent(HorizontalSliderWindow &windowInstance)
関数名
- Name
hideComponent
役割
- Role
ウィンドウを不可視化します。
引数
- Arguments
(HorizontalSliderWindow型) windowInstance : 対象のウィンドウ
戻り値
- Return
(void型)
文法的定義
- Signature
void showComponent(HorizontalSliderWindow &windowInstance)
関数名
- Name
showComponent
役割
- Role
ウィンドウを可視化します。
引数
- Arguments
(HorizontalSliderWindow型) windowInstance : 対象のウィンドウ
戻り値
- Return
(void型)