X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fvisual-factory%2Fvisual-base.cpp;h=b6a51fb3a6ab97823f5d74b2f2fef8b28803d7cc;hp=072ea6be7d35ae7c249eb999da6a864aaca4a18e;hb=8b9e1eb2a98b0cbfb30286e097fc03e9c5e6410d;hpb=92a400c3857fbf6c1e63693f22c94dcffe50e522 diff --git a/dali-toolkit/devel-api/visual-factory/visual-base.cpp b/dali-toolkit/devel-api/visual-factory/visual-base.cpp index 072ea6b..b6a51fb 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) 2017 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,48 +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(); } -void Visual::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 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 @@ -100,6 +96,9 @@ void Visual::Base::CreatePropertyMap( Property::Map& map ) const GetImplementation( *this ).CreatePropertyMap( map ); } + + + } // namespace Toolkit } // namespace Dali