HorizontalSliderPanel ライブラリ
- 目次 -
概要 - Abstract
このライブラリ gui.HorizontalSliderPanel は、GUI部品として、水平スライダーが並ぶパネル ―― スライダーパネル ―― を提供します。
VCSSLの標準ライブラリ「 GUI 」では、GUI部品をint型のIDで扱いますが、このモジュールで提供されるGUI部品は、HorizontalSliderPanel 構造体として扱います。
HorizontalSliderPanel 構造体は、内部にリソースのID等を保持していますが、
生成・破棄のための関数が提供されるため、その中身を特に意識する必要はありません( むしろメンバへの直接的なアクセスは推奨されません )。
具体的には、 newHorizontalSliderPanel 関数で生成し、 deleteComponent 関数で破棄します。
またこのモジュールでは、HorizontalSliderPanel 構造体を標準ライブラリ「 GUI 」とほぼ同様の感覚でそのまま扱えるように、標準GUIライブラリ関数のオーバーロードも提供されます。
例えば、 mountComponent 関数や、setComponentSize 関数、 setComponentLocation 関数などが提供されます。
目次 - Index
- struct HorizontalSliderPanel
- スライダーパネルの構造体です。
- HorizontalSliderPanel newHorizontalSliderPanel(int x, int y, int width, int height, string labelText[ ], float defaultValue[ ], float minValue[ ], float maxValue[ ])
- スライダーパネルを生成します。
- HorizontalSliderPanel newHorizontalSliderPanel(int x, int y, int width, int height, string labelText[ ], int defaultValue[ ], int minValue[ ], int maxValue[ ])
- スライダーパネルを生成します。
- void deleteComponent(HorizontalSliderPanel &panelInstance)
- スライダーパネルを破棄します。
- void paintComponent(HorizontalSliderPanel &panelInstance)
- スライダーパネルを再描画します。
- void mountComponent(HorizontalSliderPanel &panelInstance, int componentID)
- スライダーパネルを、別のGUIコンポーネント上に配置します。
- void demountComponent(HorizontalSliderPanel &panelInstance, int componentID)
- スライダーパネルを、別のGUIコンポーネントから配置解除します。
- void setTextLabelWidth(HorizontalSliderPanel &panelInstance, int labelWidth)
- ラベル部分の幅を設定します。
- void setLabelWidth(HorizontalSliderPanel panelInstance, int labelWidth)
- (この関数は互換目的でサポートされています。getTextLabelWidth を使用して下さい。)ラベル部分の幅を設定します。
- int getPanel(HorizontalSliderPanel &panelInstance)
- パネルのコンポーネントIDを返します。
- int getHorizontalSlider(HorizontalSliderPanel &panelInstance, string labelText)
- 指定されたラベルに対応するスライダーを取得します。
- int getHorizontalSlider(HorizontalSliderPanel &panelInstance, int index)
- 指定されたインデックスのスライダーを取得します。
- int[ ] getComponentSize(HorizontalSliderPanel &panelInstance)
- パネルのサイズを返します。
- void setComponentSize(HorizontalSliderPanel &panelInstance, int width, int height)
- パネルのサイズを設定します。
- void setComponentSize(HorizontalSliderPanel &panelInstance)
- パネルの現在のサイズに合わせて、内部コンポーネントのサイズを自動設定します。パネルのサイズを外部から変更した際に使用します。
- int[ ] getComponentLocation(HorizontalSliderPanel &panelInstance)
- パネルの位置を返します。
- void setComponentLocation(HorizontalSliderPanel &panelInstance, int x, int y)
- パネルの位置を設定します。
構造体 - Structs
宣言 - Declaration |
struct HorizontalSliderPanel |
詳細 - Description |
スライダーパネルの構造体です。 |
変数 - Variables
関数 - Functions
宣言 - Declaration |
HorizontalSliderPanel newHorizontalSliderPanel(int x, int y, int width, int height, string labelText[ ], float defaultValue[ ], float minValue[ ], float maxValue[ ]) |
詳細 - Description |
スライダーパネルを生成します。 |
引数 - Arguments |
x : パネルのX座標 y : パネルのY座標 width : パネルの幅 height : パネルの高さ labelText : ラベル文字列を格納する配列 labelWidth : ラベル部分の幅 defaultValue : スライダーの初期値を格納する配列 minValue : スライダーの最小値を格納する配列 maxValue : スライダーの最小値を格納する配列 |
戻り値 - Return |
生成したスライダーパネル構造体 |
宣言 - Declaration |
HorizontalSliderPanel newHorizontalSliderPanel(int x, int y, int width, int height, string labelText[ ], int defaultValue[ ], int minValue[ ], int maxValue[ ]) |
詳細 - Description |
スライダーパネルを生成します。 |
引数 - Arguments |
x : パネルのX座標 y : パネルのY座標 width : パネルの幅 height : パネルの高さ labelText : ラベル文字列を格納する配列 labelWidth : ラベル部分の幅 defaultValue : スライダーの初期値を格納する配列 minValue : スライダーの最小値を格納する配列 maxValue : スライダーの最小値を格納する配列 |
戻り値 - Return |
生成したスライダーパネル構造体 |
宣言 - Declaration |
void deleteComponent(HorizontalSliderPanel &panelInstance) |
詳細 - Description |
スライダーパネルを破棄します。 |
引数 - Arguments |
panelInstance : 破棄するスライダーパネル |
宣言 - Declaration |
void paintComponent(HorizontalSliderPanel &panelInstance) |
詳細 - Description |
スライダーパネルを再描画します。 |
引数 - Arguments |
panelInstance : 再描画するスライダーパネル |
宣言 - Declaration |
void mountComponent(HorizontalSliderPanel &panelInstance, int componentID) |
詳細 - Description |
スライダーパネルを、別のGUIコンポーネント上に配置します。 |
引数 - Arguments |
panelInstance : 配置するスライダーパネル componentID : 配置先GUIコンポーネントID |
宣言 - Declaration |
void demountComponent(HorizontalSliderPanel &panelInstance, int componentID) |
詳細 - Description |
スライダーパネルを、別のGUIコンポーネントから配置解除します。 |
引数 - Arguments |
panelInstance : 配置解除するスライダーパネル componentID : 配置先GUIコンポーネントID |
宣言 - Declaration |
void setTextLabelWidth(HorizontalSliderPanel &panelInstance, int labelWidth) |
詳細 - Description |
ラベル部分の幅を設定します。 |
引数 - Arguments |
panelInstance : 取得対象のスライダーパネル labelWidth : ラベル部分の幅 |
宣言 - Declaration |
void setLabelWidth(HorizontalSliderPanel panelInstance, int labelWidth) |
詳細 - Description |
(この関数は互換目的でサポートされています。getTextLabelWidth を使用して下さい。)ラベル部分の幅を設定します。 |
引数 - Arguments |
panelInstance : 取得対象のスライダーパネル labelWidth : ラベル部分の幅 |
宣言 - Declaration |
int getPanel(HorizontalSliderPanel &panelInstance) |
詳細 - Description |
パネルのコンポーネントIDを返します。 |
引数 - Arguments |
panelInstance : 取得対象のスライダーパネル |
戻り値 - Return |
パネルのGUIコンポーネントID |
宣言 - Declaration |
int getHorizontalSlider(HorizontalSliderPanel &panelInstance, string labelText) |
詳細 - Description |
指定されたラベルに対応するスライダーを取得します。 |
引数 - Arguments |
panelInstance : 対象のスライダーパネル labelText : 取得対象のスライダーに対応するラベル文字列 |
戻り値 - Return |
スライダーのGUIコンポーネントID |
宣言 - Declaration |
int getHorizontalSlider(HorizontalSliderPanel &panelInstance, int index) |
詳細 - Description |
指定されたインデックスのスライダーを取得します。 |
引数 - Arguments |
panelInstance : 対象のスライダーパネル index : スライダーのインデックス |
戻り値 - Return |
スライダーのGUIコンポーネントID |
宣言 - Declaration |
int[ ] getComponentSize(HorizontalSliderPanel &panelInstance) |
詳細 - Description |
パネルのサイズを返します。 |
引数 - Arguments |
panelInstance : 対象のスライダーパネル |
戻り値 - Return |
パネルのサイズを格納する配列 |
宣言 - Declaration |
void setComponentSize(HorizontalSliderPanel &panelInstance, int width, int height) |
詳細 - Description |
パネルのサイズを設定します。 |
引数 - Arguments |
panelInstance : 対象のスライダーパネル width : パネルの幅 height : パネルの高さ |
宣言 - Declaration |
void setComponentSize(HorizontalSliderPanel &panelInstance) |
詳細 - Description |
パネルの現在のサイズに合わせて、内部コンポーネントのサイズを自動設定します。パネルのサイズを外部から変更した際に使用します。 |
引数 - Arguments |
panelInstance : 対象のスライダーパネル |
宣言 - Declaration |
int[ ] getComponentLocation(HorizontalSliderPanel &panelInstance) |
詳細 - Description |
パネルの位置を返します。 |
引数 - Arguments |
panelInstance : 対象のスライダーパネル |
戻り値 - Return |
パネルの位置を格納する配列 |
宣言 - Declaration |
void setComponentLocation(HorizontalSliderPanel &panelInstance, int x, int y) |
詳細 - Description |
パネルの位置を設定します。 |
引数 - Arguments |
panelInstance : 対象のスライダーパネル x : ウィンドウのX座標 y : ウィンドウのY座標 |