X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fvisual-factory%2Fvisual-base.cpp;h=6a19c9bb96ebb3b000b8cdaea2fff37b361c5ca0;hp=7a4821bfc6c685d77f264cf3e678b83b0475a9fa;hb=fcc666716f42510adc17d894e443a86148c0f412;hpb=83066ea18044c04fbbf0378aa6863416c532e10b diff --git a/dali-toolkit/devel-api/visual-factory/visual-base.cpp b/dali-toolkit/devel-api/visual-factory/visual-base.cpp index 7a4821b..6a19c9b 100644 --- a/dali-toolkit/devel-api/visual-factory/visual-base.cpp +++ b/dali-toolkit/devel-api/visual-factory/visual-base.cpp @@ -61,19 +61,19 @@ const std::string& Visual::Base::GetName() return GetImplementation( *this ).GetName(); } -void Visual::Base::SetSize( const Vector2& size ) +void Visual::Base::SetTransformAndSize( const Property::Map& transform, Size controlSize ) { - GetImplementation( *this ).SetSize( size ); + GetImplementation( *this ).SetTransformAndSize( transform, controlSize ); } -const Vector2& Visual::Base::GetSize() const +float Visual::Base::GetHeightForWidth( float width ) { - return GetImplementation( *this ).GetSize(); + return GetImplementation( *this ).GetHeightForWidth( width ); } -float Visual::Base::GetHeightForWidth( float width ) const +float Visual::Base::GetWidthForHeight( float height ) { - return GetImplementation( *this ).GetHeightForWidth( width ); + return GetImplementation( *this ).GetWidthForHeight( height ); } void Visual::Base::GetNaturalSize(Vector2& naturalSize ) @@ -91,39 +91,13 @@ float Visual::Base::GetDepthIndex() const return GetImplementation( *this ).GetDepthIndex(); } -void Visual::Base::SetOnStage( Actor& actor ) -{ - GetImplementation( *this ).SetOnStage( actor ); -} - -void Visual::Base::SetOffStage( Actor& actor ) -{ - GetImplementation( *this ).SetOffStage( actor ); -} - -void Visual::Base::RemoveAndReset( Actor& actor ) -{ - if( actor && *this ) - { - SetOffStage( actor ); - } - Reset(); -} - void Visual::Base::CreatePropertyMap( Property::Map& map ) const { GetImplementation( *this ).CreatePropertyMap( map ); } -void Visual::Base::SetProperty( Dali::Property::Index index, const Dali::Property::Value& propertyValue ) -{ - GetImplementation( *this ).SetProperty( index, propertyValue ); -} -Dali::Property::Value Visual::Base::GetProperty( Dali::Property::Index index ) -{ - return GetImplementation( *this ).GetProperty( index ); -} + } // namespace Toolkit