OptionComponent Class Reference

オプション設定用の項目を描画するクラス More...

#include <optionComponent.h>

Inheritance diagram for OptionComponent:

Inheritance graph
[legend]
Collaboration diagram for OptionComponent:

Collaboration graph
[legend]

List of all members.

Classes

class  optionLine
 オプション管理の行情報の管理クラス More...

Public Member Functions

DrawSurfacecreateSurface (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


Detailed Description

オプション設定用の項目を描画するクラス

Definition at line 23 of file optionComponent.h.


Member Function Documentation

bool OptionComponent::draw ( unsigned long  ticks,
const UserInput ui 
) [virtual]

コンポーネントの描画

コンポーネントを描画する

Parameters:
ticks [i] 時刻印 [msec]を渡す。ただし、これ以外の情報を渡してもよい
ui [i] ウィンドウへのユーザ入力情報
Return values:
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.


The documentation for this class was generated from the following files:

Generated on Mon Apr 13 22:52:07 2009 by  doxygen 1.5.7.1