License conversion from Flora to Apache 2.0
[platform/core/uifw/dali-adaptor.git] / capi / dali / public-api / adaptor-framework / common / style-change.h
1 #ifndef __DALI_STYLE_CHANGE_H__
2 #define __DALI_STYLE_CHANGE_H__
3
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20
21 /**
22  * @addtogroup CAPI_DALI_ADAPTOR_MODULE
23  * @{
24  */
25
26 namespace Dali DALI_IMPORT_API
27 {
28
29 /**
30  * @brief Used to describe what style information has changed.
31  *
32  * This structure is used when any style changes occur and contains information about what exactly
33  * has changed.
34  */
35 struct StyleChange
36 {
37   // Data
38
39   bool defaultFontChange:1;     ///< Denotes that the default font has changed.
40   bool defaultFontSizeChange:1; ///< Denotes that the default font size has changed.
41   bool themeChange:1;           ///< Denotes that the theme has changed.
42   std::string themeFilePath;    ///< Contains the path to the new theme file.
43
44   // Construction
45
46   /**
47    * @brief Default Constructor.
48    */
49   StyleChange()
50   : defaultFontChange(false),
51     defaultFontSizeChange(false),
52     themeChange(false)
53   {
54   }
55 };
56
57 } // namespace Dali
58
59 /**
60  * @}
61  */
62 #endif // __DALI_STYLE_CHANGE_H__