趣味で作ってるロボット用ソフトウェア
 All Classes Files Functions Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
hrk::Check_box Class Reference
Inheritance diagram for hrk::Check_box:
Inheritance graph
[legend]
Collaboration diagram for hrk::Check_box:
Collaboration graph
[legend]

Public Member Functions

 Check_box (Button &check, const std::string &text, const Font *font=NULL)
 
void update (void)
 
void draw (void)
 
SizeF size (void) const
 
void set_alpha (double alpha)
 
void set_color_strength (double ratio)
 
bool set_state (state_t state)
 ボタンの状態を設定する More...
 
Button::state_t state (void) const
 
void set_decide_event (Event *event)
 
void set_text_offset (const PointF &offset)
 
void set_checked (bool checked)
 
bool is_checked (void) const
 
- Public Member Functions inherited from hrk::Component
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)
 

Additional Inherited Members

- Public Types inherited from hrk::Button
enum  state_t { Released = 0, Pressed, Focused, Disabled }
 

Detailed Description

Examples:
check_box_example.cpp.

Member Function Documentation

bool Check_box::set_state ( state_t  state)
virtual

ボタンの状態を設定する

Return values
true成功
false指定した state のサーフェスが登録されていない現在の state を返す

Implements hrk::Button.


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