#include <menuComponent.h>


Classes | |
| class | item_t |
Public Member Functions | |
| bool | draw (unsigned long ticks, const UserInput &ui) |
| コンポーネントの描画 | |
| void | add (ButtonComponent *button) |
| ボタンコンポーネントの登録 | |
| void | addIcon (LabelComponent *label) |
| 選択用アイコンの登録 | |
| void | setOffset (const VXV::Rect &offset) |
| 項目間のオフセット | |
| void | setIconOffset (const VXV::Rect &offset) |
| 選択用アイコンのオフセット | |
| void | setSelectedIndex (int index) |
| 選択項目の強制指定 | |
| void | activate (bool on) |
| 描画 | |
| void | hide (bool on) |
| 表示・非表示の切替え | |
| void | disable (bool on) |
| 入力の許可・非許可 | |
| void | defaultSelection (bool on) |
| 非選択状態を許すかどうか | |
| void | changeKeySettings (bool set_default) |
| 横メニュー用のキーバインドに変更 | |
| bool | isDecided (void) |
| 項目が選択されているかどうか | |
| void | setNowIndex (int index) |
| 項目の強制選択 | |
| int | getNowIndex (void) |
| 選択されている項目番号の取得 | |
| void | beginFocus (void) |
| void | endFocus (void) |
| void | setIndexActive (int index, bool on) |
Definition at line 21 of file menuComponent.h.
| bool MenuComponent::draw | ( | unsigned long | ticks, | |
| const UserInput & | ui | |||
| ) | [virtual] |
コンポーネントの描画
コンポーネントを描画する
| ticks | [i] 時刻印 [msec]を渡す。ただし、これ以外の情報を渡してもよい | |
| ui | [i] ウィンドウへのユーザ入力情報 |
| true | 正常 | |
| false | 以後の描画は必要ない |
Implements ComponentInterface.
Definition at line 56 of file menuComponent.cpp.
References LabelComponent::draw(), VXV::Rect::h, ComponentInterface::position, UserInput::sdl_keys_sys, UserInput::sdl_mods_sys, ComponentInterface::setPosition(), UserInput::state, VXV::Rect::w, VXV::Grid::x, and VXV::Grid::y.
Referenced by ComboBoxComponent::draw().
| void MenuComponent::add | ( | ButtonComponent * | button | ) |
ボタンコンポーネントの登録
| button | [i] ボタンコンポーネント |
Definition at line 154 of file menuComponent.cpp.
References VXV::Rect::h, and ComponentInterface::h.
Referenced by ComboBoxComponent::activate(), UserCreateScr::Initialize(), PracticeMenu::Initialize(), NetworkMenu::Initialize(), and FirstMenu::Initialize().
| void MenuComponent::addIcon | ( | LabelComponent * | label | ) |
選択用アイコンの登録
| label | [i] ラベルコンポーネント |
Definition at line 164 of file menuComponent.cpp.
Referenced by PracticeMenu::Initialize(), NetworkMenu::Initialize(), and FirstMenu::Initialize().
| void MenuComponent::setOffset | ( | const VXV::Rect & | offset | ) |
項目間のオフセット
| offset | [i] 項目間のオフセット |
Definition at line 169 of file menuComponent.cpp.
Referenced by UserCreateScr::Initialize(), PracticeMenu::Initialize(), NetworkMenu::Initialize(), and FirstMenu::Initialize().
| void MenuComponent::setIconOffset | ( | const VXV::Rect & | offset | ) |
選択用アイコンのオフセット
| offset | [i] 項目間のオフセット |
Definition at line 174 of file menuComponent.cpp.
Referenced by PracticeMenu::Initialize(), NetworkMenu::Initialize(), and FirstMenu::Initialize().
| void MenuComponent::setSelectedIndex | ( | int | index | ) |
選択項目の強制指定
| index | [i] 選択項目の番号 |
Definition at line 179 of file menuComponent.cpp.
| void MenuComponent::activate | ( | bool | on | ) |
描画
| on | [i] 描画するときに true |
Definition at line 186 of file menuComponent.cpp.
References VXV::Rect::h, ComponentInterface::h, VXV::Rect::w, and ComponentInterface::w.
Referenced by ComboBoxComponent::activate(), ComboBoxComponent::draw(), UserCreateScr::Initialize(), PracticeMenu::Initialize(), NetworkMenu::Initialize(), FirstMenu::Initialize(), and UserCreateScr::MainLoop().
| void MenuComponent::hide | ( | bool | on | ) |
表示・非表示の切替え
| on | [i] 表示する場合に true |
Definition at line 210 of file menuComponent.cpp.
Referenced by ComboBoxComponent::activate(), and ComboBoxComponent::draw().
| void MenuComponent::disable | ( | bool | on | ) |
| void MenuComponent::defaultSelection | ( | bool | on | ) |
非選択状態を許すかどうか
| on | [i] 常に選択状態になるようにする場合 true |
Definition at line 219 of file menuComponent.cpp.
Referenced by ComboBoxComponent::activate(), UserCreateScr::Initialize(), and UserCreateScr::MainLoop().
| void MenuComponent::changeKeySettings | ( | bool | set_default | ) |
横メニュー用のキーバインドに変更
| set_default | [i] 縦型メニューの場合に true |
Definition at line 37 of file menuComponent.cpp.
Referenced by UserCreateScr::Initialize().
| bool MenuComponent::isDecided | ( | void | ) |
項目が選択されているかどうか
Definition at line 227 of file menuComponent.cpp.
Referenced by ComboBoxComponent::draw(), UserCreateScr::MainLoop(), PracticeMenu::MainLoop(), NetworkMenu::MainLoop(), and FirstMenu::MainLoop().
| void MenuComponent::setNowIndex | ( | int | index | ) |
項目の強制選択
| index | [i] 項目番号 |
Definition at line 232 of file menuComponent.cpp.
Referenced by UserCreateScr::MainLoop(), and ComboBoxComponent::setNowIndex().
| int MenuComponent::getNowIndex | ( | void | ) |
選択されている項目番号の取得
Definition at line 236 of file menuComponent.cpp.
Referenced by ComboBoxComponent::draw(), UserCreateScr::MainLoop(), PracticeMenu::MainLoop(), NetworkMenu::MainLoop(), and FirstMenu::MainLoop().
1.5.7.1