From ded1d04f55730a741c668fa20ce2fe1d047b8399 Mon Sep 17 00:00:00 2001 From: Edouard Dupin Date: Tue, 24 Apr 2012 13:35:55 +0200 Subject: [PATCH] Set the setter of the maxSize for the scolling widget --- Sources/libewol/ewol/widget/WidgetScrolled.h | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Sources/libewol/ewol/widget/WidgetScrolled.h b/Sources/libewol/ewol/widget/WidgetScrolled.h index db50fb8d..76584bdb 100644 --- a/Sources/libewol/ewol/widget/WidgetScrolled.h +++ b/Sources/libewol/ewol/widget/WidgetScrolled.h @@ -93,8 +93,31 @@ namespace ewol { */ virtual void GenDraw(void); protected: + /** + * @brief For mouse event when we have a scrolling UP and dows, specify the number of pixel that we scrooled + * @param[in] nbPixel number of pixel scrolling + * @return --- + */ void SetScrollingSize(etkFloat_t nbPixel) { m_pixelScrolling = nbPixel; }; + /** + * @brief Specify the mode of scrolling for this windows + * @param[in] newMode the selected mode for the scrolling... + * @return --- + */ void ScroolingMode(scrollingMode_te newMode) { m_scroollingMode = newMode; }; + /** + * @brief Set the specific mawimum size of the widget + * @param[in] localSize new Maximum size + * @return --- + */ + void SetMaxSize(coord2D_ts localSize) { m_maxSize = localSize; }; + /** + * @brief Request a specific position for the scrolling of the current windows. + * @param[in] borderWidth Size of the border that requested the element might not to be + * @param[in] currentPosition Position that is requested to view + * @param[in] center True if the position might be at the center of the widget + * @return --- + */ void SetScrollingPositionDynamic(coord2D_ts borderWidth, coord2D_ts currentPosition, bool center = false); };