public:
/**
+ * Types of the gradient
+ */
+ enum Type
+ {
+ LINEAR,
+ RADIAL
+ };
+
+ /**
* @brief Constructor.
+ *
+ * @param[in] factoryCache A pointer pointing to the RendererFactoryCache object
*/
- GradientRenderer();
+ GradientRenderer( RendererFactoryCache& factoryCache );
/**
* @brief A reference counted object may only be deleted by calling Unreference().
public: // from ControlRenderer
/**
- * @copydoc ControlRenderer::Initialize
- */
- virtual void Initialize( RendererFactoryCache& factoryCache, const Property::Map& propertyMap );
-
- /**
* @copydoc ControlRenderer::SetSize
*/
virtual void SetSize( const Vector2& size );
/**
* @copydoc ControlRenderer::CreatePropertyMap
*/
- virtual void CreatePropertyMap( Property::Map& map ) const;
+ virtual void DoCreatePropertyMap( Property::Map& map ) const;
protected:
/**
- * @copydoc ControlRenderer::DoSetOnStage
+ * @copydoc ControlRenderer::DoInitialize
*/
- virtual void DoSetOnStage( Actor& actor );
-
-private:
+ virtual void DoInitialize( const Property::Map& propertyMap );
/**
- * Types of the gradient
+ * @copydoc ControlRenderer::InitializeRenderer
*/
- enum Type
- {
- LINEAR,
- RADIAL
- };
+ virtual void InitializeRenderer( Renderer& renderer );
+
+private:
/**
* New a gradient object with the given property map.
private:
Matrix3 mGradientTransform;
- Property::Index mGradientTransformIndex;
IntrusivePtr<Gradient> mGradient;
+ Type mGradientType;
};
} // namespace Internal