1 #ifndef DALI_TOOLKIT_TEXT_CONTROLLER_H
2 #define DALI_TOOLKIT_TEXT_CONTROLLER_H
5 * Copyright (c) 2022 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/devel-api/adaptor-framework/input-method-context.h>
23 #include <dali/public-api/events/gesture.h>
26 #include <dali-toolkit/devel-api/controls/text-controls/text-anchor-devel.h>
27 #include <dali-toolkit/devel-api/controls/text-controls/text-label-devel.h>
28 #include <dali-toolkit/devel-api/controls/text-controls/text-selection-popup-callback-interface.h>
29 #include <dali-toolkit/devel-api/text/text-enumerations-devel.h>
30 #include <dali-toolkit/internal/text/decorator/text-decorator.h>
31 #include <dali-toolkit/internal/text/hidden-text.h>
32 #include <dali-toolkit/internal/text/input-filter.h>
33 #include <dali-toolkit/internal/text/layouts/layout-engine.h>
34 #include <dali-toolkit/internal/text/text-anchor-control-interface.h>
35 #include <dali-toolkit/internal/text/text-model-interface.h>
36 #include <dali-toolkit/internal/text/text-selectable-control-interface.h>
37 #include <dali-toolkit/public-api/text/text-enumerations.h>
39 namespace Dali::Toolkit::Text
42 class ControlInterface;
43 class EditableControlInterface;
45 class RenderingController;
48 * @brief Text selection operations .
52 INTERACTIVE = 0x0000, ///< Select the word where the cursor is located.
53 ALL = 0x0001, ///< Select the whole text.
54 NONE = 0x0002, ///< Unselect the whole text.
55 RANGE = 0x0003 ///< Select the range text.
58 typedef IntrusivePtr<Controller> ControllerPtr;
61 * @brief A Text Controller is used by UI Controls which display text.
63 * It manipulates the Logical & Visual text models on behalf of the UI Controls.
64 * It provides a view of the text that can be used by rendering back-ends.
66 * For selectable/editable UI controls, the controller handles input events from the UI control
67 * and decorations (grab handles etc) via the Decorator::ControllerInterface interface.
69 * The text selection popup button callbacks are as well handled via the TextSelectionPopupCallbackInterface interface.
71 class Controller : public RefObject, public Decorator::ControllerInterface, public TextSelectionPopupCallbackInterface, public HiddenText::Observer
73 public: // Enumerated types.
75 * @brief Text related operations to be done in the relayout process.
79 NO_OPERATION = 0x0000,
80 CONVERT_TO_UTF32 = 0x0001,
82 VALIDATE_FONTS = 0x0004,
83 GET_LINE_BREAKS = 0x0008,
86 GET_GLYPH_METRICS = 0x0040,
88 UPDATE_LAYOUT_SIZE = 0x0100,
92 UPDATE_DIRECTION = 0x1000,
93 ALL_OPERATIONS = 0xFFFF
97 * @brief Used to distinguish between regular key events and InputMethodContext events
106 * @brief Used to specify whether to update the input style.
108 enum UpdateInputStyleType
111 DONT_UPDATE_INPUT_STYLE
115 * @brief Used to specify what has been updated after the Relayout() method has been called.
119 NONE_UPDATED = 0x0, ///< Nothing has been updated.
120 MODEL_UPDATED = 0x1, ///< The text's model has been updated.
121 DECORATOR_UPDATED = 0x2 ///< The decoration has been updated.
125 * @brief Different placeholder-text can be shown when the control is active/inactive.
129 PLACEHOLDER_TYPE_ACTIVE,
130 PLACEHOLDER_TYPE_INACTIVE,
134 * @brief Enumeration for Font Size Type.
138 POINT_SIZE, // The size of font in points.
139 PIXEL_SIZE // The size of font in pixels.
146 NO_ACTION, ///< Does no action if there is a tap on top of an area with no text.
147 HIGHLIGHT, ///< Highlights the nearest text (at the beginning or end of the text) and shows the text's selection popup.
148 SHOW_SELECTION_POPUP ///< Shows the text's selection popup.
160 TEXT_FIT_FONT_SIZE_TYPE
164 public: // Constructor.
166 * @brief Create a new instance of a Controller.
168 * @return A pointer to a new Controller.
170 static ControllerPtr New()
172 return ControllerPtr(new Controller());
176 * @brief Create a new instance of a Controller.
178 * @param[in] controlInterface The control's interface.
180 * @return A pointer to a new Controller.
182 static ControllerPtr New(ControlInterface* controlInterface)
184 return ControllerPtr(new Controller(controlInterface));
188 * @brief Create a new instance of a Controller.
190 * @param[in] controlInterface The control's interface.
191 * @param[in] editableControlInterface The editable control's interface.
192 * @param[in] selectableControlInterface The selectable control's interface.
193 * @param[in] anchorControlInterface The anchor control's interface.
195 * @return A pointer to a new Controller.
197 static ControllerPtr New(ControlInterface* controlInterface,
198 EditableControlInterface* editableControlInterface,
199 SelectableControlInterface* selectableControlInterface,
200 AnchorControlInterface* anchorControlInterface)
202 return ControllerPtr(new Controller(controlInterface,
203 editableControlInterface,
204 selectableControlInterface,
205 anchorControlInterface));
208 public: // Configure the text controller.
210 * @brief Called to enable text input.
212 * @note Selectable or editable controls should call this once after Controller::New().
213 * @param[in] decorator Used to create cursor, selection handle decorations etc.
214 * @param[in] inputMethodContext Used to manager ime.
216 void EnableTextInput(DecoratorPtr decorator, InputMethodContext& inputMethodContext);
219 * @brief Used to switch between bitmap & vector based glyphs
221 * @param[in] glyphType The type of glyph; note that metrics for bitmap & vector based glyphs are different.
223 void SetGlyphType(TextAbstraction::GlyphType glyphType);
226 * @brief Enables/disables the mark-up processor.
228 * By default is disabled.
230 * @param[in] enable Whether to enable the mark-up processor.
232 void SetMarkupProcessorEnabled(bool enable);
235 * @brief Retrieves whether the mark-up processor is enabled.
237 * By default is disabled.
239 * @return @e true if the mark-up processor is enabled, otherwise returns @e false.
241 bool IsMarkupProcessorEnabled() const;
244 * @brief Retrieves whether the current text contains anchors.
246 * @return @e true if the current text contains anchors. @e false.
248 bool HasAnchors() const;
251 * @brief Enables/disables the auto text scrolling
253 * By default is disabled.
255 * @param[in] enable Whether to enable the auto scrolling
257 void SetAutoScrollEnabled(bool enable);
260 * @brief Retrieves whether auto text scrolling is enabled.
262 * By default is disabled.
264 * @return @e true if auto scrolling is enabled, otherwise returns @e false.
266 bool IsAutoScrollEnabled() const;
269 * @brief Get direction of the text from the first line of text,
270 * @return bool rtl (right to left) is true
272 CharacterDirection GetAutoScrollDirection() const;
275 * @brief Get the alignment offset of the first line of text.
277 * @return The alignment offset.
279 float GetAutoScrollLineAlignment() const;
282 * @brief Enables the horizontal scrolling.
284 * @param[in] enable Whether to enable the horizontal scrolling.
286 void SetHorizontalScrollEnabled(bool enable);
289 * @brief Retrieves whether the horizontal scrolling is enabled.
291 * @return @e true if the horizontal scrolling is enabled, otherwise it returns @e false.
293 bool IsHorizontalScrollEnabled() const;
296 * @brief Enables the vertical scrolling.
298 * @param[in] enable Whether to enable the vertical scrolling.
300 void SetVerticalScrollEnabled(bool enable);
303 * @brief Retrieves whether the verticall scrolling is enabled.
305 * @return @e true if the vertical scrolling is enabled, otherwise it returns @e false.
307 bool IsVerticalScrollEnabled() const;
310 * @brief Enables the smooth handle panning.
312 * @param[in] enable Whether to enable the smooth handle panning.
314 void SetSmoothHandlePanEnabled(bool enable);
317 * @brief Retrieves whether the smooth handle panning is enabled.
319 * @return @e true if the smooth handle panning is enabled.
321 bool IsSmoothHandlePanEnabled() const;
324 * @brief Sets the maximum number of characters that can be inserted into the TextModel
326 * @param[in] maxCharacters maximum number of characters to be accepted
328 void SetMaximumNumberOfCharacters(Length maxCharacters);
331 * @brief Sets the maximum number of characters that can be inserted into the TextModel
333 * @param[in] maxCharacters maximum number of characters to be accepted
335 int GetMaximumNumberOfCharacters();
338 * @brief Called to enable/disable cursor blink.
340 * @note Only editable controls should calls this.
341 * @param[in] enabled Whether the cursor should blink or not.
343 void SetEnableCursorBlink(bool enable);
346 * @brief Query whether cursor blink is enabled.
348 * @return Whether the cursor should blink or not.
350 bool GetEnableCursorBlink() const;
353 * @brief Whether to enable the multi-line layout.
355 * @param[in] enable \e true enables the multi-line (by default)
357 void SetMultiLineEnabled(bool enable);
360 * @return Whether the multi-line layout is enabled.
362 bool IsMultiLineEnabled() const;
365 * @brief Sets the text's horizontal alignment.
367 * @param[in] alignment The horizontal alignment.
369 void SetHorizontalAlignment(HorizontalAlignment::Type alignment);
372 * @copydoc ModelInterface::GetHorizontalAlignment()
374 HorizontalAlignment::Type GetHorizontalAlignment() const;
377 * @brief Sets the text's vertical alignment.
379 * @param[in] alignment The vertical alignment.
381 void SetVerticalAlignment(VerticalAlignment::Type alignment);
384 * @copydoc ModelInterface::GetVerticalAlignment()
386 VerticalAlignment::Type GetVerticalAlignment() const;
389 * @brief Sets the text's wrap mode
390 * @param[in] text wrap mode The unit of wrapping
392 void SetLineWrapMode(Text::LineWrap::Mode textWarpMode);
395 * @brief Retrieve text wrap mode previously set.
396 * @return text wrap mode
398 Text::LineWrap::Mode GetLineWrapMode() const;
401 * @brief Enable or disable the text elide.
403 * @param[in] enabled Whether to enable the text elide.
405 void SetTextElideEnabled(bool enabled);
408 * @copydoc ModelInterface::IsTextElideEnabled()
410 bool IsTextElideEnabled() const;
413 * @brief Enable or disable the text fit.
415 * @param[in] enabled Whether to enable the text fit.
417 void SetTextFitEnabled(bool enabled);
420 * @brief Whether the text fit is enabled or not.
422 * @return True if the text fit is enabled
424 bool IsTextFitEnabled() const;
427 * @brief Sets minimum size valid for text fit.
429 * @param[in] minimum size value.
430 * @param[in] type The font size type is point size or pixel size
432 void SetTextFitMinSize(float pointSize, FontSizeType type);
435 * @brief Retrieves the minimum point size valid for text fit.
437 * @return The minimum point size valid for text fit
439 float GetTextFitMinSize() const;
442 * @brief Sets maximum size valid for text fit.
444 * @param[in] maximum size value.
445 * @param[in] type The font size type is point size or pixel size
447 void SetTextFitMaxSize(float pointSize, FontSizeType type);
450 * @brief Retrieves the maximum point size valid for text fit.
452 * @return The maximum point size valid for text fit
454 float GetTextFitMaxSize() const;
457 * @brief Sets step size for font increase valid for text fit.
459 * @param[in] step size value.
460 * @param[in] type The font size type is point size or pixel size
462 void SetTextFitStepSize(float step, FontSizeType type);
465 * @brief Retrieves the step point size valid for text fit.
467 * @return The step point size valid for text fit
469 float GetTextFitStepSize() const;
472 * @brief Sets content size valid for text fit.
474 * @param[in] Content size value.
476 void SetTextFitContentSize(Vector2 size);
479 * @brief Retrieves the content size valid for text fit.
481 * @return The content size valid for text fit
483 Vector2 GetTextFitContentSize() const;
486 * @brief Retrieve the fited point size.
488 * @return The fited point size.
490 float GetTextFitPointSize() const;
493 * @brief Sets whether the text fit properties have changed.
495 * @param[in] changed Whether to changed the text fit.
497 void SetTextFitChanged(bool changed);
500 * @brief Whether the text fit properties are changed or not.
502 * @return True if the text fit properties are changed
504 bool IsTextFitChanged() const;
507 * @brief Enable or disable the placeholder text elide.
508 * @param enabled Whether to enable the placeholder text elide.
510 void SetPlaceholderTextElideEnabled(bool enabled);
513 * @brief Whether the placeholder text elide property is enabled.
514 * @return True if the placeholder text elide property is enabled, false otherwise.
516 bool IsPlaceholderTextElideEnabled() const;
519 * @brief Enable or disable the text selection.
520 * @param[in] enabled Whether to enable the text selection.
522 void SetSelectionEnabled(bool enabled);
525 * @brief Whether the text selection is enabled or not.
526 * @return True if the text selection is enabled
528 bool IsSelectionEnabled() const;
531 * @brief Enable or disable the text selection using Shift key.
532 * @param enabled Whether to enable the text selection using Shift key
534 void SetShiftSelectionEnabled(bool enabled);
537 * @brief Whether the text selection using Shift key is enabled or not.
538 * @return True if the text selection using Shift key is enabled
540 bool IsShiftSelectionEnabled() const;
543 * @brief Enable or disable the grab handles for text selection.
545 * @param[in] enabled Whether to enable the grab handles
547 void SetGrabHandleEnabled(bool enabled);
550 * @brief Returns whether the grab handles are enabled.
552 * @return True if the grab handles are enabled
554 bool IsGrabHandleEnabled() const;
557 * @brief Enable or disable the grab handles for text selection.
559 * @param[in] enabled Whether to enable the grab handles
561 void SetGrabHandlePopupEnabled(bool enabled);
564 * @brief Returns whether the grab handles are enabled.
566 * @return True if the grab handles are enabled
568 bool IsGrabHandlePopupEnabled() const;
571 * @brief Sets input type to password
573 * @note The string is displayed hidden character
575 * @param[in] passwordInput True if password input is enabled.
577 void SetInputModePassword(bool passwordInput);
580 * @brief Returns whether the input mode type is set as password.
582 * @return True if input mode type is password
584 bool IsInputModePassword();
587 * @brief Sets the action when there is a double tap event on top of a text area with no text.
589 * @param[in] action The action to do.
591 void SetNoTextDoubleTapAction(NoTextTap::Action action);
594 * @brief Retrieves the action when there is a double tap event on top of a text area with no text.
596 * @return The action to do.
598 NoTextTap::Action GetNoTextDoubleTapAction() const;
601 * @briefSets the action when there is a long press event on top of a text area with no text.
603 * @param[in] action The action to do.
605 void SetNoTextLongPressAction(NoTextTap::Action action);
608 * @brief Retrieves the action when there is a long press event on top of a text area with no text.
610 * @return The action to do.
612 NoTextTap::Action GetNoTextLongPressAction() const;
615 * @brief Query if Underline settings were provided by string or map
616 * @return bool true if set by string
618 bool IsUnderlineSetByString();
621 * Set method underline setting were set by
622 * @param[in] bool, true if set by string
624 void UnderlineSetByString(bool setByString);
627 * @brief Query if shadow settings were provided by string or map
628 * @return bool true if set by string
630 bool IsShadowSetByString();
633 * Set method shadow setting were set by
634 * @param[in] bool, true if set by string
636 void ShadowSetByString(bool setByString);
639 * @brief Query if outline settings were provided by string or map
640 * @return bool true if set by string
642 bool IsOutlineSetByString();
645 * Set method outline setting were set by
646 * @param[in] bool, true if set by string
648 void OutlineSetByString(bool setByString);
651 * @brief Query if font style settings were provided by string or map
652 * @return bool true if set by string
654 bool IsFontStyleSetByString();
657 * Set method font style setting were set by
658 * @param[in] bool, true if set by string
660 void FontStyleSetByString(bool setByString);
663 * @brief Query if Strikethrough settings were provided by string or map
664 * @return bool true if set by string
666 bool IsStrikethroughSetByString();
669 * Set method Strikethrough setting were set by
670 * @param[in] bool, true if set by string
672 void StrikethroughSetByString(bool setByString);
675 * @brief Set the override used for strikethrough height, 0 indicates height will be supplied by font metrics
677 * @param[in] height The height in pixels of the strikethrough
679 void SetStrikethroughHeight(float height);
682 * @brief Retrieves the override height of an strikethrough, 0 indicates height is supplied by font metrics
684 * @return The height of the strikethrough, or 0 if height is not overrided.
686 float GetStrikethroughHeight() const;
689 * @brief Set the strikethrough color.
691 * @param[in] color color of strikethrough.
693 void SetStrikethroughColor(const Vector4& color);
696 * @brief Retrieve the strikethrough color.
698 * @return The strikethrough color.
700 const Vector4& GetStrikethroughColor() const;
703 * @brief Set the strikethrough enabled flag.
705 * @param[in] enabled The strikethrough enabled flag.
707 void SetStrikethroughEnabled(bool enabled);
710 * @brief Returns whether the text has a strikethrough or not.
712 * @return The strikethrough state.
714 bool IsStrikethroughEnabled() const;
718 * @brief Replaces any text previously set.
720 * @note This will be converted into UTF-32 when stored in the text model.
721 * @param[in] text A string of UTF-8 characters.
723 void SetText(const std::string& text);
726 * @brief Retrieve any text previously set.
728 * @param[out] text A string of UTF-8 characters.
730 void GetText(std::string& text) const;
733 * @brief Replaces any placeholder text previously set.
735 * @param[in] type Different placeholder-text can be shown when the control is active/inactive.
736 * @param[in] text A string of UTF-8 characters.
738 void SetPlaceholderText(PlaceholderType type, const std::string& text);
741 * @brief Retrieve any placeholder text previously set.
743 * @param[in] type Different placeholder-text can be shown when the control is active/inactive.
744 * @param[out] A string of UTF-8 characters.
746 void GetPlaceholderText(PlaceholderType type, std::string& text) const;
749 * @ brief Update the text after a font change
750 * @param[in] newDefaultFont The new font to change to
752 void UpdateAfterFontChange(const std::string& newDefaultFont);
755 * @brief The method acquires currently selected text
756 * @param selectedText variable to place selected text in
758 void RetrieveSelection(std::string& selectedText) const;
761 * @brief The method sets selection in given range
762 * @param start index of first character
763 * @param end index of first character after selection
765 void SetSelection(int start, int end);
768 * @brief This method retrieve indexes of current selection
770 * @return a pair, where first element is left index of selection and second is the right one
772 std::pair<int, int> GetSelectionIndexes() const;
775 * Place string in system clipboard
776 * @param source std::string
778 void CopyStringToClipboard(const std::string& source);
781 * Place currently selected text in system clipboard
782 * @param deleteAfterSending flag pointing if text should be deleted after sending to clipboard
784 void SendSelectionToClipboard(bool deleteAfterSending);
786 public: // Default style & Input style
788 * @brief Set the default font family.
790 * @param[in] defaultFontFamily The default font family.
792 void SetDefaultFontFamily(const std::string& defaultFontFamily);
795 * @brief Retrieve the default font family.
797 * @return The default font family.
799 const std::string& GetDefaultFontFamily() const;
802 * @brief Sets the placeholder text font family.
803 * @param[in] placeholderTextFontFamily The placeholder text font family.
805 void SetPlaceholderFontFamily(const std::string& placeholderTextFontFamily);
808 * @brief Retrieves the placeholder text font family.
810 * @return The placeholder text font family
812 const std::string& GetPlaceholderFontFamily() const;
815 * @brief Sets the default font weight.
817 * @param[in] weight The font weight.
819 void SetDefaultFontWeight(FontWeight weight);
822 * @brief Whether the font's weight has been defined.
824 bool IsDefaultFontWeightDefined() const;
827 * @brief Retrieves the default font weight.
829 * @return The default font weight.
831 FontWeight GetDefaultFontWeight() const;
834 * @brief Sets the placeholder text font weight.
836 * @param[in] weight The font weight
838 void SetPlaceholderTextFontWeight(FontWeight weight);
841 * @brief Whether the font's weight has been defined.
843 * @return True if the placeholder text font weight is defined
845 bool IsPlaceholderTextFontWeightDefined() const;
848 * @brief Retrieves the placeholder text font weight.
850 * @return The placeholder text font weight
852 FontWeight GetPlaceholderTextFontWeight() const;
855 * @brief Sets the default font width.
857 * @param[in] width The font width.
859 void SetDefaultFontWidth(FontWidth width);
862 * @brief Whether the font's width has been defined.
864 bool IsDefaultFontWidthDefined() const;
867 * @brief Retrieves the default font width.
869 * @return The default font width.
871 FontWidth GetDefaultFontWidth() const;
874 * @brief Sets the placeholder text font width.
876 * @param[in] width The font width
878 void SetPlaceholderTextFontWidth(FontWidth width);
881 * @brief Whether the font's width has been defined.
883 * @return True if the placeholder text font width is defined
885 bool IsPlaceholderTextFontWidthDefined() const;
888 * @brief Retrieves the placeholder text font width.
890 * @return The placeholder text font width
892 FontWidth GetPlaceholderTextFontWidth() const;
895 * @brief Sets the default font slant.
897 * @param[in] slant The font slant.
899 void SetDefaultFontSlant(FontSlant slant);
902 * @brief Whether the font's slant has been defined.
904 bool IsDefaultFontSlantDefined() const;
907 * @brief Retrieves the default font slant.
909 * @return The default font slant.
911 FontSlant GetDefaultFontSlant() const;
914 * @brief Sets the placeholder text font slant.
916 * @param[in] slant The font slant
918 void SetPlaceholderTextFontSlant(FontSlant slant);
921 * @brief Whether the font's slant has been defined.
923 * @return True if the placeholder text font slant is defined
925 bool IsPlaceholderTextFontSlantDefined() const;
928 * @brief Retrieves the placeholder text font slant.
930 * @return The placeholder text font slant
932 FontSlant GetPlaceholderTextFontSlant() const;
935 * @brief Set the default font size.
937 * @param[in] fontSize The default font size
938 * @param[in] type The font size type is point size or pixel size
940 void SetDefaultFontSize(float fontSize, FontSizeType type);
943 * @brief Retrieve the default point size.
945 * @param[in] type The font size type
946 * @return The default point size.
948 float GetDefaultFontSize(FontSizeType type) const;
951 * @brief Set the font size scale.
953 * @param[in] scale The font size scale
955 void SetFontSizeScale(float scale);
958 * @brief Get the font size scale.
960 * @return The font size scale.
962 float GetFontSizeScale() const;
965 * @brief Set the font size scale enabled flag.
967 * @param[in] enabled whether to enable the font size scale.
969 void SetFontSizeScaleEnabled(bool enabled);
972 * @brief Returns whether the font size scale is enabled or not.
974 * @return @e true if the font size scale is enabled, otherwise returns @e false.
976 bool IsFontSizeScaleEnabled() const;
979 * @brief Sets the Placeholder text font size.
980 * @param[in] fontSize The placeholder text font size
981 * @param[in] type The font size type is point size or pixel size
983 void SetPlaceholderTextFontSize(float fontSize, FontSizeType type);
986 * @brief Retrieves the Placeholder text font size.
987 * @param[in] type The font size type
988 * @return The placeholder font size
990 float GetPlaceholderTextFontSize(FontSizeType type) const;
993 * @brief Sets the text's default color.
995 * @param color The default color.
997 void SetDefaultColor(const Vector4& color);
1000 * @brief Retrieves the text's default color.
1002 * @return The default color.
1004 const Vector4& GetDefaultColor() const;
1007 * @brief Set the text color
1009 * @param textColor The text color
1011 void SetPlaceholderTextColor(const Vector4& textColor);
1014 * @brief Retrieve the text color
1016 * @return The text color
1018 const Vector4& GetPlaceholderTextColor() const;
1021 * @brief Set the shadow offset.
1023 * @param[in] shadowOffset The shadow offset, 0,0 indicates no shadow.
1025 void SetShadowOffset(const Vector2& shadowOffset);
1028 * @brief Retrieve the shadow offset.
1030 * @return The shadow offset.
1032 const Vector2& GetShadowOffset() const;
1035 * @brief Set the shadow color.
1037 * @param[in] shadowColor The shadow color.
1039 void SetShadowColor(const Vector4& shadowColor);
1042 * @brief Retrieve the shadow color.
1044 * @return The shadow color.
1046 const Vector4& GetShadowColor() const;
1049 * @brief Set the shadow blur radius.
1051 * @param[in] shadowBlurRadius The shadow blur radius, 0,0 indicates no blur.
1053 void SetShadowBlurRadius(const float& shadowBlurRadius);
1056 * @brief Retrieve the shadow blur radius.
1058 * @return The shadow blur radius.
1060 const float& GetShadowBlurRadius() const;
1063 * @brief Set the underline color.
1065 * @param[in] color color of underline.
1067 void SetUnderlineColor(const Vector4& color);
1070 * @brief Retrieve the underline color.
1072 * @return The underline color.
1074 const Vector4& GetUnderlineColor() const;
1077 * @brief Set the underline enabled flag.
1079 * @param[in] enabled The underline enabled flag.
1081 void SetUnderlineEnabled(bool enabled);
1084 * @brief Returns whether the text is underlined or not.
1086 * @return The underline state.
1088 bool IsUnderlineEnabled() const;
1091 * @brief Set the override used for underline height, 0 indicates height will be supplied by font metrics
1093 * @param[in] height The height in pixels of the underline
1095 void SetUnderlineHeight(float height);
1098 * @brief Retrieves the override height of an underline, 0 indicates height is supplied by font metrics
1100 * @return The height of the underline, or 0 if height is not overrided.
1102 float GetUnderlineHeight() const;
1105 * @brief Sets the underline type.
1106 * @param[in] type The underline type.
1108 void SetUnderlineType(Text::Underline::Type type);
1111 * @brief Retrieve underline type.
1112 * @return The underline type.
1114 Text::Underline::Type GetUnderlineType() const;
1117 * @brief Set the width of the dashes of the dashed underline.
1119 * @param[in] width The width in pixels of the dashes of the dashed underline.
1121 void SetDashedUnderlineWidth(float width);
1124 * @brief Retrieves the width of the dashes of the dashed underline.
1126 * @return The width of the dashes of the dashed underline.
1128 float GetDashedUnderlineWidth() const;
1131 * @brief Set the gap between the dashes of the dashed underline.
1133 * @param[in] gap The gap between the dashes of the dashed underline.
1135 void SetDashedUnderlineGap(float gap);
1138 * @brief Retrieves the gap between the dashes of the dashed underline.
1140 * @return The The gap between the dashes of the dashed underline.
1142 float GetDashedUnderlineGap() const;
1145 * @brief Set the outline color.
1147 * @param[in] color color of outline.
1149 void SetOutlineColor(const Vector4& color);
1152 * @brief Retrieve the outline color.
1154 * @return The outline color.
1156 const Vector4& GetOutlineColor() const;
1159 * @brief Set the outline width
1161 * @param[in] width The width in pixels of the outline, 0 indicates no outline
1163 void SetOutlineWidth(uint16_t width);
1166 * @brief Retrieves the width of an outline
1168 * @return The width of the outline.
1170 uint16_t GetOutlineWidth() const;
1173 * @brief Set the background color.
1175 * @param[in] color color of background.
1177 void SetBackgroundColor(const Vector4& color);
1180 * @brief Retrieve the background color.
1182 * @return The background color.
1184 const Vector4& GetBackgroundColor() const;
1187 * @brief Set the background enabled flag.
1189 * @param[in] enabled The background enabled flag.
1191 void SetBackgroundEnabled(bool enabled);
1194 * @brief Returns whether to enable text background or not.
1196 * @return Whether text background is enabled.
1198 bool IsBackgroundEnabled() const;
1201 * @brief Sets the emboss's properties string.
1203 * @note The string is stored to be recovered.
1205 * @param[in] embossProperties The emboss's properties string.
1207 void SetDefaultEmbossProperties(const std::string& embossProperties);
1210 * @brief Retrieves the emboss's properties string.
1212 * @return The emboss's properties string.
1214 const std::string& GetDefaultEmbossProperties() const;
1217 * @brief Sets the outline's properties string.
1219 * @note The string is stored to be recovered.
1221 * @param[in] outlineProperties The outline's properties string.
1223 void SetDefaultOutlineProperties(const std::string& outlineProperties);
1226 * @brief Retrieves the outline's properties string.
1228 * @return The outline's properties string.
1230 const std::string& GetDefaultOutlineProperties() const;
1233 * @brief Sets the default line spacing.
1235 * @param[in] lineSpacing The line spacing.
1237 * @return True if lineSpacing has been updated, false otherwise
1239 bool SetDefaultLineSpacing(float lineSpacing);
1242 * @brief Retrieves the default line spacing.
1244 * @return The line spacing.
1246 float GetDefaultLineSpacing() const;
1249 * @brief Sets the default line size.
1251 * @param[in] lineSize The line size.
1253 * @return True if lineSize has been updated, false otherwise
1255 bool SetDefaultLineSize(float lineSize);
1258 * @brief Retrieves the default line size.
1260 * @return The line size.
1262 float GetDefaultLineSize() const;
1265 * @brief Sets the relative line size to the original line size.
1267 * @param[in] relativeLineSize The relativeline size.
1269 * @return True if relativeLineSize has been updated, false otherwise
1271 bool SetRelativeLineSize(float lineSize);
1274 * @brief Retrieves the relative line size.
1276 * @return The relative line size.
1278 float GetRelativeLineSize() const;
1281 * @brief Sets the input text's color.
1283 * @param[in] color The input text's color.
1285 void SetInputColor(const Vector4& color);
1288 * @brief Retrieves the input text's color.
1290 * @return The input text's color.
1292 const Vector4& GetInputColor() const;
1295 * @brief Sets the input text's font family name.
1297 * @param[in] fontFamily The text's font family name.
1299 void SetInputFontFamily(const std::string& fontFamily);
1302 * @brief Retrieves the input text's font family name.
1304 * @return The input text's font family name.
1306 const std::string& GetInputFontFamily() const;
1309 * @brief Sets the input font's weight.
1311 * @param[in] weight The input font's weight.
1313 void SetInputFontWeight(FontWeight weight);
1316 * @return Whether the font's weight has been defined.
1318 bool IsInputFontWeightDefined() const;
1321 * @brief Retrieves the input font's weight.
1323 * @return The input font's weight.
1325 FontWeight GetInputFontWeight() const;
1328 * @brief Sets the input font's width.
1330 * @param[in] width The input font's width.
1332 void SetInputFontWidth(FontWidth width);
1335 * @return Whether the font's width has been defined.
1337 bool IsInputFontWidthDefined() const;
1340 * @brief Retrieves the input font's width.
1342 * @return The input font's width.
1344 FontWidth GetInputFontWidth() const;
1347 * @brief Sets the input font's slant.
1349 * @param[in] slant The input font's slant.
1351 void SetInputFontSlant(FontSlant slant);
1354 * @return Whether the font's slant has been defined.
1356 bool IsInputFontSlantDefined() const;
1359 * @brief Retrieves the input font's slant.
1361 * @return The input font's slant.
1363 FontSlant GetInputFontSlant() const;
1366 * @brief Sets the input font's point size.
1368 * @param[in] size The input font's point size.
1370 void SetInputFontPointSize(float size);
1373 * @brief Retrieves the input font's point size.
1375 * @return The input font's point size.
1377 float GetInputFontPointSize() const;
1380 * @brief Sets the input line spacing.
1382 * @param[in] lineSpacing The line spacing.
1384 void SetInputLineSpacing(float lineSpacing);
1387 * @brief Retrieves the input line spacing.
1389 * @return The line spacing.
1391 float GetInputLineSpacing() const;
1394 * @brief Sets the input shadow's properties string.
1396 * @note The string is stored to be recovered.
1398 * @param[in] shadowProperties The shadow's properties string.
1400 void SetInputShadowProperties(const std::string& shadowProperties);
1403 * @brief Retrieves the input shadow's properties string.
1405 * @return The shadow's properties string.
1407 const std::string& GetInputShadowProperties() const;
1410 * @brief Sets the input underline's properties string.
1412 * @note The string is stored to be recovered.
1414 * @param[in] underlineProperties The underline's properties string.
1416 void SetInputUnderlineProperties(const std::string& underlineProperties);
1419 * @brief Retrieves the input underline's properties string.
1421 * @return The underline's properties string.
1423 const std::string& GetInputUnderlineProperties() const;
1426 * @brief Sets the input emboss's properties string.
1428 * @note The string is stored to be recovered.
1430 * @param[in] embossProperties The emboss's properties string.
1432 void SetInputEmbossProperties(const std::string& embossProperties);
1435 * @brief Retrieves the input emboss's properties string.
1437 * @return The emboss's properties string.
1439 const std::string& GetInputEmbossProperties() const;
1442 * @brief Sets input the outline's properties string.
1444 * @note The string is stored to be recovered.
1446 * @param[in] outlineProperties The outline's properties string.
1448 void SetInputOutlineProperties(const std::string& outlineProperties);
1451 * @brief Retrieves the input outline's properties string.
1453 * @return The outline's properties string.
1455 const std::string& GetInputOutlineProperties() const;
1458 * @brief Sets the input strikethrough's properties string.
1460 * @note The string is stored to be recovered.
1462 * @param[in] strikethroughProperties The strikethrough's properties string.
1464 void SetInputStrikethroughProperties(const std::string& strikethroughProperties);
1467 * @brief Retrieves the input strikethrough's properties string.
1469 * @return The strikethrough's properties string.
1471 const std::string& GetInputStrikethroughProperties() const;
1474 * @brief Set the control's interface.
1476 * @param[in] controlInterface The control's interface.
1478 void SetControlInterface(ControlInterface* controlInterface);
1481 * @brief Set the anchor control's interface.
1483 * @param[in] anchorControlInterface The control's interface.
1485 void SetAnchorControlInterface(AnchorControlInterface* anchorControlInterface);
1488 * @brief Sets the character spacing.
1490 * @note A positive value will make the characters far apart (expanded) and a negative value will bring them closer (condensed).
1492 * @param[in] characterSpacing The character spacing.
1494 void SetCharacterSpacing(float characterSpacing);
1497 * @brief Retrieves the character spacing.
1499 * @note A positive value will make the characters far apart (expanded) and a negative value will bring them closer (condensed).
1501 * @return The character spacing.
1503 const float GetCharacterSpacing() const;
1505 public: // Queries & retrieves.
1507 * @brief Return the layout engine.
1509 * @return A reference to the layout engine.
1511 Layout::Engine& GetLayoutEngine();
1514 * @brief Return a view of the text.
1516 * @return A reference to the view.
1521 * @copydoc Control::GetNaturalSize()
1523 Vector3 GetNaturalSize();
1526 * @copydoc Control::GetHeightForWidth()
1528 float GetHeightForWidth(float width);
1531 * @brief Calculates the point size for text for given layout()
1533 void FitPointSizeforLayout(Size layoutSize);
1536 * @brief Checks if the point size fits within the layout size.
1538 * @return Whether the point size fits within the layout size.
1540 bool CheckForTextFit(float pointSize, Size& layoutSize);
1543 * @brief Retrieves the text's number of lines for a given width.
1544 * @param[in] width The width of the text's area.
1545 * @ return The number of lines.
1547 int GetLineCount(float width);
1550 * @brief Retrieves the text's model.
1552 * @return A pointer to the text's model.
1554 const ModelInterface* const GetTextModel() const;
1557 * @brief Used to get scrolled distance by user input
1559 * @return Distance from last scroll offset to new scroll offset
1561 float GetScrollAmountByUserInput();
1564 * @brief Get latest scroll amount, control size and layout size
1566 * This method is used to get information of control's scroll
1567 * @param[out] scrollPosition The current scrolled position
1568 * @param[out] controlHeight The size of a UI control
1569 * @param[out] layoutHeight The size of a bounding box to layout text within.
1571 * @return Whether the text scroll position is changed or not after last update.
1573 bool GetTextScrollInfo(float& scrollPosition, float& controlHeight, float& layoutHeight);
1576 * @brief Used to set the hidden input option
1578 void SetHiddenInputOption(const Property::Map& options);
1581 * @brief Used to get the hidden input option
1583 void GetHiddenInputOption(Property::Map& options);
1586 * @brief Used to set the input filter option
1588 void SetInputFilterOption(const Property::Map& options);
1591 * @brief Used to get the input filter option
1593 void GetInputFilterOption(Property::Map& options);
1596 * @brief Sets the Placeholder Properties.
1598 * @param[in] map The placeholder property map
1600 void SetPlaceholderProperty(const Property::Map& map);
1603 * @brief Retrieves the Placeholder Property map.
1605 * @param[out] map The property map
1607 void GetPlaceholderProperty(Property::Map& map);
1610 * @brief Checks text direction.
1611 * @return The text direction.
1613 Toolkit::DevelText::TextDirection::Type GetTextDirection();
1616 * @brief Retrieves vertical line alignment
1617 * @return The vertical line alignment
1619 Toolkit::DevelText::VerticalLineAlignment::Type GetVerticalLineAlignment() const;
1622 * @brief Sets vertical line alignment
1623 * @param[in] alignment The vertical line alignment for the text
1625 void SetVerticalLineAlignment(Toolkit::DevelText::VerticalLineAlignment::Type alignment);
1628 * @brief Retrieves ellipsis position
1629 * @return The ellipsis position
1631 Toolkit::DevelText::EllipsisPosition::Type GetEllipsisPosition() const;
1634 * @brief Sets ellipsis position
1635 * @param[in] ellipsisPosition The ellipsis position for the text
1637 void SetEllipsisPosition(Toolkit::DevelText::EllipsisPosition::Type ellipsisPosition);
1640 * @brief Retrieves ignoreSpaceAfterText value from model
1641 * @return The value of ignoreSpaceAfterText
1643 bool IsIgnoreSpacesAfterText() const;
1646 * @brief Sets ignoreSpaceAfterText value to model
1647 * @param[in] ignore The value of ignoreSpacesAfterText for the text
1649 void SetIgnoreSpacesAfterText(bool ignore);
1652 * @brief Sets SetMatchLayoutDirection value to model
1653 * @param[in] match The value of matchLayoutDirection for the text
1655 void SetMatchLayoutDirection(DevelText::MatchLayoutDirection type);
1658 * @brief Retrieves matchLayoutDirection value from model
1659 * @return The value of matchLayoutDirection
1661 DevelText::MatchLayoutDirection GetMatchLayoutDirection() const;
1664 * @brief Sets layoutDirection type value.
1665 * @param[in] layoutDirection The value of the layout direction type.
1667 void SetLayoutDirection(Dali::LayoutDirection::Type layoutDirection);
1670 * @brief Gets layoutDirection type value.
1671 * @param[in] actor The actor which will get the layout direction type.
1672 * @return The value of the layout direction type.
1674 Dali::LayoutDirection::Type GetLayoutDirection(Dali::Actor& actor) const;
1677 * @brief Get the rendered size of a specific text range.
1678 * if the requested text is at multilines, multiple sizes will be returned for each text located in a separate line.
1679 * if a line contains characters with different directions, multiple sizes will be returned for each block of contiguous characters with the same direction.
1681 * @param[in] startIndex start index of the text requested to calculate size for.
1682 * @param[in] endIndex end index(included) of the text requested to calculate size for.
1683 * @return list of sizes of the reuested text.
1685 Vector<Vector2> GetTextSize(CharacterIndex startIndex, CharacterIndex endIndex);
1688 * @brief Get the top/left rendered position of a specific text range.
1689 * if the requested text is at multilines, multiple positions will be returned for each text located in a separate line.
1690 * if a line contains characters with different directions, multiple positions will be returned for each block of contiguous characters with the same direction.
1692 * @param[in] startIndex start index of the text requested to get position to.
1693 * @param[in] endIndex end index(included) of the text requested to get position to.
1694 * @return list of positions of the requested text.
1696 Vector<Vector2> GetTextPosition(CharacterIndex startIndex, CharacterIndex endIndex);
1699 * @brief Gets the bounding box of a specific text range.
1701 * @param[in] startIndex start index of the text requested to get bounding box to.
1702 * @param[in] endIndex end index(included) of the text requested to get bounding box to.
1703 * @return bounding box of the requested text.
1705 Rect<> GetTextBoundingRectangle(CharacterIndex startIndex, CharacterIndex endIndex);
1708 * @brief Sets the layout direction changed.
1710 void ChangedLayoutDirection();
1713 * @brief Retrieves if showing real text or not.
1714 * @return The value of showing real text.
1716 bool IsShowingRealText() const;
1718 public: // Relayout.
1720 * @brief Triggers a relayout which updates View (if necessary).
1722 * @note UI Controls are expected to minimize calls to this method e.g. call once after size negotiation.
1723 * @param[in] size A the size of a bounding box to layout text within.
1724 * @param[in] layoutDirection The direction of the system language.
1726 * @return Whether the text model or decorations were updated.
1728 UpdateTextType Relayout(const Size& size, Dali::LayoutDirection::Type layoutDirection = Dali::LayoutDirection::LEFT_TO_RIGHT);
1731 * @brief Request a relayout using the ControlInterface.
1733 void RequestRelayout();
1735 public: // Input style change signals.
1737 * @return Whether the queue of input style changed signals is empty.
1739 bool IsInputStyleChangedSignalsQueueEmpty();
1742 * @brief Process all pending input style changed signals.
1744 * Calls the Text::ControlInterface::InputStyleChanged() method which is overriden by the
1745 * text controls. Text controls may send signals to state the input style has changed.
1747 void ProcessInputStyleChangedSignals();
1749 public: // Text-input Event Queuing.
1751 * @brief Called by editable UI controls when keyboard focus is gained.
1753 void KeyboardFocusGainEvent();
1756 * @brief Called by editable UI controls when focus is lost.
1758 void KeyboardFocusLostEvent();
1761 * @brief Called by editable UI controls when key events are received.
1763 * @param[in] event The key event.
1764 * @param[in] type Used to distinguish between regular key events and InputMethodContext events.
1766 bool KeyEvent(const Dali::KeyEvent& event);
1769 * @brief Called by anchor when a tap gesture occurs.
1770 * @param[in] x The x position relative to the top-left of the parent control.
1771 * @param[in] y The y position relative to the top-left of the parent control.
1773 void AnchorEvent(float x, float y);
1776 * @brief Called by editable UI controls when a tap gesture occurs.
1777 * @param[in] tapCount The number of taps.
1778 * @param[in] x The x position relative to the top-left of the parent control.
1779 * @param[in] y The y position relative to the top-left of the parent control.
1781 void TapEvent(unsigned int tapCount, float x, float y);
1784 * @brief Called by editable UI controls when a pan gesture occurs.
1786 * @param[in] state The state of the gesture.
1787 * @param[in] displacement This distance panned since the last pan gesture.
1789 void PanEvent(GestureState state, const Vector2& displacement);
1792 * @brief Called by editable UI controls when a long press gesture occurs.
1794 * @param[in] state The state of the gesture.
1795 * @param[in] x The x position relative to the top-left of the parent control.
1796 * @param[in] y The y position relative to the top-left of the parent control.
1798 void LongPressEvent(GestureState state, float x, float y);
1801 * @brief Used to get the Primary cursor position.
1803 * @return Primary cursor position.
1805 CharacterIndex GetPrimaryCursorPosition() const;
1808 * @brief Used to set the Primary cursor position.
1810 * @param[in] index for the Primary cursor position.
1811 * @param[in] focused true if UI control has gained focus to receive key event, false otherwise.
1812 * @return[in] true if cursor position changed, false otherwise.
1814 bool SetPrimaryCursorPosition(CharacterIndex index, bool focused);
1817 * @brief Creates a selection event.
1819 * It could be called from the TapEvent (double tap) or when the text selection popup's sellect all button is pressed.
1821 * @param[in] x The x position relative to the top-left of the parent control.
1822 * @param[in] y The y position relative to the top-left of the parent control.
1823 * @param[in] selection type like the whole text is selected or unselected.
1825 void SelectEvent(float x, float y, SelectionType selection);
1828 * @copydoc Text::SelectableControlInterface::SetTextSelectionRange()
1830 void SetTextSelectionRange(const uint32_t* start, const uint32_t* end);
1833 * @copydoc Text::SelectableControlInterface::GetTextSelectionRange()
1835 Uint32Pair GetTextSelectionRange() const;
1838 * @copydoc Text::SelectableControlInterface::SelectWholeText()
1840 void SelectWholeText();
1843 * @copydoc Text::EditableControlInterface::CopyText()
1848 * @copydoc Text::EditableControlInterface::CutText()
1853 * @copydoc Text::EditableControlInterface::PasteText()
1858 * @copydoc Text::SelectableControlInterface::SelectNone()
1863 * @copydoc Text::SelectableControlInterface::SelectText()
1865 void SelectText(const uint32_t start, const uint32_t end);
1868 * @copydoc Text::SelectableControlInterface::GetSelectedText()
1870 string GetSelectedText() const;
1873 * @copydoc Text::EditableControlInterface::IsEditable()
1875 virtual bool IsEditable() const;
1878 * @copydoc Text::EditableControlInterface::SetEditable()
1880 virtual void SetEditable(bool editable);
1883 * @copydoc Dali::Toolkit::Internal::TextEditor::ScrollBy()
1885 virtual void ScrollBy(Vector2 scroll);
1888 * @copydoc Dali::Toolkit::Internal::TextEditor::GetHorizontalScrollPosition()
1890 float GetHorizontalScrollPosition();
1893 * @copydoc Dali::Toolkit::Internal::TextEditor::GetVerticalScrollPosition()
1895 float GetVerticalScrollPosition();
1898 * @brief Event received from input method context
1900 * @param[in] inputMethodContext The input method context.
1901 * @param[in] inputMethodContextEvent The event received.
1902 * @return A data struture indicating if update is needed, cursor position and current text.
1904 InputMethodContext::CallbackData OnInputMethodContextEvent(InputMethodContext& inputMethodContext, const InputMethodContext::EventData& inputMethodContextEvent);
1907 * @brief Event from Clipboard notifying an Item has been selected for pasting
1909 void PasteClipboardItemEvent();
1912 * @brief Return true when text control should clear key input focus when escape key is pressed.
1914 * @return Whether text control should clear key input focus or not when escape key is pressed.
1916 bool ShouldClearFocusOnEscape() const;
1919 * @brief Create an actor that renders the text background color
1921 * @return the created actor or an empty handle if no background color needs to be rendered.
1923 Actor CreateBackgroundActor();
1926 * @brief Used to reset the cursor position after setting a new text.
1928 * @param[in] cursorIndex Where to place the cursor.
1930 void ResetCursorPosition(CharacterIndex cursorIndex);
1933 * @brief The method acquires current position of cursor
1934 * @return unsigned value with cursor position
1936 CharacterIndex GetCursorPosition();
1939 * @brief Resets a provided vector with actors that marks the position of anchors in markup enabled text
1941 * @param[out] anchorActors the vector of actor (empty collection if no anchors available).
1943 void GetAnchorActors(std::vector<Toolkit::TextAnchor>& anchorActors);
1946 * @brief Return an index of first anchor in the anchor vector whose boundaries includes given character offset
1948 * @param[in] characterOffset A position in text coords.
1950 * @return the index in anchor vector (-1 if an anchor not found)
1952 int GetAnchorIndex(size_t characterOffset);
1954 protected: // Inherit from Text::Decorator::ControllerInterface.
1956 * @copydoc Dali::Toolkit::Text::Decorator::ControllerInterface::GetTargetSize()
1958 void GetTargetSize(Vector2& targetSize) override;
1961 * @copydoc Dali::Toolkit::Text::Decorator::ControllerInterface::AddDecoration()
1963 void AddDecoration(Actor& actor, DecorationType type, bool needsClipping) override;
1966 * @copydoc Dali::Toolkit::Text::Decorator::ControllerInterface::DecorationEvent()
1968 void DecorationEvent(HandleType handle, HandleState state, float x, float y) override;
1970 protected: // Inherit from TextSelectionPopup::TextPopupButtonCallbackInterface.
1972 * @copydoc Dali::Toolkit::TextSelectionPopup::TextPopupButtonCallbackInterface::TextPopupButtonTouched()
1974 void TextPopupButtonTouched(Dali::Toolkit::TextSelectionPopup::Buttons button) override;
1976 protected: // Inherit from HiddenText.
1978 * @brief Invoked from HiddenText when showing time of the last character was expired
1980 void DisplayTimeExpired() override;
1982 private: // Private contructors & copy operator.
1984 * @brief Private constructor.
1987 : Controller(nullptr, nullptr, nullptr, nullptr)
1992 * @brief Private constructor.
1994 Controller(ControlInterface* controlInterface)
1995 : Controller(controlInterface, nullptr, nullptr, nullptr)
2000 * @brief Private constructor.
2002 Controller(ControlInterface* controlInterface,
2003 EditableControlInterface* editableControlInterface,
2004 SelectableControlInterface* selectableControlInterface,
2005 AnchorControlInterface* anchorControlInterface);
2007 Controller(const Controller& handle) = delete;
2008 Controller& operator=(const Controller& handle) = delete;
2010 protected: // Destructor.
2012 * @brief A reference counted object may only be deleted by calling Unreference().
2014 virtual ~Controller();
2017 struct Impl; ///< Made public for testing purposes
2020 struct EventHandler;
2021 struct InputFontHandler;
2022 struct InputProperties;
2023 struct PlaceholderHandler;
2030 } // namespace Dali::Toolkit::Text
2032 #endif // DALI_TOOLKIT_TEXT_CONTROLLER_H