X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fvisual-factory%2Fvisual-base.cpp;h=7b20c60822a0164d2bd1caab916582e1c1a68ed0;hb=e4235b523a775fbbee334dea6cd929a6f3ccbc80;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..7b20c60 100644 --- a/dali-toolkit/devel-api/visual-factory/visual-base.cpp +++ b/dali-toolkit/devel-api/visual-factory/visual-base.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -51,55 +51,54 @@ 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() const { - return GetImplementation( *this ).GetSize(); + return GetImplementation( *this ).GetName(); } -void Visual::Base::GetNaturalSize(Vector2& naturalSize ) const +void Visual::Base::SetTransformAndSize( const Dali::Property::Map& transform, Size controlSize ) { - 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( int index ) { - GetImplementation( *this ).SetOffStage( actor ); + GetImplementation( *this ).SetDepthIndex( index ); } -void Visual::Base::RemoveAndReset( Actor& actor ) +int Visual::Base::GetDepthIndex() const { - if( actor && *this ) - { - SetOffStage( actor ); - } - Reset(); + return GetImplementation( *this ).GetDepthIndex(); } -void Visual::Base::CreatePropertyMap( Property::Map& map ) const +void Visual::Base::CreatePropertyMap( Dali::Property::Map& map ) const { GetImplementation( *this ).CreatePropertyMap( map ); } + + + } // namespace Toolkit } // namespace Dali