X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Fbuttons%2Fbutton-devel.h;h=d66520ee08e4369a2d6d1ab52279853ebd978881;hb=ce0f6a98e157fda761dd9c3d0514609be937f388;hp=769c8eb05de1a16c6f9cb30aeea8df3d1a6620db;hpb=fb545906ceea3a2946c8a451f34ea7da283c4ffe;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/controls/buttons/button-devel.h b/dali-toolkit/devel-api/controls/buttons/button-devel.h index 769c8eb..d66520e 100644 --- a/dali-toolkit/devel-api/controls/buttons/button-devel.h +++ b/dali-toolkit/devel-api/controls/buttons/button-devel.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_BUTTON_DEVEL_H__ -#define __DALI_TOOLKIT_BUTTON_DEVEL_H__ +#ifndef DALI_TOOLKIT_BUTTON_DEVEL_H +#define DALI_TOOLKIT_BUTTON_DEVEL_H /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,124 +23,33 @@ namespace Dali { - namespace Toolkit { - namespace DevelButton { -/** - * - * @section ButtonProperties Properties - * |%Property enum |String name |Type |Writable|Animatable| - * |-------------------------------------------------------|----------------------------------------|--------------|--------|----------| - * | Property::DISABLED | disabled | BOOLEAN | Y | N | - * | Property::AUTO_REPEATING | autoRepeating | BOOLEAN | Y | N | - * | Property::INITIAL_AUTO_REPEATING_DELAY | initialAutoRepeatingDelay | FLOAT | Y | N | - * | Property::NEXT_AUTO_REPEATING_DELAY | nextAutoRepeatingDelay | FLOAT | Y | N | - * | Property::TOGGLABLE | togglable | BOOLEAN | Y | N | - * | Property::SELECTED | selected | BOOLEAN | Y | N | - * | Property::LABEL | label | MAP | Y | N | - * | Property::UNSELECTED_STATE_VISUAL | unselectedVisual | MAP | Y | N | - * | Property::SELECTED_VISUAL | selectedVisual | MAP | Y | N | - * | Property::DISABLED_SELECTED_VISUAL | disabledSelectedVisual | MAP | Y | N | - * | Property::DISABLED_UNSELECTED_VISUAL | disabledUnselectedVisual | MAP | Y | N | - * | Property::UNSELECTED_BACKGROUND_VISUAL | unselectedBackgroundVisual | MAP | Y | N | - * | Property::SELECTED_BACKGROUND_VISUAL | selectedBackgroundVisual | MAP | Y | N | - * | Property::DISABLED_UNSELECTED_BACKGROUND_VISUAL | disabledUnselectedBackgroundVisual | MAP | Y | N | - * | Property::DISABLED_SELECTED_BACKGROUND_VISUAL | disabledSelectedBackgroundVisual | MAP | Y | N | - * | Property::LABEL_RELATIVE_ALIGNMENT | labelRelativeAlignment | STRING | Y | N | - * ------------------------------------------------------------------------------------------------------------------------------------- - * - * - */ - - namespace Property - { - enum Type - { - DISABLED = Dali::Toolkit::Button::Property::DISABLED, - AUTO_REPEATING = Dali::Toolkit::Button::Property::AUTO_REPEATING, - INITIAL_AUTO_REPEATING_DELAY = Dali::Toolkit::Button::Property::INITIAL_AUTO_REPEATING_DELAY, - NEXT_AUTO_REPEATING_DELAY = Dali::Toolkit::Button::Property:: NEXT_AUTO_REPEATING_DELAY, - TOGGLABLE = Dali::Toolkit::Button::Property::TOGGLABLE, - SELECTED = Dali::Toolkit::Button::Property::SELECTED, - UNSELECTED_STATE_IMAGE = Dali::Toolkit::Button::Property::UNSELECTED_STATE_IMAGE, - SELECTED_STATE_IMAGE = Dali::Toolkit::Button::Property::SELECTED_STATE_IMAGE, - DISABLED_STATE_IMAGE = Dali::Toolkit::Button::Property::DISABLED_STATE_IMAGE, - UNSELECTED_COLOR = Dali::Toolkit::Button::Property::UNSELECTED_COLOR, - SELECTED_COLOR = Dali::Toolkit::Button::Property::SELECTED_COLOR, - LABEL = Dali::Toolkit::Button::Property::LABEL, - LABEL_TEXT = Dali::Toolkit::Button::Property::LABEL_TEXT, - - /** - * @brief name "unselectedVisual", type string if it is a url, map otherwise - * @details Sets the unselected button foreground/icon visual - */ - UNSELECTED_VISUAL = LABEL_TEXT + 1, - - /** - * @brief name "selectedImage", type string if it is a url, map otherwise - * @details Sets the selected button foreground/icon visual - * @SINCE_1_2.18 - */ - SELECTED_VISUAL, - - /** - * @brief name "disabledSelectedVisual", type string if it is a url, map otherwise - * @details Sets the disabled selected state foreground/icon button visual - */ - DISABLED_SELECTED_VISUAL, - - /** - * @brief name "disabledUnSelectedVisual", type string if it is a url, map otherwise - * @details Sets the disabled unselected state foreground/icon visual - */ - DISABLED_UNSELECTED_VISUAL, - - /** - * @brief name "unselectedBackgroundVisual", type string if it is a url, map otherwise - * @details Sets the disabled in the unselected state background, button visual - */ - UNSELECTED_BACKGROUND_VISUAL, - - /** - * @brief name "selectedBackgroundVisual", type string if it is a url, map otherwise - * @details Sets the selected background button visual - */ - SELECTED_BACKGROUND_VISUAL, - - /** - * @brief name "disabledUnselectedBackgroundVisual", type string if it is a url, map otherwise - * @details Sets the disabled while unselected background button visual - */ - DISABLED_UNSELECTED_BACKGROUND_VISUAL, - - /** - * @brief name "disabledSelectedBackgroundVisual", type string if it is a url, map otherwise - * @details Sets the disabled while selected background button visual - */ - DISABLED_SELECTED_BACKGROUND_VISUAL, - - /** +namespace Property +{ +enum Type +{ + /** * @brief name "labelRelativeAlignment", type STRING * @details Sets the position of the the label in relation to the foreground/icon if both present */ - LABEL_RELATIVE_ALIGNMENT, + LABEL_RELATIVE_ALIGNMENT = Dali::Toolkit::Button::Property::DISABLED_SELECTED_BACKGROUND_VISUAL + 1, - /** + /** * @brief name "labelPadding", type Vector4 * @details Sets the padding around the text */ - LABEL_PADDING, + LABEL_PADDING, - /** + /** * @brief name "visualPadding", type Vector4 * @details Sets the padding around the foreground visual */ - VISUAL_PADDING - }; - } // namespace Property + VISUAL_PADDING +}; +} // namespace Property } // namespace DevelButton @@ -148,4 +57,4 @@ namespace DevelButton } // namespace Dali -#endif // __DALI_TOOLKIT_BUTTON_DEVEL_H__ +#endif // DALI_TOOLKIT_BUTTON_DEVEL_H