X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Ftext-controls%2Ftext-selection-popup.h;h=720b37cad70bc011e96a5692088b129a27df832e;hb=HEAD;hp=4080c90ed8f0a53c5da4fd6edcff9ed76928d0bc;hpb=d74d70d51ed70b00e29a2b6feac5419124fffc49;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.h b/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.h index 4080c90..720b37c 100644 --- a/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.h +++ b/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_TEXT_SELECTION_POPUP_H /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 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. @@ -20,6 +20,7 @@ // INTERNAL INCLUDES #include +#include namespace Dali { @@ -163,6 +164,12 @@ public: POPUP_PRESSED_COLOR, /** + * @brief The corner radius of the option when pressed. + * @details Name "popupPressedCornerRadius", type float. + */ + POPUP_PRESSED_CORNER_RADIUS, + + /** * @brief The image to use for the option when pressed. * @details Name "popupPressedImage", type string. */ @@ -185,7 +192,42 @@ public: * @details Name "backgroundBorder", type Property::Map. * @note Optional. */ - BACKGROUND_BORDER + BACKGROUND_BORDER, + + /** + * @brief The popup background. + * @details Name "background", type Property::Map. + * @note Optional. + */ + BACKGROUND, + + /** + * @brief The minimum size of popup label. + * @details Name "labelMinimumSize", type Vector2. + * @note Optional. + */ + LABEL_MINIMUM_SIZE, + + /** + * @brief The padding of popup label. + * @details Name "labelPadding", type Vector4. + * @note Optional. + */ + LABEL_PADDING, + + /** + * @brief The text visual map of popup label. + * @details Name "labelTextVisual", type Property::Map. + * @note Optional. + */ + LABEL_TEXT_VISUAL, + + /** + * @brief Whether the scroll-bar is enabled. + * @details Name "enableScrollBar", type Property::BOOLEAN. + * @note Optional. + */ + ENABLE_SCROLL_BAR }; }; @@ -217,6 +259,21 @@ public: TextSelectionPopup& operator=(const TextSelectionPopup& handle); /** + * @brief Move constructor. + * + * @param[in] handle The handle to move from. + */ + TextSelectionPopup(TextSelectionPopup&& handle); + + /** + * @brief Move assignment operator. + * + * @param[in] handle The handle to move from. + * @return A reference to this. + */ + TextSelectionPopup& operator=(TextSelectionPopup&& handle); + + /** * @brief Destructor * * This is non-virtual since derived Handle types must not contain data or virtual methods. @@ -257,6 +314,20 @@ public: */ void HidePopup(); + /** + * @brief Used to set options of text selection popup + * + * @param[in] properties The text selection popup options + */ + void SetProperties(const Dali::Property::Map& properties); + + /** + * @brief Retrieve property map of text selection popup options + * + * @param[out] properties The text selection popup options + */ + void GetProperties(Dali::Property::Map& properties); + public: // Not intended for application developers /** * @brief Creates a handle using the Toolkit::Internal implementation.