X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fvisual-factory%2Fvisual-base.cpp;h=6a19c9bb96ebb3b000b8cdaea2fff37b361c5ca0;hb=14d7745ee5464be56aaff3843c592b9bf45820f8;hp=0b3193f91c3b75d2fec1d466da4c1942a3709032;hpb=99e2ea03e6d6059f5803d700932df1ff1c848cd3;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/visual-factory/visual-base.cpp b/dali-toolkit/devel-api/visual-factory/visual-base.cpp index 0b3193f..6a19c9b 100644 --- a/dali-toolkit/devel-api/visual-factory/visual-base.cpp +++ b/dali-toolkit/devel-api/visual-factory/visual-base.cpp @@ -27,83 +27,77 @@ namespace Dali namespace Toolkit { -namespace Visual -{ - -Base::Base() +Visual::Base::Base() { } -Base::~Base() +Visual::Base::~Base() { } -Base::Base( const Base& handle ) +Visual::Base::Base( const Visual::Base& handle ) : BaseHandle( handle ) { } -Base& Base::operator=( const Base& handle ) +Visual::Base& Visual::Base::operator=( const Visual::Base& handle ) { BaseHandle::operator=( handle ); return *this; } -Base::Base(Internal::Visual::Base *impl) +Visual::Base::Base(Internal::Visual::Base *impl) : BaseHandle( impl ) { } -void Base::SetSize( const Vector2& size ) +void Visual::Base::SetName( const std::string& name ) { - GetImplementation( *this ).SetSize( size ); + GetImplementation( *this ).SetName( name ); } -const Vector2& Base::GetSize() const +const std::string& Visual::Base::GetName() { - return GetImplementation( *this ).GetSize(); + return GetImplementation( *this ).GetName(); } -void 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 Base::SetDepthIndex( float index ) +float Visual::Base::GetHeightForWidth( float width ) { - GetImplementation( *this ).SetDepthIndex( index ); + return GetImplementation( *this ).GetHeightForWidth( width ); } -float Base::GetDepthIndex() const +float Visual::Base::GetWidthForHeight( float height ) { - return GetImplementation( *this ).GetDepthIndex(); + return GetImplementation( *this ).GetWidthForHeight( height ); } -void Base::SetOnStage( Actor& actor ) +void Visual::Base::GetNaturalSize(Vector2& naturalSize ) { - GetImplementation( *this ).SetOnStage( actor ); + GetImplementation( *this ).GetNaturalSize( naturalSize ); } -void Base::SetOffStage( Actor& actor ) +void Visual::Base::SetDepthIndex( float index ) { - GetImplementation( *this ).SetOffStage( actor ); + GetImplementation( *this ).SetDepthIndex( index ); } -void Base::RemoveAndReset( Actor& actor ) +float Visual::Base::GetDepthIndex() const { - if( actor && *this ) - { - SetOffStage( actor ); - } - Reset(); + return GetImplementation( *this ).GetDepthIndex(); } -void Base::CreatePropertyMap( Property::Map& map ) const +void Visual::Base::CreatePropertyMap( Property::Map& map ) const { GetImplementation( *this ).CreatePropertyMap( map ); } -} // namespace Visual + + } // namespace Toolkit