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 Flora License, Version 1.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://floralicense.org/license/
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.
24 #define __DALI_STYLE_MONITOR_H__
25 #include <dali/public-api/object/base-handle.h>
26 #include <dali/public-api/signals/dali-signal-v2.h>
27 #include <dali/public-api/adaptor-framework/common/style-change.h>
40 class StyleMonitor : public BaseHandle
43 typedef SignalV2< void (StyleMonitor, StyleChange) > StyleChangeSignalV2;
44 static const std::string DEFAULT_FONT_FAMILY;
45 static const float DEFAULT_FONT_SIZE;
47 public: // Creation & Destruction
49 StyleMonitor(const StyleMonitor& monitor);
50 static StyleMonitor Get();
51 virtual ~StyleMonitor();
52 static StyleMonitor DownCast( BaseHandle handle );
53 using BaseHandle::operator=;
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 StyleChangeSignalV2& 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__