X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Frenderer-factory%2Frenderer-factory.h;h=2e0c6c9397d5297234fa5970861a33ee26c01d56;hb=8991dd870badfb20693aa0eb1acf0aedbe88f99f;hp=c4ac6a4312cd5af28a9a378eaa1054530ca519d9;hpb=d24bcb053ae2e41161cca4482c0c788f0e745821;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h b/dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h index c4ac6a4..2e0c6c9 100644 --- a/dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h +++ b/dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h @@ -109,10 +109,10 @@ public: * else the renderer would be a handle to a newly created internal color renderer. * * @param[in] renderer The ControlRenderer to reset + * @param[in] actor The Actor the renderer is applied to if, empty if the renderer has not been applied to any Actor * @param[in] color The color to be rendered. - * @return Whether a new internal control renderer is created. */ - bool ResetRenderer( ControlRenderer& renderer, const Vector4& color ); + void ResetRenderer( ControlRenderer& renderer, Actor& actor, const Vector4& color ); /** * @brief Request the control renderer to renderer the border with the given size and color. @@ -138,10 +138,10 @@ public: * else the renderer would be a handle to a newly created internal image renderer. * * @param[in] renderer The ControlRenderer to reset + * @param[in] actor The Actor the renderer is applied to if, empty if the renderer has not been applied to any Actor * @param[in] image The Image to be rendered. - * @return Whether a new internal control renderer is created. */ - bool ResetRenderer( ControlRenderer& renderer, const Image& image ); + void ResetRenderer( ControlRenderer& renderer, Actor& actor, const Image& image ); /** * @brief Request the control renderer to render the given resource at the url. @@ -158,10 +158,24 @@ public: * else the renderer would be a handle to a newly created internal image renderer. * * @param[in] renderer The ControlRenderer to reset + * @param[in] actor The Actor the renderer is applied to if, empty if the renderer has not been applied to any Actor * @param[in] url The URL to the resource to be rendered. - * @return Whether a new internal control renderer is created. */ - bool ResetRenderer( ControlRenderer& renderer, const std::string& url ); + void ResetRenderer( ControlRenderer& renderer, Actor& actor, const std::string& url ); + + + /** + * @brief Request the current control renderer from the property map, merging the property map with the renderer + * + * if the current renderer is capable of merging with the property map the reset the renderer with the merged properties + * else the renderer would be a handle to a newly created internal renderer. + * + * @param[in] renderer The ControlRenderer to reset + * @param[in] actor The Actor the renderer is applied to if, empty if the renderer has not been applied to any Actor + * @param[in] propertyMap The map contains the properties required by the control renderer + * Depends on the content of the map, different kind of renderer would be returned. + */ + void ResetRenderer( ControlRenderer& renderer, Actor& actor, const Property::Map& propertyMap ); private: