GUI ライブラリ


概要 - Abstract

VCSSL GUI ライブラリ は、VCSSLでグラフィカル・ユーザー・インターフェイスを扱うための標準ライブラリです。

GUIライブラリの規模は比較的大きいため、ここに記載されている関数仕様だけを参考にして扱うのは困難です。具体的な使用方法については、「 VCSSL公式開発ガイド 」をご参照ください。

- 注意 -
GUIを用いたプログラムでは、イベントハンドラの使用が必須となります。VCSSLでは、イベントハンドラの処理は独立スレッドで実行されます。現行版の RINEARN VCSSL Runtime では、マルチスレッド処理への対応が十分ではありません。 これは、現在のVCSSLエンジンの基本設計が、シングルスレッドのみを想定して開発された初期のVCSSLエンジンの基本設計を、部分的に踏襲している事に由来します。 これにより、処理内容によっては、論理的な不整合を含む、いくつかの不都合が生じる可能性があります。 RINEARN VCSSL Runtime でイベントハンドラに処理を記述するには、この事情を把握した上で行って下さい。現時点で想定可能なものとしては、以下のような不都合が生じる可能性があります。
・同一の配列変数へ、複数スレッドから同時アクセスした場合における、インデックスの不整合
現在のVCSSLエンジンにおける、配列変数の値を参照するモジュールには、シングルスレッドのみを想定した設計が残っています。これにより、同一の配列変数に、同時にアクセスした場合、正しくないインデックスの値が参照される可能性があります。
・同一の関数への、非常に頻繁な複数スレッド同時アクセスに伴う、エンジンの緊急停止
原則として、同一の関数を複数スレッドで実行する事は可能です。その場合、引数やローカル変数は、スレッド間で混同されないように、スレッドの数だけ確保されます。 しかし、同時アクセスのタイミングがあまりに短い間隔に集中すると、この処理が追いつかなくなり、不整合を防ぐためにエンジンが緊急停止する場合があります。 ※ 関数の実行中の時間が重なる事は問題ではありません。関数をコールする瞬間(引数を渡す瞬間)が重なる事が問題となります。
以上のような不都合が生じる可能性があるため、現状の RINEARN VCSSL Runtime においてイベントハンドラ内の処理を記述する際は、上記の点を認識した上で、以下のようなガイドラインに基づいた設計を行って下さい。
・イベントハンドラでは、イベント情報をグローバル変数に控える等の軽い処理に留めておき、実際の処理はなるべくメインスレッドで行う

・メインスレッドで頻繁にアクセスしている配列変数に、イベントハンドラや別スレッドからアクセスしない

目次 - Index

