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)
Parameter [input]: _event Event properties
Return: true the event is used<br/>false the event is not used
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
Parameter [input]: _displayProp properties of the current display
setScrollingSize
# void setScrollingSize (float _nbPixel);
For mouse event when we have a scrolling UP and dows, specify the number of pixel that we scrooled
Parameter [input]: _nbPixel number of pixel scrolling
scroolingMode
# void scroolingMode (enum scrollingMode _newMode);
Specify the mode of scrolling for this windows
Parameter [input]: _newMode the selected mode for the scrolling...
setMaxSize
# void setMaxSize (const vec2 & _localSize);
set the specific mawimum size of the widget
Parameter [input]: _localSize new Maximum size
setScrollingPositionDynamic
# void setScrollingPositionDynamic (vec2 _borderWidth,
const vec2 & _currentPosition,
bool _center);
Request a specific position for the scrolling of the current windows.
Parameter [input]: _borderWidth size of the border that requested the element might not to be
Parameter [input]: _currentPosition Position that is requested to view
Parameter [input]: _center True if the position might be at the center of the widget
setLimitScrolling
# void setLimitScrolling (float _poucentageLimit);
set the scrolling limit when arriving at he end of the widget
Parameter [input]: _poucentageLimit pourcent of the limit of view nothing in the widget when arriving at the end ...
+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)
Parameter [input]: | _event | Event properties |
Return: | true the event is used<br/>false the event is not used |
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
Parameter [input]: | _displayProp | properties of the current display |
setScrollingSize
# void setScrollingSize (float _nbPixel);For mouse event when we have a scrolling UP and dows, specify the number of pixel that we scrooled
Parameter [input]: | _nbPixel | number of pixel scrolling |
scroolingMode
# void scroolingMode (enum scrollingMode _newMode);Specify the mode of scrolling for this windows
Parameter [input]: | _newMode | the selected mode for the scrolling... |
setMaxSize
# void setMaxSize (const vec2 & _localSize);set the specific mawimum size of the widget
Parameter [input]: | _localSize | new Maximum size |
setScrollingPositionDynamic
# void setScrollingPositionDynamic (vec2 _borderWidth,Request a specific position for the scrolling of the current windows.
const vec2 & _currentPosition,
bool _center);
Parameter [input]: | _borderWidth | size of the border that requested the element might not to be | Parameter [input]: | _currentPosition | Position that is requested to view | Parameter [input]: | _center | True if the position might be at the center of the widget |
setLimitScrolling
# void setLimitScrolling (float _poucentageLimit);set the scrolling limit when arriving at he end of the widget
Parameter [input]: | _poucentageLimit | pourcent of the limit of view nothing in the widget when arriving at the end ... |