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

Public Types

enum  state_t { Released = 0, Pressed, Focused, Disabled }
 

Public Member Functions

virtual bool set_state (state_t state)=0
 ボタンの状態を設定する More...
 
virtual state_t state (void) const =0
 
- 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 void set_alpha (double alpha)=0
 
virtual void set_color_strength (double ratio)=0
 
virtual void update (void)
 
virtual void draw (void)=0
 
virtual SizeF size (void) const =0
 
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)
 

Detailed Description

Examples:
check_box_example.cpp.

Member Function Documentation

virtual bool hrk::Button::set_state ( state_t  state)
pure virtual

ボタンの状態を設定する

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

Implemented in hrk::Push_button, and hrk::Check_box.


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