#include <buttonComponent.h>


Public Types | |
| enum | { Auto, Normal, Focused, Clicked } |
Public Member Functions | |
| ButtonComponent (const VXV::Rect &range) | |
| 大きさ指定のコンストラクタ | |
| ButtonComponent (SurfaceInterface *normal) | |
| サーフェス指定のコンストラクタ | |
| bool | draw (unsigned long ticks, const UserInput &ui) |
| コンポーネントの描画 | |
| void | setDrawSurface (int mode) |
| 表示サーフェスの強制指定 | |
| void | setNormalSurface (SurfaceInterface *normal) |
| 基本サーフェスを指定 | |
| void | setFocusedSurface (SurfaceInterface *focused) |
| フォーカス時サーフェスを指定 | |
| void | setClickedSurface (SurfaceInterface *clicked) |
| クリック時サーフェスを指定 | |
| bool | isFocused (void) |
| フォーカスがあるか | |
| bool | isPressed (void) |
| 押されたか | |
Definition at line 21 of file buttonComponent.h.
| ButtonComponent::ButtonComponent | ( | const VXV::Rect & | range | ) |
大きさ指定のコンストラクタ
| range | [i] ボタンサイズ |
Definition at line 10 of file buttonComponent.cpp.
References VXV::Rect::h, ComponentInterface::h, ComponentInterface::position, VXV::Rect::w, and ComponentInterface::w.
| ButtonComponent::ButtonComponent | ( | SurfaceInterface * | normal | ) |
サーフェス指定のコンストラクタ
| normal | [i] 基本サーフェス |
Definition at line 21 of file buttonComponent.cpp.
References VXV::Rect::h, ComponentInterface::h, ComponentInterface::position, VXV::Rect::w, and ComponentInterface::w.
| bool ButtonComponent::draw | ( | unsigned long | ticks, | |
| const UserInput & | ui | |||
| ) | [virtual] |
コンポーネントの描画
コンポーネントを描画する
| ticks | [i] 時刻印 [msec]を渡す。ただし、これ以外の情報を渡してもよい | |
| ui | [i] ウィンドウへのユーザ入力情報 |
| true | 正常 | |
| false | 以後の描画は必要ない |
Implements ComponentInterface.
Definition at line 36 of file buttonComponent.cpp.
References SurfaceInterface::draw(), SurfaceInterface::h, VXV::Rect::h, UserInput::left_release, UserInput::mpos, ComponentInterface::position, SurfaceInterface::w, VXV::Rect::w, VXV::Grid::x, and VXV::Grid::y.
Referenced by OptionComponent::draw(), and ComboBoxComponent::draw().
| void ButtonComponent::setDrawSurface | ( | int | mode | ) |
| void ButtonComponent::setNormalSurface | ( | SurfaceInterface * | normal | ) |
| void ButtonComponent::setFocusedSurface | ( | SurfaceInterface * | focused | ) |
フォーカス時サーフェスを指定
| focused | [i] フォーカス時サーフェス |
Definition at line 102 of file buttonComponent.cpp.
Referenced by ComboBoxComponent::activate(), UserCreateScr::Initialize(), PracticeMenu::Initialize(), NetworkMenu::Initialize(), and FirstMenu::Initialize().
| void ButtonComponent::setClickedSurface | ( | SurfaceInterface * | clicked | ) |
クリック時サーフェスを指定
| clicked | [i] クリック時サーフェス |
Definition at line 107 of file buttonComponent.cpp.
| bool ButtonComponent::isFocused | ( | void | ) |
| bool ButtonComponent::isPressed | ( | void | ) |
押されたか
Definition at line 127 of file buttonComponent.cpp.
Referenced by ComboBoxComponent::draw(), and UserCreateScr::MainLoop().
1.5.7.1