const int MOUSE_LEFT
マウスの左ボタンを表す定数です。
const int MOUSE_MIDDLE
マウスの中央ボタンを表す定数です。
const int MOUSE_RIGHT
マウスの右ボタンを表す定数です。
const int MOUSE_SINGLE
マウスのシングルクリックを表す定数です。
const int MOUSE_DOUBLE
マウスのダブルクリックを表す定数です。
const int KEY_SPACE
スペースキーを表す定数です。
const int KEY_ENTER
エンターキーを表す定数です。
const int KEY_SHIFT
シフトキーを表す定数です。
const int KEY_ALT
Alt キーを表す定数です。
const int KEY_AT
@ キーを表す定数です。
const int KEY_TAB
Tab キーを表す定数です。
const int KEY_CONTROL
Ctrl キーを表す定数です。
const int KEY_BACK_SPACE
Backspace キーを表す定数です。
const int KEY_A
A キーを表す定数です。
const int KEY_B
B キーを表す定数です。
const int KEY_C
C キーを表す定数です。
const int KEY_D
D キーを表す定数です。
const int KEY_E
E キーを表す定数です。
const int KEY_F
F キーを表す定数です。
const int KEY_G
G キーを表す定数です。
const int KEY_H
H キーを表す定数です。
const int KEY_I
I キーを表す定数です。
const int KEY_J
J キーを表す定数です。
const int KEY_K
K キーを表す定数です。
const int KEY_L
L キーを表す定数です。
const int KEY_M
M キーを表す定数です。
const int KEY_N
N キーを表す定数です。
const int KEY_O
O キーを表す定数です。
const int KEY_P
P キーを表す定数です。
const int KEY_Q
Q キーを表す定数です。
const int KEY_R
R キーを表す定数です。
const int KEY_S
S キーを表す定数です。
const int KEY_T
T キーを表す定数です。
const int KEY_U
U キーを表す定数です。
const int KEY_V
V キーを表す定数です。
const int KEY_W
W キーを表す定数です。
const int KEY_X
X キーを表す定数です。
const int KEY_Y
Y キーを表す定数です。
const int KEY_Z
Z キーを表す定数です。
const int KEY_0
0 キーを表す定数です。
const int KEY_1
1 キーを表す定数です。
const int KEY_2
2 キーを表す定数です。
const int KEY_3
3 キーを表す定数です。
const int KEY_4
4 キーを表す定数です。
const int KEY_5
5 キーを表す定数です。
const int KEY_6
6 キーを表す定数です。
const int KEY_7
7 キーを表す定数です。
const int KEY_8
8 キーを表す定数です。
const int KEY_9
9 キーを表す定数です。
const int KEY_NUMPAD0
0 キーを表す定数です。
const int KEY_NUMPAD1
1 キーを表す定数です。
const int KEY_NUMPAD2
2 キーを表す定数です。
const int KEY_NUMPAD3
3 キーを表す定数です。
const int KEY_NUMPAD4
4 キーを表す定数です。
const int KEY_NUMPAD5
5 キーを表す定数です。
const int KEY_NUMPAD6
6 キーを表す定数です。
const int KEY_NUMPAD7
7 キーを表す定数です。
const int KEY_NUMPAD8
8 キーを表す定数です。
const int KEY_NUMPAD9
9 キーを表す定数です。
const int KEY_UP
上 キーを表す定数です。
const int KEY_DOWN
下 キーを表す定数です。
const int KEY_RIGHT
右 キーを表す定数です。
const int KEY_LEFT
左 キーを表す定数です。
const int KEY_INSERT
Insert キーを表す定数です。
const int KEY_HOME
Home キーを表す定数です。
const int KEY_DELETE
Delete キーを表す定数です。
const int KEY_END
End キーを表す定数です。
const int KEY_PAGE_UP
Page Up キーを表す定数です。
const int KEY_PAGE_DOWN
Page Down キーを表す定数です。
const int KEY_CAPS_LOCK
Caps Lock キーを表す定数です。
const int KEY_BACK_SLASH
バックスラッシュ キーを表す定数です。
const int KEY_SLASH
/ キーを表す定数です。
const int KEY_MINUS
- キーを表す定数です。
const int KEY_PLUS
+ キーを表す定数です。
const int KEY_NUMBER
# キーを表す定数です。
const int KEY_SEMICOLON
; キーを表す定数です。
const int KEY_COLON
: キーを表す定数です。
const int KEY_COMMA
, キーを表す定数です。
const int KEY_PERIOD
. キーを表す定数です。
const int KEY_UNDERSCORE
_ キーを表す定数です。
const int KEY_EXCLAMATION
! キーを表す定数です。
const int KEY_EQUALS
= キーを表す定数です。
const int KEY_DOLLAR
$ キーを表す定数です。
const int KEY_CIRCUMFLEX
^ キーを表す定数です。
const int KEY_LEFT_SQUARE_BRACKET
[ キーを表す定数です。
const int KEY_RIGHT_SQUARE_BRACKET
] キーを表す定数です。
const int KEY_LEFT_PARENTHESIS
( キーを表す定数です。
const int KEY_RIGHT_PARENTHESIS
) キーを表す定数です。
const int KEY_SEPARATOR
| キーを表す定数です。
const int KEY_ADD
加算キーを表す定数です。
const int KEY_SUBTRACT
減算キーを表す定数です。
const int KEY_DIVIDE
除算キーを表す定数です。
const int KEY_MULTIPLY
乗算キーを表す定数です。
const int KEY_F1
F1 キーを表す定数です。
const int KEY_F2
F2 キーを表す定数です。
const int KEY_F3
F3 キーを表す定数です。
const int KEY_F4
F4 キーを表す定数です。
const int KEY_F5
F5 キーを表す定数です。
const int KEY_F6
F6 キーを表す定数です。
const int KEY_F7
F7 キーを表す定数です。
const int KEY_F8
F8 キーを表す定数です。
const int KEY_F9
F9 キーを表す定数です。
const int KEY_F10
F10 キーを表す定数です。
const int KEY_F11
F11 キーを表す定数です。
const int KEY_F12
F12 キーを表す定数です。
const int KEY_F13
F13 キーを表す定数です。
const int KEY_F14
F14 キーを表す定数です。
const int KEY_F15
F15 キーを表す定数です。
const int KEY_F16
F16 キーを表す定数です。
const int KEY_F17
F17 キーを表す定数です。
const int KEY_F18
F18 キーを表す定数です。
const int KEY_F19
F19 キーを表す定数です。
const int KEY_F20
F20 キーを表す定数です。
const int INNER
GUIコンポーネントの内側を指定するための定数です。getComponentSize 関数で使用します。
const int OUTER
GUIコンポーネントの外側を指定するための定数です。getComponentSize 関数で使用します。
const int LISTED
リストアップされている項目全てを指定するための定数です。setComponentStringArray 関数や getComponentStringArray 関数で使用します。
const int SELECTED
選択されている項目全てを指定するための定数です。setComponentStringArray 関数や getComponentStringArray 関数で使用します。
void mountComponent( int componentID, int parentComponentID )
GUIコンポーネントを、別のGUIコンポーネント上に配置します。
void demountComponent( int componentID, int parentComponentID )
GUIコンポーネントを配置解除します。
void deleteComponent( int componentID )
GUIコンポーネントを破棄します。
int newWindow( int x, int y, int w, int h, string title )
ウィンドウを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
int newButton( int x, int y, int w, int h, string text )
ボタンを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
int newTextField( int x, int y, int w, int h, string text )
テキストフィールド( 1行のテキストを入力するコンポーネント )を生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
int newTextArea( int x, int y, int w, int h, string text )
テキストエリア( 複数行のテキストを入力するコンポーネント )を生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
int newTextLabel( int x, int y, int w, int h, string text )
テキストラベル( 1行のテキストを表示するコンポーネント )を生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
int newImageLabel( int x, int y, int w, int h, int graphicsID )
画像ラベルを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
int newCheckBox( int x, int y, int w, int h, string text, boolean b )
チェックボックスを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
int newSelectField( int x, int y, int w, int h, string str[ ] )
セレクトフィールド( 選択肢から1つの項目を選択可能な、1行のコンポーネント )を生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
int newSelectArea( int x, int y, int w, int h, string str[ ] )
セレクトエリア( 選択肢から複数項目を選択可能な、複数行のコンポーネント )を生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
int newVerticalSlider( int x, int y, int w, int h, float value )
0.0 〜 1.0 の範囲でfloat 値を操作する垂直スライダーを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
int newVerticalSlider( int x, int y, int w, int h, float value, float min, float max )
float 値を操作する垂直スライダーを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
int newVerticalSlider( int x, int y, int w, int h, int value, int min, int max )
int 値を操作する垂直スライダーを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
int newHorizontalSlider( int x, int y, int w, int h, float value )
0.0 〜 1.0 の範囲でfloat 値を操作する水平スライダーを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
int newHorizontalSlider( int x, int y, int w, int h, float value, float min, float max )
float 値を操作する水平スライダーを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
int newHorizontalSlider( int x, int y, int w, int h, int value, int min, int max )
int 値を操作する水平スライダーを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
int newPanel( int x, int y, int w, int h, string title )
任意座標レイアウト用のパネルを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
int newGridPanel( int x, int y, int w, int h, string title, int rows, int columns )
グリッド配置用のパネルを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
int newFlowPanel( int x, int y, int w, int h, string title )
フロー配置用のパネルを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
int newTabPanel( int x, int y, int w, int h, string title )
タブ表示用のパネルを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。このパネルの上に、別のパネルを配置して使用します。
int newScrollPanel( int x, int y, int w, int h, string title )
スクロール表示用のパネルを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。このパネルの上に、別のパネルを配置して使用します。
macro paintComponent( int componentID )
GUIコンポーネントを再描画します。再描画は、表示内容のテキストやグラフィックスデータが変化した際に必要です。及び自身に配置されている子コンポーネントの表示内容が変化した際にも必要となります。
void setComponentLocation( int componentID, int x, int y )
GUIコンポーネントの位置を設定します。
int[ ] getComponentLocation( int componentID )
GUIコンポーネントの位置を取得します。
void setComponentSize( int componentID, int width, int height )
GUIコンポーネントの大きさを設定します。
int[ ] getComponentSize( int componentID )
GUIコンポーネントの大きさを取得します。
int[ ] getComponentSize( int componentID, int option )
GUIコンポーネントの特定部分の大きさを取得します。
void setComponentColor( int componentID, int fr, int fg, int fb, int fa, int br, int bg, int bb, int ba )
GUIコンポーネントの色を設定します。
void setComponentColor( int componentID, int fgRGBA[ ], int bgRGBA[ ] )
GUIコンポーネントの色を設定します。
macro getComponentColor( int componentID )
GUIコンポーネントの色を返します。
void setComponentText( int componentID, string text )
GUIコンポーネントのテキスト情報を設定します。
string getComponentText( int componentID )
GUIコンポーネントのテキスト情報を取得します。
void setComponentText( int componentID, string text[ ], int option )
GUIコンポーネントのテキスト情報を設定します。
string[ ] getComponentText( int componentID, int option )
GUIコンポーネントのテキスト情報を設定します。
void setComponentImage( int componentID, int graphicsID )
GUIコンポーネントの画像を設定します。
int getComponentGraphics( int componentID )
GUIコンポーネントの画像を格納する、グラフィックスデータのIDを返します。
void showComponent( int componentID )
GUIコンポーネントの非表示にします。
void hideComponent( int componentID )
GUIコンポーネントの表示します。
void setComponentFont( int componentID, string name )
GUIコンポーネントのフォントを設定します
void setComponentFontSize( int componentID, int size )
GUIコンポーネントのフォントサイズを設定します
void setComponentFontBold( int componentID, bool isBold )
GUIコンポーネントのフォントを太字に設定または解除します。イタリック体と併用はできません。
void setComponentFontItalic( int componentID, bool isItalic )
GUIコンポーネントのフォントをイタリック体に設定または解除します。太字と併用はできません。
void setComponentFloat( int componentID, float value )
GUIコンポーネントが保持する float 型の値を設定します。
float getComponentFloat( int componentID )
GUIコンポーネントが保持する float 型の値を返します。
void setComponentInt( int componentID, int value )
GUIコンポーネントが保持する int 型の値を設定します。
int getComponentInt( int componentID )
GUIコンポーネントが保持する int 型の値を返します。
void setComponentBool( int componentID, bool state )
GUIコンポーネントが保持する bool 型の値を設定します。
bool getComponentBool( int componentID )
GUIコンポーネントが保持する bool 型の値を返します。
void setComponentString( int componentID, string text )
GUIコンポーネントが保持する string 型の値を設定します。
string getComponentString( int componentID )
GUIコンポーネントが保持する string 型の値を返します。
void setComponentStringArray( int componentID, string text[ ], int option )
GUIコンポーネントが保持する string 型配列の値を設定します。
string[ ] getComponentStringArray( int componentID, int option )
GUIコンポーネントが保持する string 型配列の値を返します。
void setComponentIntArray( int componentID, int value[ ] )
GUIコンポーネントが保持する int 型配列の値を設定します。
int[ ] getComponentIntArray( int componentID )
GUIコンポーネントが保持する int 型配列の値を返します。
void addComponent( int componentID, int parentComponentID )
GUIコンポーネントを、別のGUIコンポーネント上に配置します。VCSSL 3 以降では、より新しい mountComponent 関数がサポートされています。この関数は互換目的でサポートされています。
void removeComponent( int componentID, int parentComponentID )
GUIコンポーネントを配置解除します。VCSSL 3 以降では、より新しい demountComponent 関数がサポートされています。この関数は互換目的でサポートされています。
int newGraphicsLabel( int x, int y, int w, int h, int graphicsID )
グラフィックスラベル( 描画内容や画像を表示するコンポーネント )を生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。VCSSL 3.3.24 以降では、より新しい newImageLabel 関数がサポートされています。この関数は互換目的でサポートされています。
void setComponentGraphics( int componentID, int graphicsID )
GUIコンポーネントのグラフィックスデータIDを設定します。VCSSL 3.3.24 以降では、より新しい setComponentImage 関数がサポートされています。この関数は互換目的でサポートされています。
int getComponentGraphics( int componentID )
GUIコンポーネントのグラフィックスデータIDを返します。VCSSL 3.3.24 以降では、より新しい getComponentGraphics 関数がサポートされています。この関数は互換目的でサポートされています。
void setComponentVisible( int componentID, bool b )
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
bool getComponentVisible( int componentID )
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
int[ ] getComponentInnerSize( int componentID )
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
int[ ] getComponentInner( int componentID )
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
void setComponentValue( int componentID, float value )
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
float getComponentValue( int componentID )
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
void setComponentState( int componentID, bool state )
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
bool getComponentState( int componentID )
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
void setComponentValueFloat( int componentID, float value )
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
float getComponentValueFloat( int componentID )
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
void setComponentValueInt( int componentID, int value )
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
int getComponentValueInt( int componentID )
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
void setComponentValueBool( int componentID, bool state )
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
bool getComponentValueBool( int componentID )
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
void setComponentValueString( int componentID, string text )
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
string getComponentValueString( int componentID )
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
void onWindowOpen( int componentID )
ウィンドウが開いた際にコールされます。
void onWindowClose( int componentID )
ウィンドウが閉じられた際にコールされます。
void onWindowMove( int componentID, int x, int y )
ウィンドウが動かされた際にコールされます。
void onWindowResize( int componentID, int width, int height )
ウィンドウがリサイズされた際にコールされます。
void onWindowShow( int componentID )
ウィンドウが可視化された際にコールされます。
void onWindowHide( int componentID )
ウィンドウが不可視化された際にコールされます。
void onButtonClick( int componentID, string text )
ボタンが押された際にコールされます。
void onSelectFieldClick( int componentID, string text )
セレクトフィールドの項目が選択された際にコールされます。
void onCheckBoxClick( int componentID, bool value )
チェックボックスの項目が選択または解除された際にコールされます。
void onSliderMove( int componentID, int value )
int値のスライダーが操作された際にコールされます。
void onSliderMove( int componentID, float value )
float値のスライダーが操作された際にコールされます。
void onKeyDown( int componentID, string keyLabel )
キーボードのキーが押された際にコールされます。
void onKeyDown( int componentID, string keyConstant )
キーボードのキーが押された際にコールされます。
void onKeyUp( int componentID, string keyLabel )
キーボードのキーが離された際にコールされます。
void onKeyUp( int componentID, string keyConstant )
キーボードのキーが離された際にコールされます。
void onMouseDown( int componentID, int x, int y, int button )
マウスのボタンが押された際にコールされます。
void onMouseUp( int componentID, int x, int y, int button )
マウスのボタンが離された際にコールされます。
void onMouseClick( int componentID, int x, int y, int button, int count )
マウスがクリックされた際にコールされます。
void onMouseClick( int componentID, int x, int y, int button, int count )
マウスがドラッグされた際にコールされます。
void onMouseScroll( int componentID, int degree )
マウスホイールがスクロールされた際にコールされます。

