1 #ifndef __DALI_TOOLKIT_BUTTON_DEVEL_H__
2 #define __DALI_TOOLKIT_BUTTON_DEVEL_H__
5 * Copyright (c) 2016 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.
22 #include <dali-toolkit/public-api/controls/buttons/button.h>
34 * @section ButtonProperties Properties
35 * |%Property enum |String name |Type |Writable|Animatable|
36 * |-------------------------------------------------------|----------------------------------------|--------------|--------|----------|
37 * | Property::DISABLED | disabled | BOOLEAN | Y | N |
38 * | Property::AUTO_REPEATING | autoRepeating | BOOLEAN | Y | N |
39 * | Property::INITIAL_AUTO_REPEATING_DELAY | initialAutoRepeatingDelay | FLOAT | Y | N |
40 * | Property::NEXT_AUTO_REPEATING_DELAY | nextAutoRepeatingDelay | FLOAT | Y | N |
41 * | Property::TOGGLABLE | togglable | BOOLEAN | Y | N |
42 * | Property::SELECTED | selected | BOOLEAN | Y | N |
43 * | Property::LABEL | label | MAP | Y | N |
44 * | Property::UNSELECTED_STATE_VISUAL | unselectedVisual | MAP | Y | N |
45 * | Property::SELECTED_VISUAL | selectedVisual | MAP | Y | N |
46 * | Property::DISABLED_SELECTED_VISUAL | disabledSelectedVisual | MAP | Y | N |
47 * | Property::DISABLED_UNSELECTED_VISUAL | disabledUnselectedVisual | MAP | Y | N |
48 * | Property::UNSELECTED_BACKGROUND_VISUAL | unselectedBackgroundVisual | MAP | Y | N |
49 * | Property::SELECTED_BACKGROUND_VISUAL | selectedBackgroundVisual | MAP | Y | N |
50 * | Property::DISABLED_UNSELECTED_BACKGROUND_VISUAL | disabledUnselectedBackgroundVisual | MAP | Y | N |
51 * | Property::DISABLED_SELECTED_BACKGROUND_VISUAL | disabledSelectedBackgroundVisual | MAP | Y | N |
52 * | Property::LABEL_RELATIVE_ALIGNMENT | labelRelativeAlignment | STRING | Y | N |
53 * -------------------------------------------------------------------------------------------------------------------------------------
62 DISABLED = Dali::Toolkit::Button::Property::DISABLED,
63 AUTO_REPEATING = Dali::Toolkit::Button::Property::AUTO_REPEATING,
64 INITIAL_AUTO_REPEATING_DELAY = Dali::Toolkit::Button::Property::INITIAL_AUTO_REPEATING_DELAY,
65 NEXT_AUTO_REPEATING_DELAY = Dali::Toolkit::Button::Property:: NEXT_AUTO_REPEATING_DELAY,
66 TOGGLABLE = Dali::Toolkit::Button::Property::TOGGLABLE,
67 SELECTED = Dali::Toolkit::Button::Property::SELECTED,
68 UNSELECTED_STATE_IMAGE = Dali::Toolkit::Button::Property::UNSELECTED_STATE_IMAGE,
69 SELECTED_STATE_IMAGE = Dali::Toolkit::Button::Property::SELECTED_STATE_IMAGE,
70 DISABLED_STATE_IMAGE = Dali::Toolkit::Button::Property::DISABLED_STATE_IMAGE,
71 UNSELECTED_COLOR = Dali::Toolkit::Button::Property::UNSELECTED_COLOR,
72 SELECTED_COLOR = Dali::Toolkit::Button::Property::SELECTED_COLOR,
73 LABEL = Dali::Toolkit::Button::Property::LABEL,
74 LABEL_TEXT = Dali::Toolkit::Button::Property::LABEL_TEXT,
77 * @brief name "unselectedVisual", type string if it is a url, map otherwise
78 * @details Sets the unselected button foreground/icon visual
80 UNSELECTED_VISUAL = LABEL_TEXT + 1,
83 * @brief name "selectedImage", type string if it is a url, map otherwise
84 * @details Sets the selected button foreground/icon visual
90 * @brief name "disabledSelectedVisual", type string if it is a url, map otherwise
91 * @details Sets the disabled selected state foreground/icon button visual
93 DISABLED_SELECTED_VISUAL,
96 * @brief name "disabledUnSelectedVisual", type string if it is a url, map otherwise
97 * @details Sets the disabled unselected state foreground/icon visual
99 DISABLED_UNSELECTED_VISUAL,
102 * @brief name "unselectedBackgroundVisual", type string if it is a url, map otherwise
103 * @details Sets the disabled in the unselected state background, button visual
105 UNSELECTED_BACKGROUND_VISUAL,
108 * @brief name "selectedBackgroundVisual", type string if it is a url, map otherwise
109 * @details Sets the selected background button visual
111 SELECTED_BACKGROUND_VISUAL,
114 * @brief name "disabledUnselectedBackgroundVisual", type string if it is a url, map otherwise
115 * @details Sets the disabled while unselected background button visual
117 DISABLED_UNSELECTED_BACKGROUND_VISUAL,
120 * @brief name "disabledSelectedBackgroundVisual", type string if it is a url, map otherwise
121 * @details Sets the disabled while selected background button visual
123 DISABLED_SELECTED_BACKGROUND_VISUAL,
126 * @brief name "labelRelativeAlignment", type STRING
127 * @details Sets the position of the the label in relation to the foreground/icon if both present
129 LABEL_RELATIVE_ALIGNMENT,
132 * @brief name "labelPadding", type Vector4
133 * @details Sets the padding around the text
138 * @brief name "visualPadding", type Vector4
139 * @details Sets the padding around the foreground visual
143 } // namespace Property
145 } // namespace DevelButton
147 } // namespace Toolkit
151 #endif // __DALI_TOOLKIT_BUTTON_DEVEL_H__