X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Frenderers%2Fcolor%2Fcolor-renderer.h;h=d5c7a945a8888fd1245e25915b5336802663ddca;hb=54fbf47db890d0479d19d780de5ea5d860924632;hp=ae5ccca0b233a57d10d5caeaeda9c7036bcd33db;hpb=5734cf75b7a9c52fd823eac303f5c0c75167059a;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/renderers/color/color-renderer.h b/dali-toolkit/internal/controls/renderers/color/color-renderer.h index ae5ccca..d5c7a94 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 | + * |-----------------|-------------| + * | mixColor | 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::DoInitialize - */ - virtual void DoInitialize( RendererFactoryCache& factoryCache, const Property::Map& propertyMap ); - - /** * @copydoc ControlRenderer::SetSize */ virtual void SetSize( const Vector2& size ); @@ -81,6 +78,12 @@ public: // from ControlRenderer virtual void DoCreatePropertyMap( Property::Map& map ) const; protected: + + /** + * @copydoc ControlRenderer::DoInitialize + */ + virtual void DoInitialize( Actor& actor, const Property::Map& propertyMap ); + /** * @copydoc ControlRenderer::DoSetOnStage */ @@ -89,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 ); @@ -111,8 +113,8 @@ private: private: - Vector4 mBlendColor; - Property::Index mBlendColorIndex; + Vector4 mMixColor; + Property::Index mMixColorIndex; };