class: ewol::widget::ButtonColor
Description:
Constructor and Destructor:
# ButtonColor ();
+ virtual ~ButtonColor ();
Synopsis:
+ ewol::object::Signal<etk::Color<>> signalChange;
# void init (etk::Color<> _baseColor,
std::string _shaperName);
+ DECLARE_WIDGET_FACTORY (ButtonColor ,
"ButtonColor" );
+ void setShaperName (std::string _shaperName);
# ewol::object::Param<etk::Color<>> m_textColorFg;
+ const etk::Color<> & getValue ();
+ void setValue (const etk::Color<> & _color);
# virtual void onDraw ();
+ virtual void calculateMinMaxSize ();
+ virtual void onRegenerateDisplay ();
+ virtual bool onEventInput (const ewol::event::Input & _event);
+ virtual void onParameterChangeValue (const ewol::object::ParameterRef & _paramPointer);
Object Hierarchy:
+std::enable_shared_from_this<Object>
+ewol::object::ParameterList
+ewol::object::SignalList
+--> +ewol::Object
+--> +ewol::Widget
+--> ewol::widget::ButtonColor
Detail:
signalChange
+ ewol::object::Signal<etk::Color<>> signalChange;
ButtonColor
# ButtonColor ();
Main constructor.
Parameter [input]: | _baseColor | basic displayed color. |
Parameter [input]: | _shaperName | The new shaper filename. |
init
# void init (etk::Color<> _baseColor,
std::string _shaperName);
DECLARE_WIDGET_FACTORY
+ DECLARE_WIDGET_FACTORY (ButtonColor ,
"ButtonColor" );
~ButtonColor
+ virtual ~ButtonColor ();
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. |
m_textColorFg
# ewol::object::Param<etk::Color<>> m_textColorFg;
Current color.
getValue
+ const etk::Color<> & getValue ();
get the current color of the color selection widget
Return: | | The current color |
setValue
+ void setValue (const etk::Color<> & _color);
Specify the current color.
Parameter [input]: | _color | The new display color. |
onDraw
# virtual void onDraw ();
Common widget drawing function (called by the drawing thread [Android, X11, ...])
calculateMinMaxSize
+ virtual void calculateMinMaxSize ();
calculate the minimum and maximum size (need to estimate expend properties of the widget)
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)
Parameter [input]: | _event | Event properties |
Return: | | true the event is used<br/>false the event is not used |
onParameterChangeValue
+ virtual void onParameterChangeValue (const ewol::object::ParameterRef & _paramPointer);