2 * Copyright (c) 2022 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) = default;
32 StyleMonitor& StyleMonitor::operator=(const StyleMonitor& monitor) = default;
34 StyleMonitor::StyleMonitor(StyleMonitor&& monitor) = default;
36 StyleMonitor& StyleMonitor::operator=(StyleMonitor&& monitor) = default;
38 StyleMonitor StyleMonitor::StyleMonitor::Get()
40 return Internal::Adaptor::StyleMonitor::Get();
43 StyleMonitor::~StyleMonitor()
47 StyleMonitor StyleMonitor::DownCast(BaseHandle handle)
49 return StyleMonitor(dynamic_cast<Internal::Adaptor::StyleMonitor*>(handle.GetObjectPtr()));
52 bool StyleMonitor::EnsureFontClientCreated()
54 return GetImplementation(*this).EnsureFontClientCreated();
57 std::string StyleMonitor::GetDefaultFontFamily() const
59 return GetImplementation(*this).GetDefaultFontFamily();
62 std::string StyleMonitor::GetDefaultFontStyle() const
64 return GetImplementation(*this).GetDefaultFontStyle();
67 int StyleMonitor::GetDefaultFontSize() const
69 return GetImplementation(*this).GetDefaultFontSize();
72 const std::string& StyleMonitor::GetTheme() const
74 return GetImplementation(*this).GetTheme();
77 void StyleMonitor::SetTheme(const std::string& themFilePath)
79 return GetImplementation(*this).SetTheme(themFilePath);
82 bool StyleMonitor::LoadThemeFile(const std::string& filename, std::string& output)
84 return GetImplementation(*this).LoadThemeFile(filename, output);
87 StyleMonitor::StyleChangeSignalType& StyleMonitor::StyleChangeSignal()
89 return GetImplementation(*this).StyleChangeSignal();
92 StyleMonitor::StyleMonitor(Internal::Adaptor::StyleMonitor* internal)
93 : BaseHandle(internal)