X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fvisual-factory%2Fvisual-base.cpp;h=b6a51fb3a6ab97823f5d74b2f2fef8b28803d7cc;hb=c2747d79f281a82cf9c2cbec30f0f29965d1bde6;hp=dfe7370452dc923db1070065361f7dc31c6fe139;hpb=04dface1b4b122e8eef10026bf0a45d621d5f3d7;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 dfe7370..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. @@ -61,48 +61,34 @@ const std::string& Visual::Base::GetName() return GetImplementation( *this ).GetName(); } -void Visual::Base::SetSize( const Vector2& size ) +void Visual::Base::SetTransformAndSize( const Property::Map& transform, Size controlSize ) { - GetImplementation( *this ).SetSize( size ); + GetImplementation( *this ).SetTransformAndSize( transform, controlSize ); } -const Vector2& Visual::Base::GetSize() const +float Visual::Base::GetHeightForWidth( float width ) { - return GetImplementation( *this ).GetSize(); + return GetImplementation( *this ).GetHeightForWidth( width ); } -void Visual::Base::GetNaturalSize(Vector2& naturalSize ) const +float Visual::Base::GetWidthForHeight( float height ) { - GetImplementation( *this ).GetNaturalSize( naturalSize ); -} - -void Visual::Base::SetDepthIndex( float index ) -{ - GetImplementation( *this ).SetDepthIndex( index ); -} - -float Visual::Base::GetDepthIndex() const -{ - 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 @@ -110,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