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=4454e9809f56f0b73d142f6f01be60bddfeb5556;hb=8b9e1eb2a98b0cbfb30286e097fc03e9c5e6410d;hpb=89ae5b785c2eb8276d5fb350004414bc3fab8a2d diff --git a/dali-toolkit/devel-api/visual-factory/visual-base.cpp b/dali-toolkit/devel-api/visual-factory/visual-base.cpp index 4454e98..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. @@ -66,22 +66,27 @@ void Visual::Base::SetTransformAndSize( const Property::Map& transform, Size con GetImplementation( *this ).SetTransformAndSize( transform, controlSize ); } -float Visual::Base::GetHeightForWidth( float width ) const +float Visual::Base::GetHeightForWidth( float width ) { return GetImplementation( *this ).GetHeightForWidth( width ); } +float Visual::Base::GetWidthForHeight( float height ) +{ + return GetImplementation( *this ).GetWidthForHeight( height ); +} + void Visual::Base::GetNaturalSize(Vector2& naturalSize ) { GetImplementation( *this ).GetNaturalSize( naturalSize ); } -void Visual::Base::SetDepthIndex( float index ) +void Visual::Base::SetDepthIndex( int index ) { GetImplementation( *this ).SetDepthIndex( index ); } -float Visual::Base::GetDepthIndex() const +int Visual::Base::GetDepthIndex() const { return GetImplementation( *this ).GetDepthIndex(); } @@ -91,6 +96,9 @@ void Visual::Base::CreatePropertyMap( Property::Map& map ) const GetImplementation( *this ).CreatePropertyMap( map ); } + + + } // namespace Toolkit } // namespace Dali