X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fvisual-base-impl.h;h=7ebf239f2d274a927178ffa846c6538d02352f61;hp=0f57210de7e8d326ca1904b6e50a8e1361b3ca7c;hb=6fcd54cf99718c78d77cb8a9bf836059111afe16;hpb=e54ea0676d3bbe53d40309a41b1b415f8f6a64d4 diff --git a/dali-toolkit/internal/visuals/visual-base-impl.h b/dali-toolkit/internal/visuals/visual-base-impl.h index 0f57210..7ebf239 100644 --- a/dali-toolkit/internal/visuals/visual-base-impl.h +++ b/dali-toolkit/internal/visuals/visual-base-impl.h @@ -100,6 +100,14 @@ public: void DoAction(const Dali::Property::Index actionId, const Dali::Property::Value attributes); /** + * @brief Performs an action on the visual with the given action id and attributes. + * + * @param[in] actionId The id of the action to perform this API only takes an Index + * @param[in] attributes The list of attributes for the action. ( optional for this data structure to have content ) + */ + void DoActionExtension(const Dali::Property::Index actionId, const Dali::Any attributes); + + /** * @copydoc Toolkit::Visual::Base::GetHeightForWidth */ virtual float GetHeightForWidth(float width); @@ -155,7 +163,7 @@ public: * * @param[in] preMultiplied whether alpha is pre-multiplied. */ - void EnablePreMultipliedAlpha(bool preMultiplied); + virtual void EnablePreMultipliedAlpha(bool preMultiplied); /** * @brief Query whether alpha is pre-multiplied. @@ -239,8 +247,8 @@ public: void ResourceReady(Toolkit::Visual::ResourceStatus resourceStatus); /** - * @brief Called when the visuals resources are loaded / ready - * @return true if ready, false otherwise + * @brief Called when the visuals resources are loaded / ready or failed (mean, broken image ready) + * @return true if ready or failed (mean, broken image ready), false otherwise */ virtual bool IsResourceReady() const; @@ -363,6 +371,14 @@ protected: virtual void OnDoAction(const Property::Index actionId, const Property::Value& attributes); /** + * @brief Called by DoActionExtension() allowing sub classes to do the given action. + * + * @param[in] actionId The action to perform + * @param[in] attributes The list of attributes for the action. ( optional for this data structure to have content ) + */ + virtual void OnDoActionExtension(const Property::Index actionId, Dali::Any attributes); + + /** * @brief Update the shader when some properties are changed. */ virtual void UpdateShader() @@ -422,6 +438,11 @@ private: void RegisterMixColor(); /** + * Register the uniform on the DecoratedVisualRenderer and store the property index if necessary. + */ + void RegisterDecoration(); + + /** * Find the matching property on the renderer or shader. If it's a shader * property, register it on the renderer in order to animate it for this * visual independently.