X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=capi%2Fdali-toolkit%2Fpublic-api%2Fcontrols%2Fscrollable%2Fitem-view%2Fitem-layout.h;h=5a32df0c8909c51a3491cb8ca530771c7f0fdb9c;hb=refs%2Fchanges%2F81%2F24181%2F1;hp=98deaecc66c47ab655939a6587fa2c56f78dbaa4;hpb=d5e3ed5f5b1c8fdba3ae97ead8729620f54b3836;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/capi/dali-toolkit/public-api/controls/scrollable/item-view/item-layout.h b/capi/dali-toolkit/public-api/controls/scrollable/item-view/item-layout.h index 98deaec..5a32df0 100644 --- a/capi/dali-toolkit/public-api/controls/scrollable/item-view/item-layout.h +++ b/capi/dali-toolkit/public-api/controls/scrollable/item-view/item-layout.h @@ -345,9 +345,9 @@ public: virtual void GetYAxisScrollHint(Vector2& scrollHint) const; /** - * @brief Query the scroll speed factor of the layout. + * @brief Query the scroll speed factor of the layout while dragging. * - * This factor is used by the layout to customise its scroll speed while dragging and swiping. + * This factor is used by the layout to customise its scroll speed while dragging. * The factor will be multiplied with the scroll distance of how many pixels in actor coordinate, * and the layout position of the actors in ItemView will be moved by this result. * For example, when the speed factor is 0.01, if the scroll distance is 100 pixels, the layout @@ -387,6 +387,20 @@ public: */ virtual int GetNextFocusItemID(int itemID, int maxItems, Dali::Toolkit::Control::KeyboardFocusNavigationDirection direction, bool loopEnabled); + /** + * @brief Query the flick speed factor of the layout while swipping. + * + * This factor is used by the layout to customise its scroll speed while swiping. + * The factor will be multiplied with the scroll distance of how many pixels in actor coordinate, + * and the layout position of the actors in ItemView will be moved by this result. + * For example, when the speed factor is 0.01, if the scroll distance is 100 pixels, the layout + * position of actors will be moved by 1. + * Therefore, the bigger the factor is, the faster the flick speed will be. + * + * @return The scroll speed factor of the layout. + */ + virtual float GetFlickSpeedFactor() const; + protected: /**