X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Frenderers%2Fborder%2Fborder-renderer.h;h=63160fbaa9b2a7e3f24202ce895c60241163ca68;hp=5a1f57567eadfdf4d616f71d001bb96a3c28a155;hb=f3da11c2818c6d17706fbb2417f21b602b3190f5;hpb=bf9e99f865d0af2d10df6af8770622eb618bfad2 diff --git a/dali-toolkit/internal/controls/renderers/border/border-renderer.h b/dali-toolkit/internal/controls/renderers/border/border-renderer.h index 5a1f575..63160fb 100644 --- a/dali-toolkit/internal/controls/renderers/border/border-renderer.h +++ b/dali-toolkit/internal/controls/renderers/border/border-renderer.h @@ -37,10 +37,10 @@ namespace Internal * * The following properties are required for create a BorderRender * - * | %Property Name | Type | - * |------------------|-------------| - * | border-color | VECTOR4 | - * | border-size | FLOAT | + * | %Property Name | Type | + * |-----------------|-------------| + * | borderColor | VECTOR4 | + * | borderSize | FLOAT | */ class BorderRenderer : public ControlRenderer @@ -49,8 +49,10 @@ public: /** * @brief Constructor. + * + * @param[in] factoryCache A pointer pointing to the RendererFactoryCache object */ - BorderRenderer(); + BorderRenderer( RendererFactoryCache& factoryCache ); /** * @brief A reference counted object may only be deleted by calling Unreference(). @@ -60,29 +62,28 @@ public: public: // from ControlRenderer /** - * @copydoc ControlRenderer::Initialize - */ - virtual void Initialize( RendererFactoryCache& factoryCache, const Property::Map& propertyMap ); - - /** * @copydoc ControlRenderer::SetClipRect */ virtual void SetClipRect( const Rect& clipRect ); protected: + + /** + * @copydoc ControlRenderer::DoInitialize + */ + virtual void DoInitialize( Actor& actor, const Property::Map& propertyMap ); + /** * @copydoc ControlRenderer::DoSetOnStage */ virtual void DoSetOnStage( Actor& actor ); -public: - /** - * Request the geometry and shader from the cache, if not available, create and save to the cache for sharing. - * - * @param[in] factoryCache A pointer pointing to the RendererFactoryCache object + * @copydoc ControlRenderer::CreatePropertyMap */ - void Initialize( RendererFactoryCache& factoryCache ); + virtual void DoCreatePropertyMap( Property::Map& map ) const; + +public: /** * Set the color of the border. @@ -99,6 +100,11 @@ public: private: /** + * @brief Initialize the renderer with the geometry and shader from the cache, if not available, create and save to the cache for sharing. + */ + void InitializeRenderer(); + + /** * Create the geometry which presents the border. * @return The border geometry */