Rename of Control Renderers to Visuals
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / controls / renderers / visual-impl.cpp
  */
 
 // CLASS HEADER
-#include "control-renderer-impl.h"
+#include "visual-impl.h"
 
 // EXTERNAL HEADER
 #include <dali/public-api/common/dali-common.h>
 #include <dali/integration-api/debug.h>
 
 //INTERNAL HEARDER
-#include <dali-toolkit/internal/controls/renderers/control-renderer-data-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-data-impl.h>
 
 namespace
 {
@@ -45,18 +45,18 @@ namespace Toolkit
 namespace Internal
 {
 
-ControlRenderer::ControlRenderer( RendererFactoryCache& factoryCache )
+Visual::Visual( VisualFactoryCache& factoryCache )
 : mImpl( new Impl() ),
   mFactoryCache( factoryCache )
 {
 }
 
-ControlRenderer::~ControlRenderer()
+Visual::~Visual()
 {
   delete mImpl;
 }
 
-void ControlRenderer::SetCustomShader( const Property::Map& shaderMap )
+void Visual::SetCustomShader( const Property::Map& shaderMap )
 {
   if( mImpl->mCustomShader )
   {
@@ -68,7 +68,7 @@ void ControlRenderer::SetCustomShader( const Property::Map& shaderMap )
   }
 }
 
-void ControlRenderer::Initialize( Actor& actor, const Property::Map& propertyMap )
+void Visual::Initialize( Actor& actor, const Property::Map& propertyMap )
 {
   Property::Value* customShaderValue = propertyMap.Find( CUSTOM_SHADER );
   if( customShaderValue )
@@ -83,31 +83,31 @@ void ControlRenderer::Initialize( Actor& actor, const Property::Map& propertyMap
   DoInitialize( actor, propertyMap );
 }
 
-void ControlRenderer::SetSize( const Vector2& size )
+void Visual::SetSize( const Vector2& size )
 {
   mImpl->mSize = size;
 }
 
-const Vector2& ControlRenderer::GetSize() const
+const Vector2& Visual::GetSize() const
 {
   return mImpl->mSize;
 }
 
-void ControlRenderer::GetNaturalSize( Vector2& naturalSize ) const
+void Visual::GetNaturalSize( Vector2& naturalSize ) const
 {
   naturalSize = Vector2::ZERO;
 }
 
-void ControlRenderer::SetClipRect( const Rect<int>& clipRect )
+void Visual::SetClipRect( const Rect<int>& clipRect )
 {
 }
 
-void ControlRenderer::SetOffset( const Vector2& offset )
+void Visual::SetOffset( const Vector2& offset )
 {
   mImpl->mOffset = offset;
 }
 
-void ControlRenderer::SetDepthIndex( float index )
+void Visual::SetDepthIndex( float index )
 {
   mImpl->mDepthIndex = index;
   if( mImpl->mRenderer )
@@ -116,12 +116,12 @@ void ControlRenderer::SetDepthIndex( float index )
   }
 }
 
-float ControlRenderer::GetDepthIndex() const
+float Visual::GetDepthIndex() const
 {
   return mImpl->mDepthIndex;
 }
 
-void ControlRenderer::SetOnStage( Actor& actor )
+void Visual::SetOnStage( Actor& actor )
 {
   DoSetOnStage( actor );
 
@@ -131,7 +131,7 @@ void ControlRenderer::SetOnStage( Actor& actor )
   mImpl->mFlags |= Impl::IS_ON_STAGE;
 }
 
-void ControlRenderer::SetOffStage( Actor& actor )
+void Visual::SetOffStage( Actor& actor )
 {
   if( GetIsOnStage() )
   {
@@ -141,7 +141,7 @@ void ControlRenderer::SetOffStage( Actor& actor )
   }
 }
 
-void ControlRenderer::EnablePreMultipliedAlpha( bool preMultipled )
+void Visual::EnablePreMultipliedAlpha( bool preMultipled )
 {
   if(preMultipled)
   {
@@ -158,22 +158,22 @@ void ControlRenderer::EnablePreMultipliedAlpha( bool preMultipled )
   }
 }
 
-bool ControlRenderer::IsPreMultipliedAlphaEnabled() const
+bool Visual::IsPreMultipliedAlphaEnabled() const
 {
   return mImpl->mFlags & Impl::IS_PREMULTIPLIED_ALPHA;
 }
 
-void ControlRenderer::DoSetOnStage( Actor& actor )
+void Visual::DoSetOnStage( Actor& actor )
 {
 }
 
-void ControlRenderer::DoSetOffStage( Actor& actor )
+void Visual::DoSetOffStage( Actor& actor )
 {
   actor.RemoveRenderer( mImpl->mRenderer );
   mImpl->mRenderer.Reset();
 }
 
-void ControlRenderer::CreatePropertyMap( Property::Map& map ) const
+void Visual::CreatePropertyMap( Property::Map& map ) const
 {
   DoCreatePropertyMap( map );
 
@@ -183,12 +183,12 @@ void ControlRenderer::CreatePropertyMap( Property::Map& map ) const
   }
 }
 
-bool ControlRenderer::GetIsOnStage() const
+bool Visual::GetIsOnStage() const
 {
   return mImpl->mFlags & Impl::IS_ON_STAGE;
 }
 
-bool ControlRenderer::GetIsFromCache() const
+bool Visual::GetIsFromCache() const
 {
   return mImpl->mFlags & Impl::IS_FROM_CACHE;
 }