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=94f761748cb0f8bd90956a3994b266860ec8d588;hp=790a3e7f0a8f8e61c936d83137d99b2e49a23e54;hb=1d82abb8a1a514ce0af63004706135fb7883f89b;hpb=a68dbe03813fd3db34c81f4e6960572e8882930b diff --git a/dali-toolkit/devel-api/visual-factory/visual-base.cpp b/dali-toolkit/devel-api/visual-factory/visual-base.cpp index 790a3e7..94f7617 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) 2020 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. @@ -23,10 +23,8 @@ namespace Dali { - namespace Toolkit { - Visual::Base::Base() { } @@ -35,70 +33,70 @@ Visual::Base::~Base() { } -Visual::Base::Base( const Visual::Base& handle ) -: BaseHandle( handle ) +Visual::Base::Base(const Visual::Base& handle) +: BaseHandle(handle) { } -Visual::Base& Visual::Base::operator=( const Visual::Base& handle ) +Visual::Base& Visual::Base::operator=(const Visual::Base& handle) { - BaseHandle::operator=( handle ); + BaseHandle::operator=(handle); return *this; } -Visual::Base::Base(Internal::Visual::Base *impl) -: BaseHandle( impl ) +Visual::Base::Base(Internal::Visual::Base* impl) +: BaseHandle(impl) { } -void Visual::Base::SetName( const std::string& name ) +void Visual::Base::SetName(const std::string& name) { - GetImplementation( *this ).SetName( name ); + GetImplementation(*this).SetName(name); } -const std::string& Visual::Base::GetName() +const std::string& Visual::Base::GetName() const { - return GetImplementation( *this ).GetName(); + return GetImplementation(*this).GetName(); } -void Visual::Base::SetTransformAndSize( const Property::Map& transform, Size controlSize ) +void Visual::Base::SetTransformAndSize(const Dali::Property::Map& transform, Size controlSize) { - GetImplementation( *this ).SetTransformAndSize( transform, controlSize ); + GetImplementation(*this).SetTransformAndSize(transform, controlSize); } -float Visual::Base::GetHeightForWidth( float width ) const +float Visual::Base::GetHeightForWidth(float width) { - return GetImplementation( *this ).GetHeightForWidth( width ); + return GetImplementation(*this).GetHeightForWidth(width); } -void Visual::Base::GetNaturalSize(Vector2& naturalSize ) +float Visual::Base::GetWidthForHeight(float height) { - GetImplementation( *this ).GetNaturalSize( naturalSize ); + return GetImplementation(*this).GetWidthForHeight(height); } -void Visual::Base::SetDepthIndex( float index ) +void Visual::Base::GetNaturalSize(Vector2& naturalSize) { - GetImplementation( *this ).SetDepthIndex( index ); + GetImplementation(*this).GetNaturalSize(naturalSize); } -float Visual::Base::GetDepthIndex() const +void Visual::Base::SetDepthIndex(int index) { - return GetImplementation( *this ).GetDepthIndex(); + GetImplementation(*this).SetDepthIndex(index); } -void Visual::Base::CreatePropertyMap( Property::Map& map ) const +int Visual::Base::GetDepthIndex() const { - GetImplementation( *this ).CreatePropertyMap( map ); + return GetImplementation(*this).GetDepthIndex(); } -void Visual::Base::SetProperty( Dali::Property::Index index, const Dali::Property::Value& propertyValue ) +void Visual::Base::CreatePropertyMap(Dali::Property::Map& map) const { - GetImplementation( *this ).SetProperty( index, propertyValue ); + GetImplementation(*this).CreatePropertyMap(map); } -Dali::Property::Value Visual::Base::GetProperty( Dali::Property::Index index ) +Visual::Type Visual::Base::GetType() const { - return GetImplementation( *this ).GetProperty( index ); + return GetImplementation(*this).GetType(); } } // namespace Toolkit