class: ewol::widget::CheckBox


Description:



Constructor and Destructor:

#                                                        CheckBox               ();
+ virtual ~CheckBox ();

Synopsis:

+         ewol::object::Signal<void>                     signalPressed;
+ ewol::object::Signal<void> signalDown;
+ ewol::object::Signal<void> signalUp;
+ ewol::object::Signal<void> signalEnter;
+ ewol::object::Signal<bool> signalValue;
# void init (const std::string & _shaperName);
+ DECLARE_WIDGET_FACTORY (CheckBox ,
"CheckBox" );
+ void setShaperName (const std::string & _shaperName);
# ewol::object::Param<bool> m_value;
+ void setValue (bool _val);
+ bool getValue () const;
# void changeStatusIn (int32_t _newStatusId);
# void CheckStatus ();
# virtual void onDraw ();
# virtual void onParameterChangeValue (const ewol::object::ParameterRef & _paramPointer);
+ virtual void calculateMinMaxSize ();
+ virtual void calculateSize (const vec2 & _availlable);
+ virtual void onRegenerateDisplay ();
+ virtual bool onEventInput (const ewol::event::Input & _event);
+ virtual bool onEventEntry (const ewol::event::Entry & _event);
+ virtual void periodicCall (const ewol::event::Time & _event);

Object Hierarchy:

+std::enable_shared_from_this<Object>
+ewol::object::ParameterList
+ewol::object::SignalList
+--> +ewol::Object
+--> +ewol::Widget
+--> +ewol::widget::Container2
+--> ewol::widget::CheckBox

Detail:

signalPressed

+ ewol::object::Signal<void> signalPressed;



signalDown

+ ewol::object::Signal<void> signalDown;



signalUp

+ ewol::object::Signal<void> signalUp;



signalEnter

+ ewol::object::Signal<void> signalEnter;



signalValue

+ ewol::object::Signal<bool> signalValue;



CheckBox

#  CheckBox ();
Main checkbox constructor


init

# void init (const std::string & _shaperName);



DECLARE_WIDGET_FACTORY

+  DECLARE_WIDGET_FACTORY (CheckBox ,
"CheckBox" );



~CheckBox

+ virtual  ~CheckBox ();
main destructor.


setShaperName

+ void setShaperName (const std::string & _shaperName);
set the shaper name (use the contructer one this permit to not noad unused shaper)


m_value

# ewol::object::Param<bool> m_value;
Current state of the checkbox.


setValue

+ void setValue (bool _val);
set the current value of the checkbox (check or not)


getValue

+ bool getValue () const;
get the current button value.


changeStatusIn

# void changeStatusIn (int32_t _newStatusId);
internal system to change the property of the current status


CheckStatus

# void CheckStatus ();
update the status with the internal satte of the button ...


onDraw

# virtual void onDraw ();
Common widget drawing function (called by the drawing thread [Android, X11, ...])


onParameterChangeValue

# virtual void onParameterChangeValue (const ewol::object::ParameterRef & _paramPointer);



calculateMinMaxSize

+ virtual void calculateMinMaxSize ();
calculate the minimum and maximum size (need to estimate expend properties of the widget)
Note: : INTERNAL EWOL SYSTEM


calculateSize

+ virtual void calculateSize (const vec2 & _availlable);
Parent set the possible diplay size of the current widget whith his own possibilities By default this save the widget available size in the widget size
Note: : INTERNAL EWOL SYSTEM


onRegenerateDisplay

+ virtual void onRegenerateDisplay ();
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)


onEventEntry

+ virtual bool onEventEntry (const ewol::event::Entry & _event);
Entry event. represent the physical event : - Keyboard (key event and move event) - Accelerometer - Joystick


periodicCall

+ virtual void periodicCall (const ewol::event::Time & _event);
periodic call of this widget