X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=capi%2Fdali-toolkit%2Fpublic-api%2Fcontrols%2Fscrollable%2Fitem-view%2Fitem-layout.h;h=727709b2a01934aeb3ebe7641669675a85801c11;hp=5a32df0c8909c51a3491cb8ca530771c7f0fdb9c;hb=7b5b1f7f07f7ba949d19506396fc3ff1b2ef3093;hpb=25c4153bef0db9f92857a942b811e8882302938d 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 5a32df0..727709b 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 @@ -401,6 +401,41 @@ public: */ virtual float GetFlickSpeedFactor() const; + /* + * @brief Applies constraints defined by the layout to an actor. + * + * @param[in] actor The actor to constrain. + * @param[in] itemId The ID of the item represented by the actor. + * @param[in] durationSeconds The time taken to fully constrain the actors. + * @param[in] scrollPositionObject The object which provides the layout position property. + * @param[in] itemViewActor The item view instance which requests the application of constraints. + */ + virtual void ApplyConstraints( Actor& actor, const int itemId, const float durationSeconds, Constrainable scrollPositionObject, const Actor& itemViewActor ); + + /** + * @brief Gets the position of a given item + * + * @param[in] itemID id of the item we want to get its position + * @param[in] currentLayoutPosition the current layout position of the item view instance + * @param[in] layoutSize the current size of the item view instance + * @return The item position (x,y,z) + */ + virtual Vector3 GetItemPosition(int itemID, float currentLayoutPosition, const Vector3& layoutSize) const; + + /** + * @brief Set the alpha function used when applying constraints + * + * @param[in] func The alpha function to use. + */ + void SetAlphaFunction(AlphaFunction func); + + /** + * @brief Retrieve the alpha function used when applying constraints + * + * @return The alpha function. + */ + AlphaFunction GetAlphaFunction() const; + protected: /** @@ -410,7 +445,8 @@ protected: protected: - ControlOrientation::Type mOrientation; ///< the orientation of the layout. + ControlOrientation::Type mOrientation; ///< the orientation of the layout. + AlphaFunction mAlphaFunction; ///