2 * Copyright (c) 2020 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali/devel-api/adaptor-framework/style-monitor.h>
22 #include <dali/internal/styling/common/style-monitor-impl.h>
26 StyleMonitor::StyleMonitor()
30 StyleMonitor::StyleMonitor(const StyleMonitor& monitor)
35 StyleMonitor StyleMonitor::StyleMonitor::Get()
37 return Internal::Adaptor::StyleMonitor::Get();
40 StyleMonitor::~StyleMonitor()
44 StyleMonitor StyleMonitor::DownCast(BaseHandle handle)
46 return StyleMonitor(dynamic_cast<Internal::Adaptor::StyleMonitor*>(handle.GetObjectPtr()));
49 std::string StyleMonitor::GetDefaultFontFamily() const
51 return GetImplementation(*this).GetDefaultFontFamily();
54 std::string StyleMonitor::GetDefaultFontStyle() const
56 return GetImplementation(*this).GetDefaultFontStyle();
59 int StyleMonitor::GetDefaultFontSize() const
61 return GetImplementation(*this).GetDefaultFontSize();
64 const std::string& StyleMonitor::GetTheme() const
66 return GetImplementation(*this).GetTheme();
69 void StyleMonitor::SetTheme(const std::string& themFilePath)
71 return GetImplementation(*this).SetTheme(themFilePath);
74 bool StyleMonitor::LoadThemeFile(const std::string& filename, std::string& output)
76 return GetImplementation(*this).LoadThemeFile(filename, output);
79 StyleMonitor::StyleChangeSignalType& StyleMonitor::StyleChangeSignal()
81 return GetImplementation(*this).StyleChangeSignal();
84 StyleMonitor& StyleMonitor::operator=(const StyleMonitor& monitor)
88 BaseHandle::operator=(monitor);
93 StyleMonitor::StyleMonitor(Internal::Adaptor::StyleMonitor* internal)
94 : BaseHandle(internal)