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=52f7f3ef3458a35cac0f81916c1d67d559dab41e;hpb=63f9b5207c2794cdc460d587723be89585872a51;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 52f7f3e..6a19c9b 100644 --- a/dali-toolkit/devel-api/visual-factory/visual-base.cpp +++ b/dali-toolkit/devel-api/visual-factory/visual-base.cpp @@ -51,53 +51,44 @@ 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(); } -float Visual::Base::GetHeightForWidth( float width ) const +void Visual::Base::SetTransformAndSize( const Property::Map& transform, Size controlSize ) { - return GetImplementation( *this ).GetHeightForWidth( width ); -} - -void Visual::Base::GetNaturalSize(Vector2& naturalSize ) const -{ - GetImplementation( *this ).GetNaturalSize( naturalSize ); + GetImplementation( *this ).SetTransformAndSize( transform, controlSize ); } -void Visual::Base::SetDepthIndex( float index ) +float Visual::Base::GetHeightForWidth( float width ) { - GetImplementation( *this ).SetDepthIndex( index ); + return GetImplementation( *this ).GetHeightForWidth( width ); } -float Visual::Base::GetDepthIndex() const +float Visual::Base::GetWidthForHeight( float height ) { - return GetImplementation( *this ).GetDepthIndex(); + return GetImplementation( *this ).GetWidthForHeight( height ); } -void Visual::Base::SetOnStage( Actor& actor ) +void Visual::Base::GetNaturalSize(Vector2& naturalSize ) { - 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 @@ -105,15 +96,8 @@ 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