X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Frenderer-factory%2Frenderer-factory.h;h=c4ac6a4312cd5af28a9a378eaa1054530ca519d9;hp=4a30888bb64a2d6095333b71af7188d7f4d1ed4c;hb=933609809da8a14c306789bc01b461a5116180ed;hpb=4ac30f392a3277a566a03176ea066841c6784b61 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 4a30888..c4ac6a4 100644 --- a/dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h +++ b/dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h @@ -37,7 +37,7 @@ class RendererFactory; } /** - * RendererFactory is a singleton object that provides and shares renderers for controls + * @brief RendererFactory is a singleton object that provides and shares renderers for controls * * The renderer type is required in the property map for requesting a control renderer. * @@ -108,11 +108,22 @@ public: * if the current renderer is a handle to an internal color renderer, set this color to it, * else the renderer would be a handle to a newly created internal color renderer. * + * @param[in] renderer The ControlRenderer to reset + * @param[in] color The color to be rendered. * @return Whether a new internal control renderer is created. */ bool ResetRenderer( ControlRenderer& renderer, const Vector4& color ); /** + * @brief Request the control renderer to renderer the border with the given size and color. + * + * @param[in] borderSize The size of the border. Border size is the same along all edges. + * @param[in] borderColor The color of the border. + * @return The pointer pointing to the control renderer + */ + ControlRenderer GetControlRenderer( float borderSize, const Vector4& borderColor ); + + /** * @brief Request the control renderer to render the image. * * @param[in] image The image to be rendered. @@ -126,10 +137,32 @@ public: * if the current renderer is a handle to an internal image renderer, set this image to it, * else the renderer would be a handle to a newly created internal image renderer. * + * @param[in] renderer The ControlRenderer to reset + * @param[in] image The Image to be rendered. * @return Whether a new internal control renderer is created. */ bool ResetRenderer( ControlRenderer& renderer, const Image& image ); + /** + * @brief Request the control renderer to render the given resource at the url. + * + * @param[in] url The URL to the resource to be rendered. + * @return The pointer pointing to the control renderer + */ + ControlRenderer GetControlRenderer( const std::string& url ); + + /** + * @brief Request the current control renderer to render the given resource at the url + * + * if the current renderer is a handle to an internal image renderer, set this image to it, + * else the renderer would be a handle to a newly created internal image renderer. + * + * @param[in] renderer The ControlRenderer to reset + * @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 ); + private: explicit DALI_INTERNAL RendererFactory(Internal::RendererFactory *impl);