構造体 - Structs

- なし - None -


変数 - Variables

文法的定義
- Signature
const int MOUSE_LEFT
変数名
- Name
MOUSE_LEFT
役割
- Role
マウスの左ボタンを表す定数です。
文法的定義
- Signature
const int MOUSE_MIDDLE
変数名
- Name
MOUSE_MIDDLE
役割
- Role
マウスの中央ボタンを表す定数です。
文法的定義
- Signature
const int MOUSE_RIGHT
変数名
- Name
MOUSE_RIGHT
役割
- Role
マウスの右ボタンを表す定数です。
文法的定義
- Signature
const int MOUSE_SINGLE
変数名
- Name
MOUSE_SINGLE
役割
- Role
マウスのシングルクリックを表す定数です。
文法的定義
- Signature
const int MOUSE_DOUBLE
変数名
- Name
MOUSE_DOUBLE
役割
- Role
マウスのダブルクリックを表す定数です。
文法的定義
- Signature
const int KEY_SPACE
変数名
- Name
KEY_SPACE
役割
- Role
スペースキーを表す定数です。
文法的定義
- Signature
const int KEY_ENTER
変数名
- Name
KEY_ENTER
役割
- Role
エンターキーを表す定数です。
文法的定義
- Signature
const int KEY_SHIFT
変数名
- Name
KEY_SHIFT
役割
- Role
シフトキーを表す定数です。
文法的定義
- Signature
const int KEY_ALT
変数名
- Name
KEY_ALT
役割
- Role
Alt キーを表す定数です。
文法的定義
- Signature
const int KEY_AT
変数名
- Name
KEY_AT
役割
- Role
@ キーを表す定数です。
文法的定義
- Signature
const int KEY_TAB
変数名
- Name
KEY_TAB
役割
- Role
Tab キーを表す定数です。
文法的定義
- Signature
const int KEY_CONTROL
変数名
- Name
KEY_CONTROL
役割
- Role
Ctrl キーを表す定数です。
文法的定義
- Signature
const int KEY_BACK_SPACE
変数名
- Name
KEY_BACK_SPACE
役割
- Role
Backspace キーを表す定数です。
文法的定義
- Signature
const int KEY_A
変数名
- Name
KEY_A
役割
- Role
A キーを表す定数です。
文法的定義
- Signature
const int KEY_B
変数名
- Name
KEY_B
役割
- Role
B キーを表す定数です。
文法的定義
- Signature
const int KEY_C
変数名
- Name
KEY_C
役割
- Role
C キーを表す定数です。
文法的定義
- Signature
const int KEY_D
変数名
- Name
KEY_D
役割
- Role
D キーを表す定数です。
文法的定義
- Signature
const int KEY_E
変数名
- Name
KEY_E
役割
- Role
E キーを表す定数です。
文法的定義
- Signature
const int KEY_F
変数名
- Name
KEY_F
役割
- Role
F キーを表す定数です。
文法的定義
- Signature
const int KEY_G
変数名
- Name
KEY_G
役割
- Role
G キーを表す定数です。
文法的定義
- Signature
const int KEY_H
変数名
- Name
KEY_H
役割
- Role
H キーを表す定数です。
文法的定義
- Signature
const int KEY_I
変数名
- Name
KEY_I
役割
- Role
I キーを表す定数です。
文法的定義
- Signature
const int KEY_J
変数名
- Name
KEY_J
役割
- Role
J キーを表す定数です。
文法的定義
- Signature
const int KEY_K
変数名
- Name
KEY_K
役割
- Role
K キーを表す定数です。
文法的定義
- Signature
const int KEY_L
変数名
- Name
KEY_L
役割
- Role
L キーを表す定数です。
文法的定義
- Signature
const int KEY_M
変数名
- Name
KEY_M
役割
- Role
M キーを表す定数です。
文法的定義
- Signature
const int KEY_N
変数名
- Name
KEY_N
役割
- Role
N キーを表す定数です。
文法的定義
- Signature
const int KEY_O
変数名
- Name
KEY_O
役割
- Role
O キーを表す定数です。
文法的定義
- Signature
const int KEY_P
変数名
- Name
KEY_P
役割
- Role
P キーを表す定数です。
文法的定義
- Signature
const int KEY_Q
変数名
- Name
KEY_Q
役割
- Role
Q キーを表す定数です。
文法的定義
- Signature
const int KEY_R
変数名
- Name
KEY_R
役割
- Role
R キーを表す定数です。
文法的定義
- Signature
const int KEY_S
変数名
- Name
KEY_S
役割
- Role
S キーを表す定数です。
文法的定義
- Signature
const int KEY_T
変数名
- Name
KEY_T
役割
- Role
T キーを表す定数です。
文法的定義
- Signature
const int KEY_U
変数名
- Name
KEY_U
役割
- Role
U キーを表す定数です。
文法的定義
- Signature
const int KEY_V
変数名
- Name
KEY_V
役割
- Role
V キーを表す定数です。
文法的定義
- Signature
const int KEY_W
変数名
- Name
KEY_W
役割
- Role
W キーを表す定数です。
文法的定義
- Signature
const int KEY_X
変数名
- Name
KEY_X
役割
- Role
X キーを表す定数です。
文法的定義
- Signature
const int KEY_Y
変数名
- Name
KEY_Y
役割
- Role
Y キーを表す定数です。
文法的定義
- Signature
const int KEY_Z
変数名
- Name
KEY_Z
役割
- Role
Z キーを表す定数です。
文法的定義
- Signature
const int KEY_0
変数名
- Name
KEY_0
役割
- Role
0 キーを表す定数です。
文法的定義
- Signature
const int KEY_1
変数名
- Name
KEY_1
役割
- Role
1 キーを表す定数です。
文法的定義
- Signature
const int KEY_2
変数名
- Name
KEY_2
役割
- Role
2 キーを表す定数です。
文法的定義
- Signature
const int KEY_3
変数名
- Name
KEY_3
役割
- Role
3 キーを表す定数です。
文法的定義
- Signature
const int KEY_4
変数名
- Name
KEY_4
役割
- Role
4 キーを表す定数です。
文法的定義
- Signature
const int KEY_5
変数名
- Name
KEY_5
役割
- Role
5 キーを表す定数です。
文法的定義
- Signature
const int KEY_6
変数名
- Name
KEY_6
役割
- Role
6 キーを表す定数です。
文法的定義
- Signature
const int KEY_7
変数名
- Name
KEY_7
役割
- Role
7 キーを表す定数です。
文法的定義
- Signature
const int KEY_8
変数名
- Name
KEY_8
役割
- Role
8 キーを表す定数です。
文法的定義
- Signature
const int KEY_9
変数名
- Name
KEY_9
役割
- Role
9 キーを表す定数です。
文法的定義
- Signature
const int KEY_NUMPAD0
変数名
- Name
KEY_NUMPAD0
役割
- Role
0 キーを表す定数です。
文法的定義
- Signature
const int KEY_NUMPAD1
変数名
- Name
KEY_NUMPAD1
役割
- Role
1 キーを表す定数です。
文法的定義
- Signature
const int KEY_NUMPAD2
変数名
- Name
KEY_NUMPAD2
役割
- Role
2 キーを表す定数です。
文法的定義
- Signature
const int KEY_NUMPAD3
変数名
- Name
KEY_NUMPAD3
役割
- Role
3 キーを表す定数です。
文法的定義
- Signature
const int KEY_NUMPAD4
変数名
- Name
KEY_NUMPAD4
役割
- Role
4 キーを表す定数です。
文法的定義
- Signature
const int KEY_NUMPAD5
変数名
- Name
KEY_NUMPAD5
役割
- Role
5 キーを表す定数です。
文法的定義
- Signature
const int KEY_NUMPAD6
変数名
- Name
KEY_NUMPAD6
役割
- Role
6 キーを表す定数です。
文法的定義
- Signature
const int KEY_NUMPAD7
変数名
- Name
KEY_NUMPAD7
役割
- Role
7 キーを表す定数です。
文法的定義
- Signature
const int KEY_NUMPAD8
変数名
- Name
KEY_NUMPAD8
役割
- Role
8 キーを表す定数です。
文法的定義
- Signature
const int KEY_NUMPAD9
変数名
- Name
KEY_NUMPAD9
役割
- Role
9 キーを表す定数です。
文法的定義
- Signature
const int KEY_UP
変数名
- Name
KEY_UP
役割
- Role
上 キーを表す定数です。
文法的定義
- Signature
const int KEY_DOWN
変数名
- Name
KEY_DOWN
役割
- Role
下 キーを表す定数です。
文法的定義
- Signature
const int KEY_RIGHT
変数名
- Name
KEY_RIGHT
役割
- Role
右 キーを表す定数です。
文法的定義
- Signature
const int KEY_LEFT
変数名
- Name
KEY_LEFT
役割
- Role
左 キーを表す定数です。
文法的定義
- Signature
const int KEY_INSERT
変数名
- Name
KEY_INSERT
役割
- Role
Insert キーを表す定数です。
文法的定義
- Signature
const int KEY_HOME
変数名
- Name
KEY_HOME
役割
- Role
Home キーを表す定数です。
文法的定義
- Signature
const int KEY_DELETE
変数名
- Name
KEY_DELETE
役割
- Role
Delete キーを表す定数です。
文法的定義
- Signature
const int KEY_END
変数名
- Name
KEY_END
役割
- Role
End キーを表す定数です。
文法的定義
- Signature
const int KEY_PAGE_UP
変数名
- Name
KEY_PAGE_UP
役割
- Role
Page Up キーを表す定数です。
文法的定義
- Signature
const int KEY_PAGE_DOWN
変数名
- Name
KEY_PAGE_DOWN
役割
- Role
Page Down キーを表す定数です。
文法的定義
- Signature
const int KEY_CAPS_LOCK
変数名
- Name
KEY_CAPS_LOCK
役割
- Role
Caps Lock キーを表す定数です。
文法的定義
- Signature
const int KEY_BACK_SLASH
変数名
- Name
KEY_BACK_SLASH
役割
- Role
バックスラッシュ キーを表す定数です。
文法的定義
- Signature
const int KEY_SLASH
変数名
- Name
KEY_SLASH
役割
- Role
/ キーを表す定数です。
文法的定義
- Signature
const int KEY_MINUS
変数名
- Name
KEY_MINUS
役割
- Role
- キーを表す定数です。
文法的定義
- Signature
const int KEY_PLUS
変数名
- Name
KEY_PLUS
役割
- Role
+ キーを表す定数です。
文法的定義
- Signature
const int KEY_NUMBER
変数名
- Name
KEY_NUMBER
役割
- Role
# キーを表す定数です。
文法的定義
- Signature
const int KEY_SEMICOLON
変数名
- Name
KEY_SEMICOLON
役割
- Role
; キーを表す定数です。
文法的定義
- Signature
const int KEY_COLON
変数名
- Name
KEY_COLON
役割
- Role
: キーを表す定数です。
文法的定義
- Signature
const int KEY_COMMA
変数名
- Name
KEY_COMMA
役割
- Role
, キーを表す定数です。
文法的定義
- Signature
const int KEY_PERIOD
変数名
- Name
KEY_PERIOD
役割
- Role
. キーを表す定数です。
文法的定義
- Signature
const int KEY_UNDERSCORE
変数名
- Name
KEY_UNDERSCORE
役割
- Role
_ キーを表す定数です。
文法的定義
- Signature
const int KEY_EXCLAMATION
変数名
- Name
KEY_EXCLAMATION
役割
- Role
! キーを表す定数です。
文法的定義
- Signature
const int KEY_EQUALS
変数名
- Name
KEY_EQUALS
役割
- Role
= キーを表す定数です。
文法的定義
- Signature
const int KEY_DOLLAR
変数名
- Name
KEY_DOLLAR
役割
- Role
$ キーを表す定数です。
文法的定義
- Signature
const int KEY_CIRCUMFLEX
変数名
- Name
KEY_CIRCUMFLEX
役割
- Role
^ キーを表す定数です。
文法的定義
- Signature
const int KEY_LEFT_SQUARE_BRACKET
変数名
- Name
KEY_LEFT_SQUARE_BRACKET
役割
- Role
[ キーを表す定数です。
文法的定義
- Signature
const int KEY_RIGHT_SQUARE_BRACKET
変数名
- Name
KEY_RIGHT_SQUARE_BRACKET
役割
- Role
] キーを表す定数です。
文法的定義
- Signature
const int KEY_LEFT_PARENTHESIS
変数名
- Name
KEY_LEFT_PARENTHESIS
役割
- Role
( キーを表す定数です。
文法的定義
- Signature
const int KEY_RIGHT_PARENTHESIS
変数名
- Name
KEY_RIGHT_PARENTHESIS
役割
- Role
) キーを表す定数です。
文法的定義
- Signature
const int KEY_SEPARATOR
変数名
- Name
KEY_SEPARATOR
役割
- Role
| キーを表す定数です。
文法的定義
- Signature
const int KEY_ADD
変数名
- Name
KEY_ADD
役割
- Role
加算キーを表す定数です。
文法的定義
- Signature
const int KEY_SUBTRACT
変数名
- Name
KEY_SUBTRACT
役割
- Role
減算キーを表す定数です。
文法的定義
- Signature
const int KEY_DIVIDE
変数名
- Name
KEY_DIVIDE
役割
- Role
除算キーを表す定数です。
文法的定義
- Signature
const int KEY_MULTIPLY
変数名
- Name
KEY_MULTIPLY
役割
- Role
乗算キーを表す定数です。
文法的定義
- Signature
const int KEY_F1
変数名
- Name
KEY_F1
役割
- Role
F1 キーを表す定数です。
文法的定義
- Signature
const int KEY_F2
変数名
- Name
KEY_F2
役割
- Role
F2 キーを表す定数です。
文法的定義
- Signature
const int KEY_F3
変数名
- Name
KEY_F3
役割
- Role
F3 キーを表す定数です。
文法的定義
- Signature
const int KEY_F4
変数名
- Name
KEY_F4
役割
- Role
F4 キーを表す定数です。
文法的定義
- Signature
const int KEY_F5
変数名
- Name
KEY_F5
役割
- Role
F5 キーを表す定数です。
文法的定義
- Signature
const int KEY_F6
変数名
- Name
KEY_F6
役割
- Role
F6 キーを表す定数です。
文法的定義
- Signature
const int KEY_F7
変数名
- Name
KEY_F7
役割
- Role
F7 キーを表す定数です。
文法的定義
- Signature
const int KEY_F8
変数名
- Name
KEY_F8
役割
- Role
F8 キーを表す定数です。
文法的定義
- Signature
const int KEY_F9
変数名
- Name
KEY_F9
役割
- Role
F9 キーを表す定数です。
文法的定義
- Signature
const int KEY_F10
変数名
- Name
KEY_F10
役割
- Role
F10 キーを表す定数です。
文法的定義
- Signature
const int KEY_F11
変数名
- Name
KEY_F11
役割
- Role
F11 キーを表す定数です。
文法的定義
- Signature
const int KEY_F12
変数名
- Name
KEY_F12
役割
- Role
F12 キーを表す定数です。
文法的定義
- Signature
const int KEY_F13
変数名
- Name
KEY_F13
役割
- Role
F13 キーを表す定数です。
文法的定義
- Signature
const int KEY_F14
変数名
- Name
KEY_F14
役割
- Role
F14 キーを表す定数です。
文法的定義
- Signature
const int KEY_F15
変数名
- Name
KEY_F15
役割
- Role
F15 キーを表す定数です。
文法的定義
- Signature
const int KEY_F16
変数名
- Name
KEY_F16
役割
- Role
F16 キーを表す定数です。
文法的定義
- Signature
const int KEY_F17
変数名
- Name
KEY_F17
役割
- Role
F17 キーを表す定数です。
文法的定義
- Signature
const int KEY_F18
変数名
- Name
KEY_F18
役割
- Role
F18 キーを表す定数です。
文法的定義
- Signature
const int KEY_F19
変数名
- Name
KEY_F19
役割
- Role
F19 キーを表す定数です。
文法的定義
- Signature
const int KEY_F20
変数名
- Name
KEY_F20
役割
- Role
F20 キーを表す定数です。
文法的定義
- Signature
const int INNER
変数名
- Name
INNER
役割
- Role
GUIコンポーネントの内側を指定するための定数です。getComponentSize 関数で使用します。
文法的定義
- Signature
const int OUTER
変数名
- Name
OUTER
役割
- Role
GUIコンポーネントの外側を指定するための定数です。getComponentSize 関数で使用します。
文法的定義
- Signature
const int LISTED
変数名
- Name
LISTED
役割
- Role
リストアップされている項目全てを指定するための定数です。setComponentStringArray 関数や getComponentStringArray 関数で使用します。
文法的定義
- Signature
const int SELECTED
変数名
- Name
SELECTED
役割
- Role
選択されている項目全てを指定するための定数です。setComponentStringArray 関数や getComponentStringArray 関数で使用します。

関数 - Functions

文法的定義
- Signature
void mountComponent( int componentID, int parentComponentID )
関数名
- Name
mountComponent
役割
- Role
GUIコンポーネントを、別のGUIコンポーネント上に配置します。
引数
- Arguments
(int型) componentID : 配置するGUIコンポーネントのID
(int型) parentComponentID : 配置先GUIコンポーネントのID
戻り値
- Return
(void型)
文法的定義
- Signature
void demountComponent( int componentID, int parentComponentID )
関数名
- Name
demountComponent
役割
- Role
GUIコンポーネントを配置解除します。
引数
- Arguments
(int型) componentID : 配置解除するGUIコンポーネントのID
(int型) parentComponentID : 現在の配置先GUIコンポーネントのID
戻り値
- Return
(void型)
文法的定義
- Signature
void deleteComponent( int componentID )
関数名
- Name
deleteComponent
役割
- Role
GUIコンポーネントを破棄します。
引数
- Arguments
(int型) componentID : 破棄するGUIコンポーネントのID
戻り値
- Return
(void型)
文法的定義
- Signature
int newWindow( int x, int y, int w, int h, string title )
関数名
- Name
newWindow
役割
- Role
ウィンドウを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
引数
- Arguments
(int型) x : 左上頂点のX座標
(int型) y : 左上頂点のY座標
width : 幅
height : 高さ
(string型) title : ウィンドウタイトル
戻り値
- Return
(int型) GUIコンポーネントID
文法的定義
- Signature
int newButton( int x, int y, int w, int h, string text )
関数名
- Name
newButton
役割
- Role
ボタンを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
引数
- Arguments
(int型) x : 左上頂点のX座標
(int型) y : 左上頂点のY座標
width : 幅
height : 高さ
(string型) text : ボタンに表示するテキスト
戻り値
- Return
(int型) GUIコンポーネントID
文法的定義
- Signature
int newTextField( int x, int y, int w, int h, string text )
関数名
- Name
newTextField
役割
- Role
テキストフィールド( 1行のテキストを入力するコンポーネント )を生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
引数
- Arguments
(int型) x : 左上頂点のX座標
(int型) y : 左上頂点のY座標
width : 幅
height : 高さ
(string型) text : 初期値として表示するテキスト
戻り値
- Return
(int型) GUIコンポーネントID
文法的定義
- Signature
int newTextArea( int x, int y, int w, int h, string text )
関数名
- Name
newTextArea
役割
- Role
テキストエリア( 複数行のテキストを入力するコンポーネント )を生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
引数
- Arguments
(int型) x : 左上頂点のX座標
(int型) y : 左上頂点のY座標
width : 幅
height : 高さ
(string型) text : 初期値として表示するテキスト
戻り値
- Return
(int型) GUIコンポーネントID
文法的定義
- Signature
int newTextLabel( int x, int y, int w, int h, string text )
関数名
- Name
newTextLabel
役割
- Role
テキストラベル( 1行のテキストを表示するコンポーネント )を生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
引数
- Arguments
(int型) x : 左上頂点のX座標
(int型) y : 左上頂点のY座標
width : 幅
height : 高さ
(string型) text : 表示するテキスト
戻り値
- Return
(int型) GUIコンポーネントID
文法的定義
- Signature
int newImageLabel( int x, int y, int w, int h, int graphicsID )
関数名
- Name
newImageLabel
役割
- Role
画像ラベルを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
引数
- Arguments
(int型) x : 左上頂点のX座標
(int型) y : 左上頂点のY座標
width : 幅
height : 高さ
(int型) graphicsID : 画像を格納するグラフィックスリソースのID
戻り値
- Return
(int型) GUIコンポーネントID
文法的定義
- Signature
int newCheckBox( int x, int y, int w, int h, string text, boolean b )
関数名
- Name
newCheckBox
役割
- Role
チェックボックスを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
引数
- Arguments
(int型) x : 左上頂点のX座標
(int型) y : 左上頂点のY座標
width : 幅
height : 高さ
(string型) text : 表示するテキスト
(boolean型) b : 初期値
戻り値
- Return
(int型) GUIコンポーネントID
文法的定義
- Signature
int newSelectField( int x, int y, int w, int h, string str[ ] )
関数名
- Name
newSelectField
役割
- Role
セレクトフィールド( 選択肢から1つの項目を選択可能な、1行のコンポーネント )を生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
引数
- Arguments
(int型) x : 左上頂点のX座標
(int型) y : 左上頂点のY座標
width : 幅
height : 高さ
(string[]型) str : 選択肢
戻り値
- Return
(int型) GUIコンポーネントID
文法的定義
- Signature
int newSelectArea( int x, int y, int w, int h, string str[ ] )
関数名
- Name
newSelectArea
役割
- Role
セレクトエリア( 選択肢から複数項目を選択可能な、複数行のコンポーネント )を生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
引数
- Arguments
(int型) x : 左上頂点のX座標
(int型) y : 左上頂点のY座標
width : 幅
height : 高さ
(string[]型) str : 選択肢
戻り値
- Return
(int型) GUIコンポーネントID
文法的定義
- Signature
int newVerticalSlider( int x, int y, int w, int h, float value )
関数名
- Name
newVerticalSlider
役割
- Role
0.0 〜 1.0 の範囲でfloat 値を操作する垂直スライダーを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
引数
- Arguments
(int型) x : 左上頂点のX座標
(int型) y : 左上頂点のY座標
width : 幅
height : 高さ
(float型) value : 初期値
戻り値
- Return
(int型) GUIコンポーネントID
文法的定義
- Signature
int newVerticalSlider( int x, int y, int w, int h, float value, float min, float max )
関数名
- Name
newVerticalSlider
役割
- Role
float 値を操作する垂直スライダーを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
引数
- Arguments
(int型) x : 左上頂点のX座標
(int型) y : 左上頂点のY座標
width : 幅
height : 高さ
(float型) value : 初期値
(float型) min : 最小値
(float型) max : 最大値
戻り値
- Return
(int型) GUIコンポーネントID
文法的定義
- Signature
int newVerticalSlider( int x, int y, int w, int h, int value, int min, int max )
関数名
- Name
newVerticalSlider
役割
- Role
int 値を操作する垂直スライダーを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
引数
- Arguments
(int型) x : 左上頂点のX座標
(int型) y : 左上頂点のY座標
width : 幅
height : 高さ
(int型) value : 初期値
(int型) min : 最小値
(int型) max : 最大値
戻り値
- Return
(int型) GUIコンポーネントID
文法的定義
- Signature
int newHorizontalSlider( int x, int y, int w, int h, float value )
関数名
- Name
newHorizontalSlider
役割
- Role
0.0 〜 1.0 の範囲でfloat 値を操作する水平スライダーを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
引数
- Arguments
(int型) x : 左上頂点のX座標
(int型) y : 左上頂点のY座標
width : 幅
height : 高さ
(float型) value : 初期値
戻り値
- Return
(int型) GUIコンポーネントID
文法的定義
- Signature
int newHorizontalSlider( int x, int y, int w, int h, float value, float min, float max )
関数名
- Name
newHorizontalSlider
役割
- Role
float 値を操作する水平スライダーを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
引数
- Arguments
(int型) x : 左上頂点のX座標
(int型) y : 左上頂点のY座標
width : 幅
height : 高さ
(float型) value : 初期値
(float型) min : 最小値
(float型) max : 最大値
戻り値
- Return
(int型) GUIコンポーネントID
文法的定義
- Signature
int newHorizontalSlider( int x, int y, int w, int h, int value, int min, int max )
関数名
- Name
newHorizontalSlider
役割
- Role
int 値を操作する水平スライダーを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
引数
- Arguments
(int型) x : 左上頂点のX座標
(int型) y : 左上頂点のY座標
width : 幅
height : 高さ
(int型) value : 初期値
(int型) min : 最小値
(int型) max : 最大値
戻り値
- Return
(int型) GUIコンポーネントID
文法的定義
- Signature
int newPanel( int x, int y, int w, int h, string title )
関数名
- Name
newPanel
役割
- Role
任意座標レイアウト用のパネルを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
引数
- Arguments
(int型) x : 左上頂点のX座標
(int型) y : 左上頂点のY座標
width : 幅
height : 高さ
(string型) title : パネルタイトル
戻り値
- Return
(int型) GUIコンポーネントID
文法的定義
- Signature
int newGridPanel( int x, int y, int w, int h, string title, int rows, int columns )
関数名
- Name
newGridPanel
役割
- Role
グリッド配置用のパネルを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
引数
- Arguments
(int型) x : 左上頂点のX座標
(int型) y : 左上頂点のY座標
width : 幅
height : 高さ
(string型) title : パネルタイトル
戻り値
- Return
(int型) GUIコンポーネントID
文法的定義
- Signature
int newFlowPanel( int x, int y, int w, int h, string title )
関数名
- Name
newFlowPanel
役割
- Role
フロー配置用のパネルを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。
引数
- Arguments
(int型) x : 左上頂点のX座標
(int型) y : 左上頂点のY座標
width : 幅
height : 高さ
(string型) title : パネルタイトル
戻り値
- Return
(int型) GUIコンポーネントID
文法的定義
- Signature
int newTabPanel( int x, int y, int w, int h, string title )
関数名
- Name
newTabPanel
役割
- Role
タブ表示用のパネルを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。このパネルの上に、別のパネルを配置して使用します。
引数
- Arguments
(int型) x : 左上頂点のX座標
(int型) y : 左上頂点のY座標
width : 幅
height : 高さ
(string型) title : パネルタイトル
戻り値
- Return
(int型) GUIコンポーネントID
文法的定義
- Signature
int newScrollPanel( int x, int y, int w, int h, string title )
関数名
- Name
newScrollPanel
役割
- Role
スクロール表示用のパネルを生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。このパネルの上に、別のパネルを配置して使用します。
引数
- Arguments
(int型) x : 左上頂点のX座標
(int型) y : 左上頂点のY座標
width : 幅
height : 高さ
(string型) title : パネルタイトル
戻り値
- Return
(int型) GUIコンポーネントID
文法的定義
- Signature
macro paintComponent( int componentID )
関数名
- Name
paintComponent
役割
- Role
GUIコンポーネントを再描画します。再描画は、表示内容のテキストやグラフィックスデータが変化した際に必要です。及び自身に配置されている子コンポーネントの表示内容が変化した際にも必要となります。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
文法的定義
- Signature
void setComponentLocation( int componentID, int x, int y )
関数名
- Name
setComponentLocation
役割
- Role
GUIコンポーネントの位置を設定します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
(int型) x : 左上頂点のX座標
(int型) y : 左上頂点のY座標
戻り値
- Return
(void型)
文法的定義
- Signature
int[ ] getComponentLocation( int componentID )
関数名
- Name
getComponentLocation
役割
- Role
GUIコンポーネントの位置を取得します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
戻り値
- Return
(int[]型) 左上頂点座標( [0] が X, [1] が Y )
文法的定義
- Signature
void setComponentSize( int componentID, int width, int height )
関数名
- Name
setComponentSize
役割
- Role
GUIコンポーネントの大きさを設定します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
(int型) width : 幅
(int型) height : 高さ
戻り値
- Return
(void型)
文法的定義
- Signature
int[ ] getComponentSize( int componentID )
関数名
- Name
getComponentSize
役割
- Role
GUIコンポーネントの大きさを取得します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
戻り値
- Return
(int[]型) 大きさ( [0] が 幅, [1] が 高さ )
文法的定義
- Signature
int[ ] getComponentSize( int componentID, int option )
関数名
- Name
getComponentSize
役割
- Role
GUIコンポーネントの特定部分の大きさを取得します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
(int型) option : 部分指定オプション( OUTERINNER
戻り値
- Return
(int[]型) 大きさ( [0] が 幅, [1] が 高さ )
文法的定義
- Signature
void setComponentColor( int componentID, int fr, int fg, int fb, int fa, int br, int bg, int bb, int ba )
関数名
- Name
setComponentColor
役割
- Role
GUIコンポーネントの色を設定します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
(int型) fr : 前景色の赤色成分( 0 - 255 )
(int型) fg : 前景色の緑色成分( 0 - 255 )
(int型) fb : 前景色の青色成分( 0 - 255 )
(int型) fa : 前景色のα値成分( 0 - 255 )
(int型) br : 前景色の赤色成分( 0 - 255 )
(int型) bg : 前景色の緑色成分( 0 - 255 )
(int型) bb : 前景色の青色成分( 0 - 255 )
(int型) ba : 前景色のα値成分( 0 - 255 )
戻り値
- Return
(void型)
文法的定義
- Signature
void setComponentColor( int componentID, int fgRGBA[ ], int bgRGBA[ ] )
関数名
- Name
setComponentColor
役割
- Role
GUIコンポーネントの色を設定します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
(int[]型) fgRGBA : 前景色の色成分を格納する配列( [0]が赤、[1]が緑、[2]が青、[3]がαで、各色 0 - 255 )
(int[]型) bgRGBA : 前景色の色成分を格納する配列( [0]が赤、[1]が緑、[2]が青、[3]がαで、各色 0 - 255 )
戻り値
- Return
(void型)
文法的定義
- Signature
macro getComponentColor( int componentID )
関数名
- Name
getComponentColor
役割
- Role
GUIコンポーネントの色を返します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
戻り値
- Return
(int[][]型)色色成分を格納する配列( [0][0]が前景の赤、[0][1]が前景の緑、[0][2]が前景の青、[0][3]が前景のα、[1][0]が背景の赤、[1][1]が背景の緑、[1][2]が背景の青、[1][3]が背景のαで、各色 0 - 255 )
文法的定義
- Signature
void setComponentText( int componentID, string text )
関数名
- Name
setComponentText
役割
- Role
GUIコンポーネントのテキスト情報を設定します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
(string型) text : テキスト情報
戻り値
- Return
(void型)
文法的定義
- Signature
string getComponentText( int componentID )
関数名
- Name
getComponentText
役割
- Role
GUIコンポーネントのテキスト情報を取得します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
戻り値
- Return
(string型) text テキスト情報
文法的定義
- Signature
void setComponentText( int componentID, string text[ ], int option )
関数名
- Name
setComponentText
役割
- Role
GUIコンポーネントのテキスト情報を設定します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
(string[]型) text : テキスト情報
(int型) option : オプション( LISTEDSELECTED
戻り値
- Return
(void型)
文法的定義
- Signature
string[ ] getComponentText( int componentID, int option )
関数名
- Name
getComponentText
役割
- Role
GUIコンポーネントのテキスト情報を設定します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
(int型) option : オプション( LISTEDSELECTED
戻り値
- Return
(string[]型) テキスト情報
文法的定義
- Signature
void setComponentImage( int componentID, int graphicsID )
関数名
- Name
setComponentImage
役割
- Role
GUIコンポーネントの画像を設定します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
(int型) graphicsID : 画像を格納するグラフィックスデータのID
戻り値
- Return
(void型)
文法的定義
- Signature
int getComponentGraphics( int componentID )
関数名
- Name
getComponentGraphics
役割
- Role
GUIコンポーネントの画像を格納する、グラフィックスデータのIDを返します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
戻り値
- Return
(int型) graphicsID 画像を格納するグラフィックスデータのID
文法的定義
- Signature
void showComponent( int componentID )
関数名
- Name
showComponent
役割
- Role
GUIコンポーネントの非表示にします。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
戻り値
- Return
(void型)
文法的定義
- Signature
void hideComponent( int componentID )
関数名
- Name
hideComponent
役割
- Role
GUIコンポーネントの表示します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
戻り値
- Return
(void型)
文法的定義
- Signature
void setComponentFont( int componentID, string name )
関数名
- Name
setComponentFont
役割
- Role
GUIコンポーネントのフォントを設定します
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
(string型) name : フォント名(処理系依存、環境依存)
戻り値
- Return
(void型)
文法的定義
- Signature
void setComponentFontSize( int componentID, int size )
関数名
- Name
setComponentFontSize
役割
- Role
GUIコンポーネントのフォントサイズを設定します
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
(int型) size : フォントサイズ
戻り値
- Return
(void型)
文法的定義
- Signature
void setComponentFontBold( int componentID, bool isBold )
関数名
- Name
setComponentFontBold
役割
- Role
GUIコンポーネントのフォントを太字に設定または解除します。イタリック体と併用はできません。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
(bool型) isBold : 太字設定
戻り値
- Return
(void型)
文法的定義
- Signature
void setComponentFontItalic( int componentID, bool isItalic )
関数名
- Name
setComponentFontItalic
役割
- Role
GUIコンポーネントのフォントをイタリック体に設定または解除します。太字と併用はできません。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
(bool型) isItalic : イタリック体設定
戻り値
- Return
(void型)
文法的定義
- Signature
void setComponentFloat( int componentID, float value )
関数名
- Name
setComponentFloat
役割
- Role
GUIコンポーネントが保持する float 型の値を設定します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
(float型) value : 保持値
戻り値
- Return
(void型)
文法的定義
- Signature
float getComponentFloat( int componentID )
関数名
- Name
getComponentFloat
役割
- Role
GUIコンポーネントが保持する float 型の値を返します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
戻り値
- Return
(float型) 保持値
文法的定義
- Signature
void setComponentInt( int componentID, int value )
関数名
- Name
setComponentInt
役割
- Role
GUIコンポーネントが保持する int 型の値を設定します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
(int型) value : 保持値
戻り値
- Return
(void型)
文法的定義
- Signature
int getComponentInt( int componentID )
関数名
- Name
getComponentInt
役割
- Role
GUIコンポーネントが保持する int 型の値を返します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
戻り値
- Return
(int型) 保持値
文法的定義
- Signature
void setComponentBool( int componentID, bool state )
関数名
- Name
setComponentBool
役割
- Role
GUIコンポーネントが保持する bool 型の値を設定します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
value : 保持値
戻り値
- Return
(void型)
文法的定義
- Signature
bool getComponentBool( int componentID )
関数名
- Name
getComponentBool
役割
- Role
GUIコンポーネントが保持する bool 型の値を返します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
戻り値
- Return
(bool型) 保持値
文法的定義
- Signature
void setComponentString( int componentID, string text )
関数名
- Name
setComponentString
役割
- Role
GUIコンポーネントが保持する string 型の値を設定します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
value : 保持値
戻り値
- Return
(void型)
文法的定義
- Signature
string getComponentString( int componentID )
関数名
- Name
getComponentString
役割
- Role
GUIコンポーネントが保持する string 型の値を返します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
戻り値
- Return
(string型) 保持値
文法的定義
- Signature
void setComponentStringArray( int componentID, string text[ ], int option )
関数名
- Name
setComponentStringArray
役割
- Role
GUIコンポーネントが保持する string 型配列の値を設定します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
value : 保持値
(int型) option : オプション( LISTEDSELECTED
戻り値
- Return
(void型)
文法的定義
- Signature
string[ ] getComponentStringArray( int componentID, int option )
関数名
- Name
getComponentStringArray
役割
- Role
GUIコンポーネントが保持する string 型配列の値を返します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
(int型) option : オプション( LISTEDSELECTED
戻り値
- Return
(string[]型) 保持値
文法的定義
- Signature
void setComponentIntArray( int componentID, int value[ ] )
関数名
- Name
setComponentIntArray
役割
- Role
GUIコンポーネントが保持する int 型配列の値を設定します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
(int[]型) value : 保持値
戻り値
- Return
(void型)
文法的定義
- Signature
int[ ] getComponentIntArray( int componentID )
関数名
- Name
getComponentIntArray
役割
- Role
GUIコンポーネントが保持する int 型配列の値を返します。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
戻り値
- Return
(int[]型) 保持値
文法的定義
- Signature
void addComponent( int componentID, int parentComponentID )
関数名
- Name
addComponent
役割
- Role
GUIコンポーネントを、別のGUIコンポーネント上に配置します。VCSSL 3 以降では、より新しい mountComponent 関数がサポートされています。この関数は互換目的でサポートされています。
引数
- Arguments
(int型) componentID : 配置するGUIコンポーネントのID
(int型) componentID : 配置先GUIコンポーネントのID
戻り値
- Return
(void型)
文法的定義
- Signature
void removeComponent( int componentID, int parentComponentID )
関数名
- Name
removeComponent
役割
- Role
GUIコンポーネントを配置解除します。VCSSL 3 以降では、より新しい demountComponent 関数がサポートされています。この関数は互換目的でサポートされています。
引数
- Arguments
(int型) componentID : 配置解除するGUIコンポーネントのID
(int型) componentID : 現在の配置先GUIコンポーネントのID
戻り値
- Return
(void型)
文法的定義
- Signature
int newGraphicsLabel( int x, int y, int w, int h, int graphicsID )
関数名
- Name
newGraphicsLabel
役割
- Role
グラフィックスラベル( 描画内容や画像を表示するコンポーネント )を生成し、固有の識別番号(GUIコンポーネントID)を割り振って返します。VCSSL 3.3.24 以降では、より新しい newImageLabel 関数がサポートされています。この関数は互換目的でサポートされています。
引数
- Arguments
(int型) x : 左上頂点のX座標
(int型) y : 左上頂点のY座標
width : 幅
height : 高さ
(int型) graphicsID : 表示内容のグラフィックスID
戻り値
- Return
(int型) GUIコンポーネントID
文法的定義
- Signature
void setComponentGraphics( int componentID, int graphicsID )
関数名
- Name
setComponentGraphics
役割
- Role
GUIコンポーネントのグラフィックスデータIDを設定します。VCSSL 3.3.24 以降では、より新しい setComponentImage 関数がサポートされています。この関数は互換目的でサポートされています。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
(int型) graphicsID : グラフィックスデータID
戻り値
- Return
(void型)
文法的定義
- Signature
int getComponentGraphics( int componentID )
関数名
- Name
getComponentGraphics
役割
- Role
GUIコンポーネントのグラフィックスデータIDを返します。VCSSL 3.3.24 以降では、より新しい getComponentGraphics 関数がサポートされています。この関数は互換目的でサポートされています。
引数
- Arguments
(int型) componentID : 対象GUIコンポーネントのID
戻り値
- Return
(int型) graphicsID グラフィックスデータID
文法的定義
- Signature
void setComponentVisible( int componentID, bool b )
関数名
- Name
setComponentVisible
役割
- Role
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
戻り値
- Return
(void型)
文法的定義
- Signature
bool getComponentVisible( int componentID )
関数名
- Name
getComponentVisible
役割
- Role
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
戻り値
- Return
(bool型)
文法的定義
- Signature
int[ ] getComponentInnerSize( int componentID )
関数名
- Name
getComponentInnerSize
役割
- Role
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
戻り値
- Return
(int[]型)
文法的定義
- Signature
int[ ] getComponentInner( int componentID )
関数名
- Name
getComponentInner
役割
- Role
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
戻り値
- Return
(int[]型)
文法的定義
- Signature
void setComponentValue( int componentID, float value )
関数名
- Name
setComponentValue
役割
- Role
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
戻り値
- Return
(void型)
文法的定義
- Signature
float getComponentValue( int componentID )
関数名
- Name
getComponentValue
役割
- Role
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
戻り値
- Return
(float型)
文法的定義
- Signature
void setComponentState( int componentID, bool state )
関数名
- Name
setComponentState
役割
- Role
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
戻り値
- Return
(void型)
文法的定義
- Signature
bool getComponentState( int componentID )
関数名
- Name
getComponentState
役割
- Role
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
戻り値
- Return
(bool型)
文法的定義
- Signature
void setComponentValueFloat( int componentID, float value )
関数名
- Name
setComponentValueFloat
役割
- Role
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
戻り値
- Return
(void型)
文法的定義
- Signature
float getComponentValueFloat( int componentID )
関数名
- Name
getComponentValueFloat
役割
- Role
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
戻り値
- Return
(float型)
文法的定義
- Signature
void setComponentValueInt( int componentID, int value )
関数名
- Name
setComponentValueInt
役割
- Role
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
戻り値
- Return
(void型)
文法的定義
- Signature
int getComponentValueInt( int componentID )
関数名
- Name
getComponentValueInt
役割
- Role
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
戻り値
- Return
(int型)
文法的定義
- Signature
void setComponentValueBool( int componentID, bool state )
関数名
- Name
setComponentValueBool
役割
- Role
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
戻り値
- Return
(void型)
文法的定義
- Signature
bool getComponentValueBool( int componentID )
関数名
- Name
getComponentValueBool
役割
- Role
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
戻り値
- Return
(bool型)
文法的定義
- Signature
void setComponentValueString( int componentID, string text )
関数名
- Name
setComponentValueString
役割
- Role
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
戻り値
- Return
(void型)
文法的定義
- Signature
string getComponentValueString( int componentID )
関数名
- Name
getComponentValueString
役割
- Role
この関数の使用は推奨されません。この関数は、互換目的でサポートされています。
戻り値
- Return
(string型)

イベントハンドラ - Event Handler

文法的定義
- Signature
void onWindowOpen( int componentID )
関数名
- Name
onWindowOpen
役割
- Role
ウィンドウが開いた際にコールされます。
引数
- Arguments
(int型) componentID : イベント発生元コンポーネントのID
戻り値
- Return
(void型)
文法的定義
- Signature
void onWindowClose( int componentID )
関数名
- Name
onWindowClose
役割
- Role
ウィンドウが閉じられた際にコールされます。
引数
- Arguments
(int型) componentID : イベント発生元コンポーネントのID
戻り値
- Return
(void型)
文法的定義
- Signature
void onWindowMove( int componentID, int x, int y )
関数名
- Name
onWindowMove
役割
- Role
ウィンドウが動かされた際にコールされます。
引数
- Arguments
(int型) componentID : イベント発生元コンポーネントのID
(int型) x : ウィンドウ左端頂点のX座標
(int型) y : ウィンドウ左端頂点のY座標
戻り値
- Return
(void型)
文法的定義
- Signature
void onWindowResize( int componentID, int width, int height )
関数名
- Name
onWindowResize
役割
- Role
ウィンドウがリサイズされた際にコールされます。
引数
- Arguments
(int型) componentID : イベント発生元コンポーネントのID
x : ウィンドウ左端頂点のX座標
y : ウィンドウ左端頂点のY座標
戻り値
- Return
(void型)
文法的定義
- Signature
void onWindowShow( int componentID )
関数名
- Name
onWindowShow
役割
- Role
ウィンドウが可視化された際にコールされます。
引数
- Arguments
(int型) componentID : イベント発生元コンポーネントのID
戻り値
- Return
(void型)
文法的定義
- Signature
void onWindowHide( int componentID )
関数名
- Name
onWindowHide
役割
- Role
ウィンドウが不可視化された際にコールされます。
引数
- Arguments
(int型) componentID : イベント発生元コンポーネントのID
戻り値
- Return
(void型)
文法的定義
- Signature
void onButtonClick( int componentID, string text )
関数名
- Name
onButtonClick
役割
- Role
ボタンが押された際にコールされます。
引数
- Arguments
(int型) componentID : イベント発生元コンポーネントのID
(string型) text : ボタンに表示されているテキスト
戻り値
- Return
(void型)
文法的定義
- Signature
void onSelectFieldClick( int componentID, string text )
関数名
- Name
onSelectFieldClick
役割
- Role
セレクトフィールドの項目が選択された際にコールされます。
引数
- Arguments
(int型) componentID : イベント発生元コンポーネントのID
(string型) text : 選択された項目のテキスト
戻り値
- Return
(void型)
文法的定義
- Signature
void onCheckBoxClick( int componentID, bool value )
関数名
- Name
onCheckBoxClick
役割
- Role
チェックボックスの項目が選択または解除された際にコールされます。
引数
- Arguments
(int型) componentID : イベント発生元コンポーネントのID
vakue : 選択された場合はtrue、解除された場合はfalse
戻り値
- Return
(void型)
文法的定義
- Signature
void onSliderMove( int componentID, int value )
関数名
- Name
onSliderMove
役割
- Role
int値のスライダーが操作された際にコールされます。
引数
- Arguments
(int型) componentID : イベント発生元コンポーネントのID
(int型) value : スライダーの値
戻り値
- Return
(void型)
文法的定義
- Signature
void onSliderMove( int componentID, float value )
関数名
- Name
onSliderMove
役割
- Role
float値のスライダーが操作された際にコールされます。
引数
- Arguments
(int型) componentID : イベント発生元コンポーネントのID
(float型) value : スライダーの値
戻り値
- Return
(void型)
文法的定義
- Signature
void onKeyDown( int componentID, string keyLabel )
関数名
- Name
onKeyDown
役割
- Role
キーボードのキーが押された際にコールされます。
引数
- Arguments
(int型) componentID : イベント発生元コンポーネントのID
(string型) keyLabel : キーのラベル文字列
戻り値
- Return
(void型)
文法的定義
- Signature
void onKeyDown( int componentID, string keyConstant )
関数名
- Name
onKeyDown
役割
- Role
キーボードのキーが押された際にコールされます。
引数
- Arguments
(int型) componentID : イベント発生元コンポーネントのID
(string型) keyConstant : キーを区別する定数( KEY_A など )
戻り値
- Return
(void型)
文法的定義
- Signature
void onKeyUp( int componentID, string keyLabel )
関数名
- Name
onKeyUp
役割
- Role
キーボードのキーが離された際にコールされます。
引数
- Arguments
(int型) componentID : イベント発生元コンポーネントのID
(string型) keyLabel : キーのラベル文字列
戻り値
- Return
(void型)
文法的定義
- Signature
void onKeyUp( int componentID, string keyConstant )
関数名
- Name
onKeyUp
役割
- Role
キーボードのキーが離された際にコールされます。
引数
- Arguments
(int型) componentID : イベント発生元コンポーネントのID
(string型) keyConstant : キーを区別する定数( KEY_A など )
戻り値
- Return
(void型)
文法的定義
- Signature
void onMouseDown( int componentID, int x, int y, int button )
関数名
- Name
onMouseDown
役割
- Role
マウスのボタンが押された際にコールされます。
引数
- Arguments
(int型) componentID : イベント発生元コンポーネントのID
(int型) x : マウスのX座標
(int型) y : マウスのX座標
(int型) button : マウスのボタンを区別する定数( MOUSE_RIGHT または MOUSE_LEFT もしくは MOUSE_MIDDLE
戻り値
- Return
(void型)
文法的定義
- Signature
void onMouseUp( int componentID, int x, int y, int button )
関数名
- Name
onMouseUp
役割
- Role
マウスのボタンが離された際にコールされます。
引数
- Arguments
(int型) componentID : イベント発生元コンポーネントのID
(int型) x : マウスのX座標
(int型) y : マウスのX座標
(int型) button : マウスのボタンを区別する定数( MOUSE_RIGHT または MOUSE_LEFT もしくは MOUSE_MIDDLE
戻り値
- Return
(void型)
文法的定義
- Signature
void onMouseClick( int componentID, int x, int y, int button, int count )
関数名
- Name
onMouseClick
役割
- Role
マウスがクリックされた際にコールされます。
引数
- Arguments
(int型) componentID : イベント発生元コンポーネントのID
(int型) x : マウスのX座標
(int型) y : マウスのX座標
(int型) button : マウスのボタンを区別する定数( MOUSE_RIGHT または MOUSE_LEFT もしくは MOUSE_MIDDLE
(int型) count : クリック数( シングルクリックなら 1、ダブルクリックなら 2 )
戻り値
- Return
(void型)
文法的定義
- Signature
void onMouseClick( int componentID, int x, int y, int button, int count )
関数名
- Name
onMouseClick
役割
- Role
マウスがドラッグされた際にコールされます。
引数
- Arguments
(int型) componentID : イベント発生元コンポーネントのID
(int型) x : マウスのX座標
(int型) y : マウスのX座標
(int型) button : マウスのボタンを区別する定数( MOUSE_RIGHT または MOUSE_LEFT もしくは MOUSE_MIDDLE
戻り値
- Return
(void型)
文法的定義
- Signature
void onMouseScroll( int componentID, int degree )
関数名
- Name
onMouseScroll
役割
- Role
マウスホイールがスクロールされた際にコールされます。
引数
- Arguments
(int型) componentID : イベント発生元コンポーネントのID
(int型) degree : スクロール数
戻り値
- Return
(void型)