Merge "Add push-button sample for dashboard" into devel/master
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / controls / control-devel.h
1 #ifndef DALI_TOOLKIT_CONTROL_DEVEL_H
2 #define DALI_TOOLKIT_CONTROL_DEVEL_H
3
4 /*
5  * Copyright (c) 2016 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 // INTERNAL INCLUDES
22 #include <dali-toolkit/public-api/controls/control.h>
23
24 namespace Dali
25 {
26
27 namespace Toolkit
28 {
29
30 namespace DevelControl
31 {
32
33 namespace Property
34 {
35
36 enum
37 {
38   STYLE_NAME        = Control::Property::STYLE_NAME,
39   BACKGROUND_COLOR  = Control::Property::BACKGROUND_COLOR,
40   BACKGROUND_IMAGE  = Control::Property::BACKGROUND_IMAGE,
41   KEY_INPUT_FOCUS   = Control::Property::KEY_INPUT_FOCUS,
42   BACKGROUND        = Control::Property::BACKGROUND,
43
44   /**
45    * @brief Displays a tooltip when the control is hovered over.
46    * @details Name "tooltip", type Property::STRING, Property::ARRAY or Property::MAP.
47    *          If Property::STRING, then the style specified in the stylesheet is used.
48    *          If Property::ARRAY of Visuals then all are displayed in one row.
49    *          If Property::MAP, then it should be a map of Tooltip properties.
50    * @note The tooltip is only activated if display content is received, i.e. a string (text) or visual to show.
51    *       The rest is used to just build up the style of the tooltip (i.e. background, text color/point-size etc.)
52    * @note When retrieved, a Property::MAP is returned.
53    * @see Toolkit::Tooltip
54    */
55   TOOLTIP = BACKGROUND + 1,
56 };
57
58 } // namespace Property
59
60 } // namespace DevelControl
61
62 } // namespace Toolkit
63
64 } // namespace Dali
65
66 #endif // DALI_TOOLKIT_CONTROL_DEVEL_H