|
| | Push_button (Label *released) |
| | コンストラクタ More...
|
| |
|
void | draw (void) |
| |
|
SizeF | size (void) const |
| |
|
void | set_alpha (double alpha) |
| |
|
void | set_color_strength (double ratio) |
| |
|
void | update (void) |
| |
| bool | set_state (Button::state_t state) |
| | ボタンの状態を設定する More...
|
| |
|
Button::state_t | state (void) const |
| |
|
void | set_decided (bool decide) |
| |
|
bool | is_decided (void) const |
| |
|
void | add_label (Label *label, Button::state_t state, const PointF &draw_offset=hrk::PointF(0, 0)) |
| | Pressed, Focused のサーフェスを追加する
|
| |
|
void | set_toggle_enabled (bool enable) |
| |
|
virtual void | set_position (const PointF &position) |
| |
|
virtual PointF | position (void) const |
| |
|
virtual void | set_input_enabled (bool enable) |
| |
|
virtual bool | input_enabled (void) const |
| |
|
virtual double | width (void) const |
| |
|
virtual double | height (void) const |
| |
|
virtual RectF | rect (void) const |
| |
|
virtual double | set_align (double value, const unsigned char align) |
| |
|
| enum | state_t { Released = 0,
Pressed,
Focused,
Disabled
} |
| |
| Push_button::Push_button |
( |
Label * |
released | ) |
|
|
explicit |
コンストラクタ
通常のボタンサーフェスを登録します。
コンポーネントのサイズ計算には、ここで指定した Released サーフェスのサイズが利用されます。
| bool Push_button::set_state |
( |
Button::state_t |
state | ) |
|
|
virtual |
ボタンの状態を設定する
- Return values
-
| true | 成功 |
| false | 指定した state のサーフェスが登録されていない現在の state を返す |
Implements hrk::Button.
The documentation for this class was generated from the following files: