class: ewol::widget::Scroll


enum:

Constructor and Destructor:

#                                        Scroll                 ();
+ virtual ~Scroll ();

Synopsis:

#         ewol::object::ParamRange<vec2> m_limit;
# void init (const std::string & _shaperName);
+ DECLARE_WIDGET_FACTORY (Scroll ,
"Scroll" );
+ void setLimit (const vec2 & _limit);
+ const vec2 & getLimit () const;
+ void calculateMinMaxSize ();
+ virtual void onRegenerateDisplay ();
+ virtual bool onEventInput (const ewol::event::Input & _event);
+ virtual void systemDraw (const ewol::DrawProperty & _displayProp);
+ virtual std::shared_ptr<ewol::Widget> getWidgetAtPos (const vec2 & _pos);
# virtual void onDraw ();
# 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::Container
+--> ewol::widget::Scroll

Detail:

m_limit

# ewol::object::ParamRange<vec2> m_limit;



Scroll

#  Scroll ();



init

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



DECLARE_WIDGET_FACTORY

+  DECLARE_WIDGET_FACTORY (Scroll ,
"Scroll" );



~Scroll

+ virtual  ~Scroll ();



setLimit

+ void setLimit (const vec2 & _limit);
set the limit of scrolling
Note: This permit to scoll element upper the end of the display


getLimit

+ const vec2 & getLimit () const;
get the limit of scrolling


calculateMinMaxSize

+ 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)


systemDraw

+ virtual void systemDraw (const ewol::DrawProperty & _displayProp);
{SYSTEM} extern interface to request a draw ... (called by the drawing thread [Android, X11, ...]) This function generate a clipping with the viewport openGL system. Like this a widget draw can not draw over an other widget
Note: This function is virtual for the scrolled widget, and the more complicated openGl widget
Note: : INTERNAL EWOL SYSTEM


getWidgetAtPos

+ virtual std::shared_ptr<ewol::Widget> getWidgetAtPos (const vec2 & _pos);
get the widget at the specific windows absolute position
Note: : INTERNAL EWOL SYSTEM


onDraw

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


onParameterChangeValue

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