X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fstyling%2Fstyle-manager.cpp;h=5a95407af89de7c7041c90cee750697ea7fbaeae;hp=126c208396d7cd94195be52c2b07635013a19c71;hb=HEAD;hpb=e4e5db1d2d7997e7bf803a531048d8dcb959083b diff --git a/dali-toolkit/public-api/styling/style-manager.cpp b/dali-toolkit/public-api/styling/style-manager.cpp index 126c208..5a95407 100644 --- a/dali-toolkit/public-api/styling/style-manager.cpp +++ b/dali-toolkit/public-api/styling/style-manager.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. @@ -26,10 +26,8 @@ namespace Dali { - namespace Toolkit { - StyleManager::StyleManager() { } @@ -43,62 +41,41 @@ StyleManager StyleManager::Get() return Internal::StyleManager::Get(); } -void StyleManager::SetOrientationValue( int orientation ) -{ - GetImpl(*this).SetOrientationValue( orientation ); -} - -int StyleManager::GetOrientationValue() -{ - return GetImpl(*this).GetOrientationValue(); -} - -void StyleManager::SetOrientation( Orientation orientation ) +void StyleManager::ApplyTheme(const std::string& themeFile) { - GetImpl(*this).SetOrientation( orientation ); + GetImpl(*this).ApplyTheme(themeFile); } -Orientation StyleManager::GetOrientation() +void StyleManager::ApplyDefaultTheme() { - return GetImpl(*this).GetOrientation(); + GetImpl(*this).ApplyDefaultTheme(); } -void StyleManager::SetStyleConstant( const std::string& key, const Property::Value& value ) +void StyleManager::SetStyleConstant(const std::string& key, const Property::Value& value) { - GetImpl(*this).SetStyleConstant( key, value ); + GetImpl(*this).SetStyleConstant(key, value); } -bool StyleManager::GetStyleConstant( const std::string& key, Property::Value& valueOut ) +bool StyleManager::GetStyleConstant(const std::string& key, Property::Value& valueOut) { - return GetImpl(*this).GetStyleConstant( key, valueOut ); + return GetImpl(*this).GetStyleConstant(key, valueOut); } -void StyleManager::ApplyStyle( Toolkit::Control control, const std::string& jsonFileName, const std::string& styleName ) +void StyleManager::ApplyStyle(Toolkit::Control control, const std::string& jsonFileName, const std::string& styleName) { - GetImpl(*this).ApplyStyle( control, jsonFileName, styleName ); + GetImpl(*this).ApplyStyle(control, jsonFileName, styleName); } -StyleManager::StyleManager( Internal::StyleManager *impl ) - : BaseHandle( impl ) +StyleManager::StyleChangedSignalType& StyleManager::StyleChangedSignal() { + return GetImpl(*this).StyleChangedSignal(); } -StyleManager::StyleChangeSignalType& StyleManager::StyleChangeSignal() +StyleManager::StyleManager(Internal::StyleManager* impl) +: BaseHandle(impl) { - return GetImpl( *this ).StyleChangeSignal(); -} - -void StyleManager::RequestThemeChange( const std::string& themeFile ) -{ - GetImpl(*this).RequestThemeChange( themeFile ); -} - -void StyleManager::RequestDefaultTheme() -{ - GetImpl(*this).RequestDefaultTheme(); } } // namespace Toolkit } // namespace Dali -