class: ewol::widget::CheckBox
Description:
Constructor and Destructor:
+ CheckBox (const std::string & newLabel);
+ virtual ~CheckBox (void );
Synopsis:
+ const char* const eventClicked;
+ void init (ewol::widget::Manager & _widgetManager);
+ void setLabel (std::string newLabel);
+ void setValue (bool val);
+ bool getValue (void );
# virtual void onDraw (void );
+ virtual void calculateMinMaxSize (void );
+ virtual void onRegenerateDisplay (void );
+ virtual bool onEventInput (const ewol::event::Input & _event);
+ virtual bool onEventEntry (const ewol::event::Entry & _event);
Object Hierarchy:
+ewol::Object
+--> +ewol::Widget
+--> ewol::widget::CheckBox
Detail:
eventClicked
+ const char* const eventClicked;
init
+ void init (ewol::widget::Manager & _widgetManager);
CheckBox
+ CheckBox (const std::string & newLabel);
~CheckBox
+ virtual ~CheckBox (void );
setLabel
+ void setLabel (std::string newLabel);
setValue
+ void setValue (bool val);
getValue
+ bool getValue (void );
onDraw
# virtual void onDraw (void );
Common widget drawing function (called by the drawing thread [Android, X11, ...])
calculateMinMaxSize
+ virtual void calculateMinMaxSize (void );
calculate the minimum and maximum size (need to estimate expend properties of the widget)
Note: : INTERNAL EWOL SYSTEM
onRegenerateDisplay
+ virtual void onRegenerateDisplay (void );
Event generated when a redraw is needed
onEventInput
+ virtual bool onEventInput (const ewol::event::Input & _event);
Event on an input of this Widget (finger, mouse, stilet)
Parameter [input]: | _event | Event properties |
Return: | | true the event is used<br/>false the event is not used |
onEventEntry
+ virtual bool onEventEntry (const ewol::event::Entry & _event);
Entry event.
represent the physical event :
- Keyboard (key event and move event)
- Accelerometer
- Joystick
Parameter [input]: | _event | Event properties |
Return: | | true if the event has been used<br/>false if the event has not been used |