Rename of Control Renderers to Visuals
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / controls / renderers / image / image-visual.h
@@ -19,7 +19,7 @@
  */
 
 // INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/control-renderer-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-impl.h>
 #include <dali-toolkit/internal/controls/renderers/image-atlas-manager.h>
 
 // EXTERNAL INCLUDES
@@ -38,8 +38,8 @@ namespace Toolkit
 namespace Internal
 {
 
-class ImageRenderer;
-typedef IntrusivePtr< ImageRenderer > ImageRendererPtr;
+class ImageVisual;
+typedef IntrusivePtr< ImageVisual > ImageVisualPtr;
 
 /**
  * The renderer which renders an image to the control's quad
@@ -73,63 +73,63 @@ typedef IntrusivePtr< ImageRenderer > ImageRendererPtr;
  *   "DEFAULT"
  *
  */
-class ImageRenderer: public ControlRenderer, public ConnectionTracker
+class ImageVisual: public Visual, public ConnectionTracker
 {
 public:
 
   /**
    * @brief Constructor.
    *
-   * @param[in] factoryCache The RendererFactoryCache object
+   * @param[in] factoryCache The VisualFactoryCache object
    * @param[in] atlasManager The atlasManager object
    */
-  ImageRenderer( RendererFactoryCache& factoryCache, ImageAtlasManager& atlasManager );
+  ImageVisual( VisualFactoryCache& factoryCache, ImageAtlasManager& atlasManager );
 
   /**
    * @brief A reference counted object may only be deleted by calling Unreference().
    */
-  ~ImageRenderer();
+  ~ImageVisual();
 
-public:  // from ControlRenderer
+public:  // from Visual
 
   /**
-   * @copydoc ControlRenderer::SetSize
+   * @copydoc Visual::SetSize
    */
   virtual void SetSize( const Vector2& size );
 
   /**
-   * @copydoc ControlRenderer::GetNaturalSize
+   * @copydoc Visual::GetNaturalSize
    */
   virtual void GetNaturalSize( Vector2& naturalSize ) const;
 
   /**
-   * @copydoc ControlRenderer::SetClipRect
+   * @copydoc Visual::SetClipRect
    */
   virtual void SetClipRect( const Rect<int>& clipRect );
 
   /**
-   * @copydoc ControlRenderer::SetOffset
+   * @copydoc Visual::SetOffset
    */
   virtual void SetOffset( const Vector2& offset );
 
   /**
-   * @copydoc ControlRenderer::CreatePropertyMap
+   * @copydoc Visual::CreatePropertyMap
    */
   virtual void DoCreatePropertyMap( Property::Map& map ) const;
 
 protected:
   /**
-   * @copydoc ControlRenderer::DoInitialize
+   * @copydoc Visual::DoInitialize
    */
   virtual void DoInitialize( Actor& actor, const Property::Map& propertyMap );
 
   /**
-   * @copydoc ControlRenderer::DoSetOnStage
+   * @copydoc Visual::DoSetOnStage
    */
   virtual void DoSetOnStage( Actor& actor );
 
   /**
-   * @copydoc ControlRenderer::DoSetOffStage
+   * @copydoc Visual::DoSetOffStage
    */
   virtual void DoSetOffStage( Actor& actor );
 
@@ -137,9 +137,9 @@ public:
 
   /**
    * Get the standard image rendering shader.
-   * @param[in] factoryCache A pointer pointing to the RendererFactoryCache object
+   * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object
    */
-  static Shader GetImageShader( RendererFactoryCache& factoryCache );
+  static Shader GetImageShader( VisualFactoryCache& factoryCache );
 
   /**
    * @brief Sets the image of this renderer to the resource at imageUrl
@@ -177,14 +177,14 @@ private:
   /**
    * @brief Initializes the Dali::Renderer from an image url string
    *
-   * @param[in] imageUrl The image url string to intialize this ImageRenderer from
+   * @param[in] imageUrl The image url string to intialize this ImageVisual from
    */
   void InitializeRenderer( const std::string& imageUrl );
 
   /**
    * @brief Initializes the Dali::Renderer from an image handle
    *
-   * @param[in] image The image handle to intialize this ImageRenderer from
+   * @param[in] image The image handle to intialize this ImageVisual from
    */
   void InitializeRenderer( const Image& image );
 
@@ -200,7 +200,7 @@ private:
    *
    * @return Returns the created Dali::Renderer
    */
-  Renderer CreateNativeImageRenderer() const;
+  Renderer CreateNativeImageVisual() const;
 
   /**
    * @brief Query whether resources requires to be loaded synchronously.