X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Frenderers%2Fcolor%2Fcolor-renderer.h;h=6d132045994a3b76853d62123ba27e62f7a16366;hp=5f5dd270af1c1bdabf63a154ed1f8471db3c4d63;hb=f3da11c2818c6d17706fbb2417f21b602b3190f5;hpb=4ac30f392a3277a566a03176ea066841c6784b61 diff --git a/dali-toolkit/internal/controls/renderers/color/color-renderer.h b/dali-toolkit/internal/controls/renderers/color/color-renderer.h index 5f5dd27..6d13204 100644 --- a/dali-toolkit/internal/controls/renderers/color/color-renderer.h +++ b/dali-toolkit/internal/controls/renderers/color/color-renderer.h @@ -35,9 +35,9 @@ namespace Internal * * The following properties are required for create a ColorRender * - * | %Property Name | Type | - * |------------------|-------------| - * | blend-color | VECTOR4 | + * | %Property Name | Type | + * |-----------------|-------------| + * | blendColor | VECTOR4 | */ class ColorRenderer: public ControlRenderer { @@ -45,8 +45,10 @@ public: /** * @brief Constructor. + * + * @param[in] factoryCache A pointer pointing to the RendererFactoryCache object */ - ColorRenderer(); + ColorRenderer( RendererFactoryCache& factoryCache ); /** * @brief A reference counted object may only be deleted by calling Unreference(). @@ -56,11 +58,6 @@ public: public: // from ControlRenderer /** - * @copydoc ControlRenderer::Initialize - */ - virtual void Initialize( RendererFactoryCache& factoryCache, const Property::Map& propertyMap ); - - /** * @copydoc ControlRenderer::SetSize */ virtual void SetSize( const Vector2& size ); @@ -75,7 +72,18 @@ public: // from ControlRenderer */ virtual void SetOffset( const Vector2& offset ); + /** + * @copydoc ControlRenderer::CreatePropertyMap + */ + virtual void DoCreatePropertyMap( Property::Map& map ) const; + protected: + + /** + * @copydoc ControlRenderer::DoInitialize + */ + virtual void DoInitialize( Actor& actor, const Property::Map& propertyMap ); + /** * @copydoc ControlRenderer::DoSetOnStage */ @@ -84,19 +92,18 @@ protected: 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 - */ - void Initialize( RendererFactoryCache& factoryCache ); - - /** * Set the color for rendering. * @param[in] color The color to be rendered. */ void SetColor( const Vector4& color ); 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(); + +private: // Undefined ColorRenderer( const ColorRenderer& colorRenderer );