X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Ftext-controls%2Ftext-editor.h;h=18bb112444131f6008ee51196d66e3f53bf132f3;hb=4593cc619ab0739fc8586c0c752209c555b0c8e3;hp=f633f4558797df94658fc828d25207b0717e4b8c;hpb=05e6b5073a18b6ebe1f536a3693300b3ee35b199;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/public-api/controls/text-controls/text-editor.h b/dali-toolkit/public-api/controls/text-controls/text-editor.h index f633f45..18bb112 100644 --- a/dali-toolkit/public-api/controls/text-controls/text-editor.h +++ b/dali-toolkit/public-api/controls/text-controls/text-editor.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_TEXT_EDITOR_H__ -#define __DALI_TOOLKIT_TEXT_EDITOR_H__ +#ifndef DALI_TOOLKIT_TEXT_EDITOR_H +#define DALI_TOOLKIT_TEXT_EDITOR_H /* - * Copyright (c) 2017 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. @@ -29,7 +29,7 @@ namespace Toolkit namespace Internal DALI_INTERNAL { -class TextEditor; + class TextEditor; } /** * @addtogroup dali_toolkit_controls_text_controls @@ -46,7 +46,7 @@ class TextEditor; * | inputStyleChanged | @ref InputStyleChangedSignal() | @SINCE_1_2_2 | * */ -class DALI_IMPORT_API TextEditor : public Control +class DALI_TOOLKIT_API TextEditor : public Control { public: @@ -57,7 +57,7 @@ public: enum PropertyRange { PROPERTY_START_INDEX = Control::CONTROL_PROPERTY_END_INDEX + 1, - PROPERTY_END_INDEX = PROPERTY_START_INDEX + 1000 ///< Reserve property indices + PROPERTY_END_INDEX = PROPERTY_START_INDEX + 1000 ///< Reserve property indices }; /** @@ -73,18 +73,11 @@ public: enum { /** - * @brief The type or rendering e.g. bitmap-based. - * @details Name "renderingBackend", type Property::INTEGER. - * @SINCE_1_1.37 - */ - RENDERING_BACKEND = PROPERTY_START_INDEX, - - /** * @brief The text to display in UTF-8 format. * @details Name "text", type Property::STRING. * @SINCE_1_1.37 */ - TEXT, + TEXT = PROPERTY_START_INDEX, /** * @brief The text color. @@ -453,22 +446,22 @@ public: */ struct InputStyle { - /** - * @brief Enumeration for mask used by the signal InputStyleChangedSignal(). - * @SINCE_1_2_2 - */ + /** + * @brief Enumeration for mask used by the signal InputStyleChangedSignal(). + * @SINCE_1_2_2 + */ enum Mask { - NONE = 0x0000, ///< @SINCE_1_2_2 - COLOR = 0x0001, ///< @SINCE_1_2_2 - FONT_FAMILY = 0x0002, ///< @SINCE_1_2_2 - POINT_SIZE = 0x0004, ///< @SINCE_1_2_2 - FONT_STYLE = 0x0008, ///< @SINCE_1_2_2 + NONE = 0x0000, ///< @SINCE_1_2_2 + COLOR = 0x0001, ///< @SINCE_1_2_2 + FONT_FAMILY = 0x0002, ///< @SINCE_1_2_2 + POINT_SIZE = 0x0004, ///< @SINCE_1_2_2 + FONT_STYLE = 0x0008, ///< @SINCE_1_2_2 LINE_SPACING = 0x0010, ///< @SINCE_1_2_2 - UNDERLINE = 0x0020, ///< @SINCE_1_2_2 - SHADOW = 0x0040, ///< @SINCE_1_2_2 - EMBOSS = 0x0080, ///< @SINCE_1_2_2 - OUTLINE = 0x0100 ///< @SINCE_1_2_2 + UNDERLINE = 0x0020, ///< @SINCE_1_2_2 + SHADOW = 0x0040, ///< @SINCE_1_2_2 + EMBOSS = 0x0080, ///< @SINCE_1_2_2 + OUTLINE = 0x0100 ///< @SINCE_1_2_2 }; }; @@ -497,19 +490,22 @@ public: * @brief Text changed signal type. * @SINCE_1_1.37 */ - typedef Signal TextChangedSignalType; + typedef Signal< void + ( TextEditor ) > TextChangedSignalType; /** * @brief Input Style changed signal type. * @SINCE_1_2_2 */ - typedef Signal InputStyleChangedSignalType; + typedef Signal< void + ( TextEditor, InputStyle::Mask ) > InputStyleChangedSignalType; /** * @brief Scroll state changed signal type. * @SINCE_1_2.60 */ - typedef Signal< void ( TextEditor, Scroll::Type ) > ScrollStateChangedSignalType; + typedef Signal< void + ( TextEditor, Scroll::Type ) > ScrollStateChangedSignalType; /** * @brief Creates the TextEditor control. @@ -517,7 +513,8 @@ public: * @SINCE_1_1.37 * @return A handle to the TextEditor control */ - static TextEditor New(); + static TextEditor + New(); /** * @brief Creates an empty handle. @@ -532,7 +529,15 @@ public: * @SINCE_1_1.37 * @param[in] handle The handle to copy from */ - TextEditor( const TextEditor& handle ); + TextEditor( const TextEditor &handle ); + + /** + * @brief Move constructor + * @SINCE_1_9.23 + * + * @param[in] rhs A reference to the moved handle + */ + TextEditor( TextEditor&& rhs ); /** * @brief Assignment operator. @@ -541,7 +546,16 @@ public: * @param[in] handle The handle to copy from * @return A reference to this */ - TextEditor& operator=( const TextEditor& handle ); + TextEditor& operator=( const TextEditor &handle ); + + /** + * @brief Move assignment + * @SINCE_1_9.23 + * + * @param[in] rhs A reference to the moved handle + * @return A reference to this + */ + TextEditor& operator=( TextEditor&& rhs ); /** * @brief Destructor. @@ -561,7 +575,8 @@ public: * @param[in] handle Handle to an object * @return Handle to a TextEditor or an empty handle */ - static TextEditor DownCast( BaseHandle handle ); + static TextEditor + DownCast( BaseHandle handle ); // Signals @@ -576,7 +591,8 @@ public: * @SINCE_1_1.37 * @return The signal to connect to */ - TextChangedSignalType& TextChangedSignal(); + TextChangedSignalType& + TextChangedSignal(); /** * @brief This signal is emitted when the input style is updated as a consequence of a change in the cursor position. @@ -590,7 +606,8 @@ public: * @SINCE_1_2_2 * @return The signal to connect to */ - InputStyleChangedSignalType& InputStyleChangedSignal(); + InputStyleChangedSignalType& + InputStyleChangedSignal(); /** * @brief This signal is emitted when TextEditor scrolling is started or finished. @@ -604,7 +621,8 @@ public: * @SINCE_1_2.60 * @return The signal to connect to */ - ScrollStateChangedSignalType& ScrollStateChangedSignal(); + ScrollStateChangedSignalType& + ScrollStateChangedSignal(); public: // Not intended for application developers @@ -615,7 +633,8 @@ public: // Not intended for application developers * @SINCE_1_1.37 * @param[in] implementation The Control implementation */ - DALI_INTERNAL TextEditor( Internal::TextEditor& implementation ); + DALI_INTERNAL + TextEditor( Internal::TextEditor &implementation ); /** * @brief Allows the creation of this Control from an Internal::CustomActor pointer. @@ -623,7 +642,8 @@ public: // Not intended for application developers * @SINCE_1_1.37 * @param[in] internal A pointer to the internal CustomActor */ - explicit DALI_INTERNAL TextEditor( Dali::Internal::CustomActor* internal ); + explicit DALI_INTERNAL + TextEditor( Dali::Internal::CustomActor *internal ); /// @endcond }; @@ -634,4 +654,4 @@ public: // Not intended for application developers } // namespace Dali -#endif // __DALI_TOOLKIT_TEXT_EDITOR_H__ +#endif // DALI_TOOLKIT_TEXT_EDITOR_H