1 #ifndef DALI_TOOLKIT_TEXT_CONTROLLER_H
2 #define DALI_TOOLKIT_TEXT_CONTROLLER_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/devel-api/adaptor-framework/imf-manager.h>
23 #include <dali/public-api/events/gesture.h>
26 #include <dali-toolkit/devel-api/controls/text-controls/text-selection-popup-callback-interface.h>
27 #include <dali-toolkit/internal/text/decorator/text-decorator.h>
28 #include <dali-toolkit/internal/text/layouts/layout-engine.h>
29 #include <dali-toolkit/internal/text/text-model-interface.h>
41 class ControlInterface;
42 class EditableControlInterface;
44 class RenderingController;
46 typedef IntrusivePtr<Controller> ControllerPtr;
49 * @brief A Text Controller is used by UI Controls which display text.
51 * It manipulates the Logical & Visual text models on behalf of the UI Controls.
52 * It provides a view of the text that can be used by rendering back-ends.
54 * For selectable/editable UI controls, the controller handles input events from the UI control
55 * and decorations (grab handles etc) via the Decorator::ControllerInterface interface.
57 * The text selection popup button callbacks are as well handled via the TextSelectionPopupCallbackInterface interface.
59 class Controller : public RefObject, public Decorator::ControllerInterface, public TextSelectionPopupCallbackInterface
61 public: // Enumerated types.
64 * @brief Text related operations to be done in the relayout process.
68 NO_OPERATION = 0x0000,
69 CONVERT_TO_UTF32 = 0x0001,
71 VALIDATE_FONTS = 0x0004,
72 GET_LINE_BREAKS = 0x0008,
73 GET_WORD_BREAKS = 0x0010,
76 GET_GLYPH_METRICS = 0x0080,
78 UPDATE_LAYOUT_SIZE = 0x0200,
82 UPDATE_DIRECTION = 0x2000,
83 ALL_OPERATIONS = 0xFFFF
87 * @brief Used to distinguish between regular key events and IMF events
96 * @brief Used to specify whether to update the input style.
98 enum UpdateInputStyleType
101 DONT_UPDATE_INPUT_STYLE
105 * @brief Used to specify what has been updated after the Relayout() method has been called.
109 NONE_UPDATED = 0x0, ///< Nothing has been updated.
110 MODEL_UPDATED = 0x1, ///< The text's model has been updated.
111 DECORATOR_UPDATED = 0x2 ///< The decoration has been updated.
115 * @brief Different placeholder-text can be shown when the control is active/inactive.
119 PLACEHOLDER_TYPE_ACTIVE,
120 PLACEHOLDER_TYPE_INACTIVE,
123 public: // Constructor.
126 * @brief Create a new instance of a Controller.
128 * @return A pointer to a new Controller.
130 static ControllerPtr New();
133 * @brief Create a new instance of a Controller.
135 * @param[in] controlInterface The control's interface.
137 * @return A pointer to a new Controller.
139 static ControllerPtr New( ControlInterface* controlInterface );
142 * @brief Create a new instance of a Controller.
144 * @param[in] controlInterface The control's interface.
145 * @param[in] editableControlInterface The editable control's interface.
147 * @return A pointer to a new Controller.
149 static ControllerPtr New( ControlInterface* controlInterface,
150 EditableControlInterface* editableControlInterface );
152 public: // Configure the text controller.
155 * @brief Called to enable text input.
157 * @note Selectable or editable controls should call this once after Controller::New().
158 * @param[in] decorator Used to create cursor, selection handle decorations etc.
160 void EnableTextInput( DecoratorPtr decorator );
163 * @brief Used to switch between bitmap & vector based glyphs
165 * @param[in] glyphType The type of glyph; note that metrics for bitmap & vector based glyphs are different.
167 void SetGlyphType( TextAbstraction::GlyphType glyphType );
170 * @brief Enables/disables the mark-up processor.
172 * By default is disabled.
174 * @param[in] enable Whether to enable the mark-up processor.
176 void SetMarkupProcessorEnabled( bool enable );
179 * @brief Retrieves whether the mark-up processor is enabled.
181 * By default is disabled.
183 * @return @e true if the mark-up processor is enabled, otherwise returns @e false.
185 bool IsMarkupProcessorEnabled() const;
188 * @brief Enables/disables the auto text scrolling
190 * By default is disabled.
192 * @param[in] enable Whether to enable the auto scrolling
194 void SetAutoScrollEnabled( bool enable );
197 * @brief Retrieves whether auto text scrolling is enabled.
199 * By default is disabled.
201 * @return @e true if auto scrolling is enabled, otherwise returns @e false.
203 bool IsAutoScrollEnabled() const;
206 * @brief Get direction of the text from the first line of text,
207 * @return bool rtl (right to left) is true
209 CharacterDirection GetAutoScrollDirection() const;
212 * @brief Get the alignment offset of the first line of text.
214 * @return The alignment offset.
216 float GetAutoScrollLineAlignment() const;
219 * @brief Enables the horizontal scrolling.
221 * @param[in] enable Whether to enable the horizontal scrolling.
223 void SetHorizontalScrollEnabled( bool enable );
226 * @brief Retrieves whether the horizontal scrolling is enabled.
228 * @return @e true if the horizontal scrolling is enabled, otherwise it returns @e false.
230 bool IsHorizontalScrollEnabled() const;
233 * @brief Enables the vertical scrolling.
235 * @param[in] enable Whether to enable the vertical scrolling.
237 void SetVerticalScrollEnabled( bool enable );
240 * @brief Retrieves whether the verticall scrolling is enabled.
242 * @return @e true if the vertical scrolling is enabled, otherwise it returns @e false.
244 bool IsVerticalScrollEnabled() const;
247 * @brief Enables the smooth handle panning.
249 * @param[in] enable Whether to enable the smooth handle panning.
251 void SetSmoothHandlePanEnabled( bool enable );
254 * @brief Retrieves whether the smooth handle panning is enabled.
256 * @return @e true if the smooth handle panning is enabled.
258 bool IsSmoothHandlePanEnabled() const;
261 * @brief Sets the maximum number of characters that can be inserted into the TextModel
263 * @param[in] maxCharacters maximum number of characters to be accepted
265 void SetMaximumNumberOfCharacters( Length maxCharacters );
268 * @brief Sets the maximum number of characters that can be inserted into the TextModel
270 * @param[in] maxCharacters maximum number of characters to be accepted
272 int GetMaximumNumberOfCharacters();
275 * @brief Called to enable/disable cursor blink.
277 * @note Only editable controls should calls this.
278 * @param[in] enabled Whether the cursor should blink or not.
280 void SetEnableCursorBlink( bool enable );
283 * @brief Query whether cursor blink is enabled.
285 * @return Whether the cursor should blink or not.
287 bool GetEnableCursorBlink() const;
290 * @brief Whether to enable the multi-line layout.
292 * @param[in] enable \e true enables the multi-line (by default)
294 void SetMultiLineEnabled( bool enable );
297 * @return Whether the multi-line layout is enabled.
299 bool IsMultiLineEnabled() const;
302 * @brief Sets the text's horizontal alignment.
304 * @param[in] alignment The horizontal alignment.
306 void SetHorizontalAlignment( Layout::HorizontalAlignment alignment );
309 * @copydoc ModelInterface::GetHorizontalAlignment()
311 Layout::HorizontalAlignment GetHorizontalAlignment() const;
314 * @brief Sets the text's vertical alignment.
316 * @param[in] alignment The vertical alignment.
318 void SetVerticalAlignment( Layout::VerticalAlignment alignment );
321 * @copydoc ModelInterface::GetVerticalAlignment()
323 Layout::VerticalAlignment GetVerticalAlignment() const;
326 * @brief Enable or disable the text elide.
328 * @param[in] enabled Whether to enable the text elide.
330 void SetTextElideEnabled( bool enabled );
333 * @copydoc ModelInterface::IsTextElideEnabled()
335 bool IsTextElideEnabled() const;
340 * @brief Replaces any text previously set.
342 * @note This will be converted into UTF-32 when stored in the text model.
343 * @param[in] text A string of UTF-8 characters.
345 void SetText( const std::string& text );
348 * @brief Retrieve any text previously set.
350 * @param[out] text A string of UTF-8 characters.
352 void GetText( std::string& text ) const;
355 * @brief Replaces any placeholder text previously set.
357 * @param[in] type Different placeholder-text can be shown when the control is active/inactive.
358 * @param[in] text A string of UTF-8 characters.
360 void SetPlaceholderText( PlaceholderType type, const std::string& text );
363 * @brief Retrieve any placeholder text previously set.
365 * @param[in] type Different placeholder-text can be shown when the control is active/inactive.
366 * @param[out] A string of UTF-8 characters.
368 void GetPlaceholderText( PlaceholderType type, std::string& text ) const;
371 * @ brief Update the text after a font change
372 * @param[in] newDefaultFont The new font to change to
374 void UpdateAfterFontChange( const std::string& newDefaultFont );
376 public: // Default style & Input style
379 * @brief Set the default font family.
381 * @param[in] defaultFontFamily The default font family.
383 void SetDefaultFontFamily( const std::string& defaultFontFamily );
386 * @brief Retrieve the default font family.
388 * @return The default font family.
390 const std::string& GetDefaultFontFamily() const;
393 * @brief Sets the default font weight.
395 * @param[in] weight The font weight.
397 void SetDefaultFontWeight( FontWeight weight );
400 * @brief Whether the font's weight has been defined.
402 bool IsDefaultFontWeightDefined() const;
405 * @brief Retrieves the default font weight.
407 * @return The default font weight.
409 FontWeight GetDefaultFontWeight() const;
412 * @brief Sets the default font width.
414 * @param[in] width The font width.
416 void SetDefaultFontWidth( FontWidth width );
419 * @brief Whether the font's width has been defined.
421 bool IsDefaultFontWidthDefined() const;
424 * @brief Retrieves the default font width.
426 * @return The default font width.
428 FontWidth GetDefaultFontWidth() const;
431 * @brief Sets the default font slant.
433 * @param[in] slant The font slant.
435 void SetDefaultFontSlant( FontSlant slant );
438 * @brief Whether the font's slant has been defined.
440 bool IsDefaultFontSlantDefined() const;
443 * @brief Retrieves the default font slant.
445 * @return The default font slant.
447 FontSlant GetDefaultFontSlant() const;
450 * @brief Set the default point size.
452 * @param[in] pointSize The default point size.
454 void SetDefaultPointSize( float pointSize );
457 * @brief Retrieve the default point size.
459 * @return The default point size.
461 float GetDefaultPointSize() const;
464 * @brief Sets the text's default color.
466 * @param color The default color.
468 void SetDefaultColor( const Vector4& color );
471 * @brief Retrieves the text's default color.
473 * @return The default color.
475 const Vector4& GetDefaultColor() const;
478 * @brief Set the text color
480 * @param textColor The text color
482 void SetPlaceholderTextColor( const Vector4& textColor );
485 * @brief Retrieve the text color
487 * @return The text color
489 const Vector4& GetPlaceholderTextColor() const;
492 * @brief Set the shadow offset.
494 * @param[in] shadowOffset The shadow offset, 0,0 indicates no shadow.
496 void SetShadowOffset( const Vector2& shadowOffset );
499 * @brief Retrieve the shadow offset.
501 * @return The shadow offset.
503 const Vector2& GetShadowOffset() const;
506 * @brief Set the shadow color.
508 * @param[in] shadowColor The shadow color.
510 void SetShadowColor( const Vector4& shadowColor );
513 * @brief Retrieve the shadow color.
515 * @return The shadow color.
517 const Vector4& GetShadowColor() const;
520 * @brief Set the underline color.
522 * @param[in] color color of underline.
524 void SetUnderlineColor( const Vector4& color );
527 * @brief Retrieve the underline color.
529 * @return The underline color.
531 const Vector4& GetUnderlineColor() const;
534 * @brief Set the underline enabled flag.
536 * @param[in] enabled The underline enabled flag.
538 void SetUnderlineEnabled( bool enabled );
541 * @brief Returns whether the text is underlined or not.
543 * @return The underline state.
545 bool IsUnderlineEnabled() const;
548 * @brief Set the override used for underline height, 0 indicates height will be supplied by font metrics
550 * @param[in] height The height in pixels of the underline
552 void SetUnderlineHeight( float height );
555 * @brief Retrieves the override height of an underline, 0 indicates height is supplied by font metrics
557 * @return The height of the underline, or 0 if height is not overrided.
559 float GetUnderlineHeight() const;
562 * @brief Sets the emboss's properties string.
564 * @note The string is stored to be recovered.
566 * @param[in] embossProperties The emboss's properties string.
568 void SetDefaultEmbossProperties( const std::string& embossProperties );
571 * @brief Retrieves the emboss's properties string.
573 * @return The emboss's properties string.
575 const std::string& GetDefaultEmbossProperties() const;
578 * @brief Sets the outline's properties string.
580 * @note The string is stored to be recovered.
582 * @param[in] outlineProperties The outline's properties string.
584 void SetDefaultOutlineProperties( const std::string& outlineProperties );
587 * @brief Retrieves the outline's properties string.
589 * @return The outline's properties string.
591 const std::string& GetDefaultOutlineProperties() const;
594 * @brief Sets the default line spacing.
596 * @param[in] lineSpacing The line spacing.
598 void SetDefaultLineSpacing( float lineSpacing );
601 * @brief Retrieves the default line spacing.
603 * @return The line spacing.
605 float GetDefaultLineSpacing() const;
608 * @brief Sets the input text's color.
610 * @param[in] color The input text's color.
612 void SetInputColor( const Vector4& color );
615 * @brief Retrieves the input text's color.
617 * @return The input text's color.
619 const Vector4& GetInputColor() const;
622 * @brief Sets the input text's font family name.
624 * @param[in] fontFamily The text's font family name.
626 void SetInputFontFamily( const std::string& fontFamily );
629 * @brief Retrieves the input text's font family name.
631 * @return The input text's font family name.
633 const std::string& GetInputFontFamily() const;
636 * @brief Sets the input font's weight.
638 * @param[in] weight The input font's weight.
640 void SetInputFontWeight( FontWeight weight );
643 * @return Whether the font's weight has been defined.
645 bool IsInputFontWeightDefined() const;
648 * @brief Retrieves the input font's weight.
650 * @return The input font's weight.
652 FontWeight GetInputFontWeight() const;
655 * @brief Sets the input font's width.
657 * @param[in] width The input font's width.
659 void SetInputFontWidth( FontWidth width );
662 * @return Whether the font's width has been defined.
664 bool IsInputFontWidthDefined() const;
667 * @brief Retrieves the input font's width.
669 * @return The input font's width.
671 FontWidth GetInputFontWidth() const;
674 * @brief Sets the input font's slant.
676 * @param[in] slant The input font's slant.
678 void SetInputFontSlant( FontSlant slant );
681 * @return Whether the font's slant has been defined.
683 bool IsInputFontSlantDefined() const;
686 * @brief Retrieves the input font's slant.
688 * @return The input font's slant.
690 FontSlant GetInputFontSlant() const;
693 * @brief Sets the input font's point size.
695 * @param[in] size The input font's point size.
697 void SetInputFontPointSize( float size );
700 * @brief Retrieves the input font's point size.
702 * @return The input font's point size.
704 float GetInputFontPointSize() const;
707 * @brief Sets the input line spacing.
709 * @param[in] lineSpacing The line spacing.
711 void SetInputLineSpacing( float lineSpacing );
714 * @brief Retrieves the input line spacing.
716 * @return The line spacing.
718 float GetInputLineSpacing() const;
721 * @brief Sets the input shadow's properties string.
723 * @note The string is stored to be recovered.
725 * @param[in] shadowProperties The shadow's properties string.
727 void SetInputShadowProperties( const std::string& shadowProperties );
730 * @brief Retrieves the input shadow's properties string.
732 * @return The shadow's properties string.
734 const std::string& GetInputShadowProperties() const;
737 * @brief Sets the input underline's properties string.
739 * @note The string is stored to be recovered.
741 * @param[in] underlineProperties The underline's properties string.
743 void SetInputUnderlineProperties( const std::string& underlineProperties );
746 * @brief Retrieves the input underline's properties string.
748 * @return The underline's properties string.
750 const std::string& GetInputUnderlineProperties() const;
753 * @brief Sets the input emboss's properties string.
755 * @note The string is stored to be recovered.
757 * @param[in] embossProperties The emboss's properties string.
759 void SetInputEmbossProperties( const std::string& embossProperties );
762 * @brief Retrieves the input emboss's properties string.
764 * @return The emboss's properties string.
766 const std::string& GetInputEmbossProperties() const;
769 * @brief Sets input the outline's properties string.
771 * @note The string is stored to be recovered.
773 * @param[in] outlineProperties The outline's properties string.
775 void SetInputOutlineProperties( const std::string& outlineProperties );
778 * @brief Retrieves the input outline's properties string.
780 * @return The outline's properties string.
782 const std::string& GetInputOutlineProperties() const;
784 public: // Queries & retrieves.
787 * @brief Return the layout engine.
789 * @return A reference to the layout engine.
791 Layout::Engine& GetLayoutEngine();
794 * @brief Return a view of the text.
796 * @return A reference to the view.
801 * @copydoc Control::GetNaturalSize()
803 Vector3 GetNaturalSize();
806 * @copydoc Control::GetHeightForWidth()
808 float GetHeightForWidth( float width );
811 * @brief Retrieves the text's model.
813 * @return A pointer to the text's model.
815 const ModelInterface* const GetTextModel() const;
818 * @brief Used to get scrolled distance by user input
820 * @return Distance from last scroll offset to new scroll offset
822 float GetScrollAmountByUserInput();
827 * @brief Triggers a relayout which updates View (if necessary).
829 * @note UI Controls are expected to minimize calls to this method e.g. call once after size negotiation.
830 * @param[in] size A the size of a bounding box to layout text within.
832 * @return Whether the text model or decorations were updated.
834 UpdateTextType Relayout( const Size& size );
837 * @brief Request a relayout using the ControlInterface.
839 void RequestRelayout();
841 public: // Input style change signals.
844 * @return Whether the queue of input style changed signals is empty.
846 bool IsInputStyleChangedSignalsQueueEmpty();
849 * @brief Process all pending input style changed signals.
851 * Calls the Text::ControlInterface::InputStyleChanged() method which is overriden by the
852 * text controls. Text controls may send signals to state the input style has changed.
854 void ProcessInputStyleChangedSignals();
856 public: // Text-input Event Queuing.
859 * @brief Called by editable UI controls when keyboard focus is gained.
861 void KeyboardFocusGainEvent();
864 * @brief Called by editable UI controls when focus is lost.
866 void KeyboardFocusLostEvent();
869 * @brief Called by editable UI controls when key events are received.
871 * @param[in] event The key event.
872 * @param[in] type Used to distinguish between regular key events and IMF events.
874 bool KeyEvent( const Dali::KeyEvent& event );
877 * @brief Called by editable UI controls when a tap gesture occurs.
878 * @param[in] tapCount The number of taps.
879 * @param[in] x The x position relative to the top-left of the parent control.
880 * @param[in] y The y position relative to the top-left of the parent control.
882 void TapEvent( unsigned int tapCount, float x, float y );
885 * @brief Called by editable UI controls when a pan gesture occurs.
887 * @param[in] state The state of the gesture.
888 * @param[in] displacement This distance panned since the last pan gesture.
890 void PanEvent( Gesture::State state, const Vector2& displacement );
893 * @brief Called by editable UI controls when a long press gesture occurs.
895 * @param[in] state The state of the gesture.
896 * @param[in] x The x position relative to the top-left of the parent control.
897 * @param[in] y The y position relative to the top-left of the parent control.
899 void LongPressEvent( Gesture::State state, float x, float y );
902 * @brief Event received from IMF manager
904 * @param[in] imfManager The IMF manager.
905 * @param[in] imfEvent The event received.
906 * @return A data struture indicating if update is needed, cursor position and current text.
908 ImfManager::ImfCallbackData OnImfEvent( ImfManager& imfManager, const ImfManager::ImfEventData& imfEvent );
911 * @brief Event from Clipboard notifying an Item has been selected for pasting
913 void PasteClipboardItemEvent();
915 protected: // Inherit from Text::Decorator::ControllerInterface.
918 * @copydoc Dali::Toolkit::Text::Decorator::ControllerInterface::GetTargetSize()
920 virtual void GetTargetSize( Vector2& targetSize );
923 * @copydoc Dali::Toolkit::Text::Decorator::ControllerInterface::AddDecoration()
925 virtual void AddDecoration( Actor& actor, bool needsClipping );
928 * @copydoc Dali::Toolkit::Text::Decorator::ControllerInterface::DecorationEvent()
930 virtual void DecorationEvent( HandleType handle, HandleState state, float x, float y );
932 protected: // Inherit from TextSelectionPopup::TextPopupButtonCallbackInterface.
935 * @copydoc Dali::Toolkit::TextSelectionPopup::TextPopupButtonCallbackInterface::TextPopupButtonTouched()
937 virtual void TextPopupButtonTouched( Dali::Toolkit::TextSelectionPopup::Buttons button );
942 * @brief Called by editable UI controls when key events are received.
944 * @param[in] text The text to insert.
945 * @param[in] type Used to distinguish between regular key events and IMF events.
947 void InsertText( const std::string& text, InsertType type );
950 * @brief Paste given string into Text model
951 * @param[in] stringToPaste this string will be inserted into the text model
953 void PasteText( const std::string& stringToPaste );
956 * @brief Remove a given number of characters
958 * When predictve text is used the pre-edit text is removed and inserted again with the new characters.
959 * The UpdateInputStyleType @type parameter if set to DONT_UPDATE_INPUT_STYLE avoids to update the input
960 * style when pre-edit text is removed.
962 * @param[in] cursorOffset Start position from the current cursor position to start deleting characters.
963 * @param[in] numberOfCharacters The number of characters to delete from the cursorOffset.
964 * @param[in] type Whether to update the input style.
965 * @return True if the remove was successful.
967 bool RemoveText( int cursorOffset,
968 int numberOfCharacters,
969 UpdateInputStyleType type );
972 * @brief Checks if text is selected and if so removes it.
973 * @return true if text was removed
975 bool RemoveSelectedText();
977 private: // Relayout.
980 * @brief Lays-out the text.
982 * GetNaturalSize(), GetHeightForWidth() and Relayout() calls this method.
984 * @param[in] size A the size of a bounding box to layout text within.
985 * @param[in] operations The layout operations which need to be done.
986 * @param[out] layoutSize The size of the laid-out text.
988 bool DoRelayout( const Size& size,
989 OperationsMask operations,
993 * @brief Calulates the vertical offset to align the text inside the bounding box.
995 * @param[in] size The size of the bounding box.
997 void CalculateVerticalOffset( const Size& size );
1002 * @brief Process queued events which modify the model.
1004 void ProcessModifyEvents();
1007 * @brief Used to process an event queued from SetText()
1009 void TextReplacedEvent();
1012 * @brief Used to process an event queued from key events etc.
1014 void TextInsertedEvent();
1017 * @brief Used to process an event queued from backspace key etc.
1019 void TextDeletedEvent();
1022 * @brief Creates a selection event.
1024 * It could be called from the TapEvent (double tap) or when the text selection popup's sellect all button is pressed.
1026 * @param[in] x The x position relative to the top-left of the parent control.
1027 * @param[in] y The y position relative to the top-left of the parent control.
1028 * @param[in] selectAll Whether the whole text is selected.
1030 void SelectEvent( float x, float y, bool selectAll );
1033 * @brief Helper to KeyEvent() to handle the backspace case.
1035 * @return True if a character was deleted.
1037 bool BackspaceKeyEvent();
1039 private: // Helpers.
1042 * @brief Used to remove the text included the placeholder text.
1047 * @brief Helper to show the place holder text..
1049 void ShowPlaceholderText();
1052 * @brief Helper to clear font-specific data (only).
1054 void ClearFontData();
1057 * @brief Helper to clear text's style data.
1059 void ClearStyleData();
1062 * @brief Used to reset the cursor position after setting a new text.
1064 * @param[in] cursorIndex Where to place the cursor.
1066 void ResetCursorPosition( CharacterIndex cursorIndex );
1069 * @brief Used to reset the scroll position after setting a new text.
1071 void ResetScrollPosition();
1073 private: // Private contructors & copy operator.
1076 * @brief Private constructor.
1081 * @brief Private constructor.
1083 Controller( ControlInterface* controlInterface );
1086 * @brief Private constructor.
1088 Controller( ControlInterface* controlInterface,
1089 EditableControlInterface* editableControlInterface );
1092 Controller( const Controller& handle );
1095 Controller& operator=( const Controller& handle );
1097 protected: // Destructor.
1100 * @brief A reference counted object may only be deleted by calling Unreference().
1102 virtual ~Controller();
1112 } // namespace Toolkit
1116 #endif // DALI_TOOLKIT_TEXT_CONTROLLER_H