X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fvisual-factory%2Fvisual-base.cpp;h=4454e9809f56f0b73d142f6f01be60bddfeb5556;hb=ad2c68be894854b5dd91295039afebc21e659c3a;hp=52f7f3ef3458a35cac0f81916c1d67d559dab41e;hpb=3e6769f502e8ce54a9ddd4579707438bb5827a62;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..4454e98 100644 --- a/dali-toolkit/devel-api/visual-factory/visual-base.cpp +++ b/dali-toolkit/devel-api/visual-factory/visual-base.cpp @@ -51,14 +51,19 @@ 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::SetTransformAndSize( const Property::Map& transform, Size controlSize ) +{ + GetImplementation( *this ).SetTransformAndSize( transform, controlSize ); } float Visual::Base::GetHeightForWidth( float width ) const @@ -66,7 +71,7 @@ float Visual::Base::GetHeightForWidth( float width ) const return GetImplementation( *this ).GetHeightForWidth( width ); } -void Visual::Base::GetNaturalSize(Vector2& naturalSize ) const +void Visual::Base::GetNaturalSize(Vector2& naturalSize ) { GetImplementation( *this ).GetNaturalSize( naturalSize ); } @@ -81,40 +86,11 @@ 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 } // namespace Dali