#include <optionComponent.h>


Classes | |
| class | optionLine |
| オプション管理の行情報の管理クラス More... | |
Public Member Functions | |
| DrawSurface * | createSurface (Uint16 *text, unsigned long fore, unsigned long back) |
| void | createLabel (optionLine::text_t &text) |
| void | createButton (optionLine::text_t &text) |
| OptionComponent (TTF_Draw &ttf_resource, int fontSize, LabelComponent *selectedIcon) | |
| bool | draw (unsigned long ticks, const UserInput &ui) |
| コンポーネントの描画 | |
| void | setFontSize (int size) |
| void | setBaseOffset (const VXV::Grid &offset) |
| void | setColor (unsigned long fore, unsigned long back=Black, unsigned long focused=Blue) |
| void | activate (void) |
| void | setIconRow (int row) |
| void | setSelectedIndex (unsigned int row, unsigned int nth) |
| int | getSelected (unsigned int row) |
| bool | isDecided (void) |
| int | getDecidedRow (void) |
| void | beginFocus (void) |
| void | endFocus (void) |
Public Attributes | |
| std::vector< optionLine * > | lines |
Friends | |
| class | optionLine |
Definition at line 23 of file optionComponent.h.
| bool OptionComponent::draw | ( | unsigned long | ticks, | |
| const UserInput & | ui | |||
| ) | [virtual] |
コンポーネントの描画
コンポーネントを描画する
| ticks | [i] 時刻印 [msec]を渡す。ただし、これ以外の情報を渡してもよい | |
| ui | [i] ウィンドウへのユーザ入力情報 |
| true | 正常 | |
| false | 以後の描画は必要ない |
Implements ComponentInterface.
Definition at line 183 of file optionComponent.cpp.
References ButtonComponent::draw(), LabelComponent::draw(), ComponentInterface::h, ComponentInterface::position, UserInput::sdl_keys_sys, UserInput::sdl_mods_sys, ComponentInterface::setPosition(), and ComponentInterface::w.
1.5.7.1