Adding Visual namespace and Visual becomes Visual::Base
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / visual-factory / visual-base.cpp
  */
 
 // CLASS HEADER
  */
 
 // CLASS HEADER
-#include <dali-toolkit/internal/visuals/visual-impl.h>
-#include "visual.h"
+#include <dali-toolkit/devel-api/visual-factory/visual-base.h>
+
+// INTERAL INCLUDES
+#include <dali-toolkit/internal/visuals/visual-base-impl.h>
 
 namespace Dali
 {
 
 namespace Dali
 {
@@ -25,66 +27,69 @@ namespace Dali
 namespace Toolkit
 {
 
 namespace Toolkit
 {
 
-Visual::Visual()
+namespace Visual
+{
+
+Base::Base()
 {
 }
 
 {
 }
 
-Visual::~Visual()
+Base::~Base()
 {
 }
 
 {
 }
 
-Visual::Visual( const Visual& handle )
+Base::Base( const Base& handle )
 : BaseHandle( handle )
 {
 }
 
 : BaseHandle( handle )
 {
 }
 
-Visual& Visual::operator=( const Visual& handle )
+Base& Base::operator=( const Base& handle )
 {
   BaseHandle::operator=( handle );
   return *this;
 }
 
 {
   BaseHandle::operator=( handle );
   return *this;
 }
 
-Visual::Visual(Internal::Visual *impl)
+Base::Base(Internal::Visual::Base *impl)
 : BaseHandle( impl )
 {
 }
 
 : BaseHandle( impl )
 {
 }
 
-void Visual::SetSize( const Vector2& size )
+void Base::SetSize( const Vector2& size )
 {
   GetImplementation( *this ).SetSize( size );
 }
 
 {
   GetImplementation( *this ).SetSize( size );
 }
 
-const Vector2& Visual::GetSize() const
+const Vector2& Base::GetSize() const
 {
   return GetImplementation( *this ).GetSize();
 }
 
 {
   return GetImplementation( *this ).GetSize();
 }
 
-void Visual::GetNaturalSize(Vector2& naturalSize ) const
+void Base::GetNaturalSize(Vector2& naturalSize ) const
 {
   GetImplementation( *this ).GetNaturalSize( naturalSize );
 }
 
 {
   GetImplementation( *this ).GetNaturalSize( naturalSize );
 }
 
-void Visual::SetDepthIndex( float index )
+void Base::SetDepthIndex( float index )
 {
   GetImplementation( *this ).SetDepthIndex( index );
 }
 
 {
   GetImplementation( *this ).SetDepthIndex( index );
 }
 
-float Visual::GetDepthIndex() const
+float Base::GetDepthIndex() const
 {
   return GetImplementation( *this ).GetDepthIndex();
 }
 
 {
   return GetImplementation( *this ).GetDepthIndex();
 }
 
-void Visual::SetOnStage( Actor& actor )
+void Base::SetOnStage( Actor& actor )
 {
   GetImplementation( *this ).SetOnStage( actor );
 }
 
 {
   GetImplementation( *this ).SetOnStage( actor );
 }
 
-void Visual::SetOffStage( Actor& actor )
+void Base::SetOffStage( Actor& actor )
 {
   GetImplementation( *this ).SetOffStage( actor );
 }
 
 {
   GetImplementation( *this ).SetOffStage( actor );
 }
 
-void Visual::RemoveAndReset( Actor& actor )
+void Base::RemoveAndReset( Actor& actor )
 {
   if( actor && *this )
   {
 {
   if( actor && *this )
   {
@@ -93,11 +98,13 @@ void Visual::RemoveAndReset( Actor& actor )
   Reset();
 }
 
   Reset();
 }
 
-void Visual::CreatePropertyMap( Property::Map& map ) const
+void Base::CreatePropertyMap( Property::Map& map ) const
 {
   GetImplementation( *this ).CreatePropertyMap( map );
 }
 
 {
   GetImplementation( *this ).CreatePropertyMap( map );
 }
 
+} // namespace Visual
+
 } // namespace Toolkit
 
 } // namespace Dali
 } // namespace Toolkit
 
 } // namespace Dali