X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fvisual-factory%2Fvisual-base.cpp;h=790a3e7f0a8f8e61c936d83137d99b2e49a23e54;hb=refs%2Fchanges%2F82%2F96982%2F7;hp=072ea6be7d35ae7c249eb999da6a864aaca4a18e;hpb=92a400c3857fbf6c1e63693f22c94dcffe50e522;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 072ea6b..790a3e7 100644 --- a/dali-toolkit/devel-api/visual-factory/visual-base.cpp +++ b/dali-toolkit/devel-api/visual-factory/visual-base.cpp @@ -51,17 +51,27 @@ 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 ).SetTransformAndSize( transform, controlSize ); +} + +float Visual::Base::GetHeightForWidth( float width ) const +{ + return GetImplementation( *this ).GetHeightForWidth( width ); +} + +void Visual::Base::GetNaturalSize(Vector2& naturalSize ) { GetImplementation( *this ).GetNaturalSize( naturalSize ); } @@ -76,28 +86,19 @@ 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 ) +void Visual::Base::CreatePropertyMap( Property::Map& map ) const { - GetImplementation( *this ).SetOffStage( actor ); + GetImplementation( *this ).CreatePropertyMap( map ); } -void Visual::Base::RemoveAndReset( Actor& actor ) +void Visual::Base::SetProperty( Dali::Property::Index index, const Dali::Property::Value& propertyValue ) { - if( actor && *this ) - { - SetOffStage( actor ); - } - Reset(); + GetImplementation( *this ).SetProperty( index, propertyValue ); } -void Visual::Base::CreatePropertyMap( Property::Map& map ) const +Dali::Property::Value Visual::Base::GetProperty( Dali::Property::Index index ) { - GetImplementation( *this ).CreatePropertyMap( map ); + return GetImplementation( *this ).GetProperty( index ); } } // namespace Toolkit