1 #ifndef __DALI_TOOLKIT_TOOLKIT_STYLE_MONITOR_H__
2 #define __DALI_TOOLKIT_TOOLKIT_STYLE_MONITOR_H__
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
25 #define __DALI_STYLE_MONITOR_H__
26 #include <dali/public-api/object/base-handle.h>
27 #include <dali/public-api/signals/dali-signal.h>
28 #include <dali/public-api/adaptor-framework/style-change.h>
41 class StyleMonitor : public BaseHandle
44 typedef Signal< void (StyleMonitor, StyleChange) > StyleChangeSignalType;
45 static const std::string DEFAULT_FONT_FAMILY;
46 static const float DEFAULT_FONT_SIZE;
48 public: // Creation & Destruction
50 StyleMonitor(const StyleMonitor& monitor);
51 static StyleMonitor Get();
53 static StyleMonitor DownCast( BaseHandle handle );
55 public: // Style Information
56 std::string GetDefaultFontFamily() const;
57 float GetDefaultFontSize() const;
58 const std::string& GetTheme() const;
59 void SetTheme(std::string themeFilePath);
62 StyleChangeSignalType& StyleChangeSignal();
63 void EmitStyleChangeSignal(StyleChange handle);
66 StyleMonitor& operator=(const StyleMonitor& monitor);
69 StyleMonitor(Internal::Adaptor::StyleMonitor* styleMonitor);
75 #endif // __DALI_TOOLKIT_TOOLKIT_STYLE_MONITOR_H__