#include <componentInterface.h>
Public Member Functions | |
virtual bool | draw (unsigned long ticks, const UserInput &ui)=0 |
コンポーネントの描画 | |
ComponentInterface * | setPosition (const VXV::Grid &pos, char align=VXV::Top|VXV::Left) |
描画位置の設定 | |
Public Attributes | |
int | w |
int | h |
VXV::Grid | position |
Definition at line 19 of file componentInterface.h.
virtual bool ComponentInterface::draw | ( | unsigned long | ticks, | |
const UserInput & | ui | |||
) | [pure virtual] |
コンポーネントの描画
コンポーネントを描画する
ticks | [i] 時刻印 [msec]を渡す。ただし、これ以外の情報を渡してもよい | |
ui | [i] ウィンドウへのユーザ入力情報 |
true | 正常 | |
false | 以後の描画は必要ない |
Implemented in ButtonComponent, CheckBoxComponent, ComboBoxComponent, DrawAreaComponent, LabelComponent, MenuComponent, MessageBoxComponent, OptionComponent, ScrollAreaComponent, TextInputComponent, and ViewComponent.
ComponentInterface * ComponentInterface::setPosition | ( | const VXV::Grid & | pos, | |
char | align = VXV::Top | VXV::Left | |||
) |
描画位置の設定
pos | [i] 描画位置 | |
align | [i] 位置揃え |
Definition at line 10 of file componentInterface.cpp.
References h, position, w, VXV::Grid::x, and VXV::Grid::y.
Referenced by OptionComponent::draw(), MenuComponent::draw(), ComboBoxComponent::draw(), CheckBoxComponent::draw(), ScreenTask::init(), UserCreateScr::Initialize(), PracticeMenu::Initialize(), NetworkMenu::Initialize(), FirstMenu::Initialize(), and TextDraw::TextDraw().
幅
Definition at line 21 of file componentInterface.h.
Referenced by MenuComponent::activate(), ComboBoxComponent::activate(), ButtonComponent::ButtonComponent(), CheckBoxComponent::CheckBoxComponent(), ComboBoxComponent::ComboBoxComponent(), OptionComponent::draw(), CheckBoxComponent::draw(), LabelComponent::LabelComponent(), setPosition(), and ViewComponent::ViewComponent().
高さ
Definition at line 22 of file componentInterface.h.
Referenced by MenuComponent::activate(), ComboBoxComponent::activate(), MenuComponent::add(), ButtonComponent::ButtonComponent(), CheckBoxComponent::CheckBoxComponent(), ComboBoxComponent::ComboBoxComponent(), OptionComponent::draw(), ComboBoxComponent::draw(), CheckBoxComponent::draw(), UserCreateScr::Initialize(), LabelComponent::LabelComponent(), setPosition(), and ViewComponent::ViewComponent().
位置
Definition at line 23 of file componentInterface.h.
Referenced by ButtonComponent::ButtonComponent(), CheckBoxComponent::CheckBoxComponent(), ComboBoxComponent::ComboBoxComponent(), ViewComponent::draw(), TextInputComponent::draw(), OptionComponent::draw(), MenuComponent::draw(), LabelComponent::draw(), ComboBoxComponent::draw(), CheckBoxComponent::draw(), ButtonComponent::draw(), LabelComponent::LabelComponent(), setPosition(), and ViewComponent::ViewComponent().