Cleanup of Visual::Base::SetSize
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / visual-factory / visual-base.cpp
index 0c39ff5..790a3e7 100644 (file)
@@ -51,48 +51,39 @@ Visual::Base::Base(Internal::Visual::Base *impl)
 {
 }
 
-void Visual::Base::SetSize( const Vector2& size )
+void Visual::Base::SetName( const std::string& name )
 {
-  GetImplementation( *this ).SetSize( size );
+  GetImplementation( *this ).SetName( name );
 }
 
-const Vector2& Visual::Base::GetSize() const
+const std::string& Visual::Base::GetName()
 {
-  return GetImplementation( *this ).GetSize();
+  return GetImplementation( *this ).GetName();
 }
 
-void Visual::Base::GetNaturalSize(Vector2& naturalSize ) const
+void Visual::Base::SetTransformAndSize( const Property::Map& transform, Size controlSize )
 {
-  GetImplementation( *this ).GetNaturalSize( naturalSize );
+  GetImplementation( *this ).SetTransformAndSize( transform, controlSize );
 }
 
-void Visual::Base::SetDepthIndex( float index )
+float Visual::Base::GetHeightForWidth( float width ) const
 {
-  GetImplementation( *this ).SetDepthIndex( index );
+  return GetImplementation( *this ).GetHeightForWidth( width );
 }
 
-float Visual::Base::GetDepthIndex() const
+void Visual::Base::GetNaturalSize(Vector2& naturalSize )
 {
-  return GetImplementation( *this ).GetDepthIndex();
-}
-
-void Visual::Base::SetOnStage( Actor& actor )
-{
-  GetImplementation( *this ).SetOnStage( actor );
+  GetImplementation( *this ).GetNaturalSize( naturalSize );
 }
 
-void Visual::Base::SetOffStage( Actor& actor )
+void Visual::Base::SetDepthIndex( float index )
 {
-  GetImplementation( *this ).SetOffStage( actor );
+  GetImplementation( *this ).SetDepthIndex( index );
 }
 
-void Visual::Base::RemoveAndReset( Actor& actor )
+float Visual::Base::GetDepthIndex() const
 {
-  if( actor && *this )
-  {
-    SetOffStage( actor );
-  }
-  Reset();
+  return GetImplementation( *this ).GetDepthIndex();
 }
 
 void Visual::Base::CreatePropertyMap( Property::Map& map ) const