class: ewol::widget::ColorBar


Description:



Constructor and Destructor:

#                                            ColorBar               ();
+ virtual ~ColorBar ();

Synopsis:

+         ewol::object::Signal<etk::Color<>> signalChange;
# void init ();
+ DECLARE_WIDGET_FACTORY (ColorBar ,
"ColorBar" );
+ etk::Color<> getCurrentColor ();
+ void setCurrentColor (etk::Color<> _newOne);
# virtual void onDraw ();
+ virtual void calculateMinMaxSize ();
+ virtual void onRegenerateDisplay ();
+ virtual bool onEventInput (const ewol::event::Input & _event);

Object Hierarchy:

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

Detail:

signalChange

+ ewol::object::Signal<etk::Color<>> signalChange;



ColorBar

#  ColorBar ();



init

# void init ();



DECLARE_WIDGET_FACTORY

+  DECLARE_WIDGET_FACTORY (ColorBar ,
"ColorBar" );



~ColorBar

+ virtual  ~ColorBar ();



getCurrentColor

+ etk::Color<> getCurrentColor ();



setCurrentColor

+ void setCurrentColor (etk::Color<> _newOne);



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)