class: ewol::widget::WidgetScrooled


enum:

Constructor and Destructor:

+                                    WidgetScrooled              (void );
+ virtual ~WidgetScrooled (void );

Synopsis:

#         vec2                       m_originScrooled;
# vec2 m_maxSize;
# float m_limitScrolling;
# virtual void onDraw (void );
+ virtual void onRegenerateDisplay (void );
+ virtual bool onEventInput (const ewol::event::Input & _event);
+ virtual void systemDraw (const ewol::DrawProperty & _displayProp);
# void setScrollingSize (float _nbPixel);
# void scroolingMode (enum scrollingMode _newMode);
# void setMaxSize (const vec2 & _localSize);
# void setScrollingPositionDynamic (vec2 _borderWidth,
const vec2 & _currentPosition,
bool _center);
# void setLimitScrolling (float _poucentageLimit);

Object Hierarchy:

+ewol::Object
+--> +ewol::Widget
+--> ewol::widget::WidgetScrooled
+--> ewol::widget::List
+--> ewol::widget::ParameterList

Detail:

m_originScrooled

# vec2 m_originScrooled;
pixel distance from the origin of the display (Bottum left)


m_maxSize

# vec2 m_maxSize;
Maximum size of the Widget ==> to display scrollbar


m_limitScrolling

# float m_limitScrolling;
Mimit scrolling represent the propertion of the minimel scrolling activate (0.2 ==> 20% migt all time be visible) mode of management of the scrooling


WidgetScrooled

+  WidgetScrooled (void );
Scroll Widget main constructor to be herited from an other widget (this is not a stand-alone widget)


~WidgetScrooled

+ virtual  ~WidgetScrooled (void );
Scroll widget destructor.


onDraw

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


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)


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


setScrollingSize

# void setScrollingSize (float _nbPixel);
For mouse event when we have a scrolling UP and dows, specify the number of pixel that we scrooled


scroolingMode

# void scroolingMode (enum scrollingMode _newMode);
Specify the mode of scrolling for this windows


setMaxSize

# void setMaxSize (const vec2 & _localSize);
set the specific mawimum size of the widget


setScrollingPositionDynamic

# void setScrollingPositionDynamic (vec2 _borderWidth,
const vec2 & _currentPosition,
bool _center);
Request a specific position for the scrolling of the current windows.


setLimitScrolling

# void setLimitScrolling (float _poucentageLimit);
set the scrolling limit when arriving at he end of the widget