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.
Parameter [input]: | _baseColor | basic displayed color. |
Parameter [input]: | _shaperName | The new shaper filename. |
~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).
Parameter [input]: | _shaperName | The new shaper filename. |
getValue
+ etk::Color<> getValue (void );
get the current color of the color selection widget
Return: | | The current color |
setValue
+ void setValue (etk::Color<> _color);
Specify the current color.
Parameter [input]: | _color | The new display 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)
Parameter [input]: | _event | Event properties |
Return: | | true the event is used<br/>false the event is not used |
onReceiveMessage
+ virtual void onReceiveMessage (const ewol::object::Message & _msg);
Receive a message from an other Object with a specific eventId and data
Parameter [input]: | _msg | Message handle |