class: ewol::widget::ButtonColor


Description:



Constructor and Destructor:

+                                    ButtonColor          (etk::Color<> _baseColor,
std::string _shaperName);
+ virtual ~ButtonColor (void );

Synopsis:

+         const char* const          eventChange;
+ void init (ewol::widget::Manager & _widgetManager);
+ void setShaperName (std::string _shaperName);
+ etk::Color<> getValue (void );
+ void setValue (etk::Color<> _color);
# virtual void onDraw (void );
+ virtual void calculateMinMaxSize (void );
+ virtual void onRegenerateDisplay (void );
+ virtual bool onEventInput (const ewol::event::Input & _event);
+ virtual void onReceiveMessage (const ewol::object::Message & _msg);

Object Hierarchy:

+ewol::Object
+--> +ewol::Widget
+--> ewol::widget::ButtonColor

Detail:

eventChange

+ const char* const eventChange;



init

+ void init (ewol::widget::Manager & _widgetManager);



ButtonColor

+  ButtonColor (etk::Color<> _baseColor,
std::string _shaperName);
Main constructor.


~ButtonColor

+ virtual  ~ButtonColor (void );
Main destructor.


setShaperName

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


getValue

+ etk::Color<> getValue (void );
get the current color of the color selection widget


setValue

+ void setValue (etk::Color<> _color);
Specify the current color.


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)


onReceiveMessage

+ virtual void onReceiveMessage (const ewol::object::Message & _msg);
Receive a message from an other Object with a specific eventId and data