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-control-interface.h>
43 typedef IntrusivePtr<Controller> ControllerPtr;
44 typedef Dali::Toolkit::Text::ControlInterface ControlInterface;
47 * @brief A Text Controller is used by UI Controls which display text.
49 * It manipulates the Logical & Visual text models on behalf of the UI Controls.
50 * It provides a view of the text that can be used by rendering back-ends.
52 * For selectable/editable UI controls, the controller handles input events from the UI control
53 * and decorations (grab handles etc) via the Decorator::ControllerInterface interface.
55 * The text selection popup button callbacks are as well handled via the TextSelectionPopupCallbackInterface interface.
57 class Controller : public RefObject, public Decorator::ControllerInterface, public TextSelectionPopupCallbackInterface
59 public: // Enumerated types.
62 * @brief Text related operations to be done in the relayout process.
66 NO_OPERATION = 0x0000,
67 CONVERT_TO_UTF32 = 0x0001,
69 VALIDATE_FONTS = 0x0004,
70 GET_LINE_BREAKS = 0x0008,
71 GET_WORD_BREAKS = 0x0010,
74 GET_GLYPH_METRICS = 0x0080,
76 UPDATE_LAYOUT_SIZE = 0x0200,
80 UPDATE_DIRECTION = 0x2000,
81 ALL_OPERATIONS = 0xFFFF
85 * @brief Used to distinguish between regular key events and IMF events
94 * @brief Used to specify whether to update the input style.
96 enum UpdateInputStyleType
99 DONT_UPDATE_INPUT_STYLE
103 * @brief Used to specify what has been updated after the Relayout() method has been called.
107 NONE_UPDATED = 0x0, ///< Nothing has been updated.
108 MODEL_UPDATED = 0x1, ///< The text's model has been updated.
109 DECORATOR_UPDATED = 0x2 ///< The decoration has been updated.
113 * @brief Different placeholder-text can be shown when the control is active/inactive.
117 PLACEHOLDER_TYPE_ACTIVE,
118 PLACEHOLDER_TYPE_INACTIVE,
121 public: // Constructor.
124 * @brief Create a new instance of a Controller.
126 * @param[in] controlInterface An interface used to request a text relayout.
127 * @return A pointer to a new Controller.
129 static ControllerPtr New( ControlInterface& controlInterface );
131 public: // Configure the text controller.
134 * @brief Called to enable text input.
136 * @note Selectable or editable controls should call this once after Controller::New().
137 * @param[in] decorator Used to create cursor, selection handle decorations etc.
139 void EnableTextInput( DecoratorPtr decorator );
142 * @brief Used to switch between bitmap & vector based glyphs
144 * @param[in] glyphType The type of glyph; note that metrics for bitmap & vector based glyphs are different.
146 void SetGlyphType( TextAbstraction::GlyphType glyphType );
149 * @brief Enables/disables the mark-up processor.
151 * By default is disabled.
153 * @param[in] enable Whether to enable the mark-up processor.
155 void SetMarkupProcessorEnabled( bool enable );
158 * @brief Retrieves whether the mark-up processor is enabled.
160 * By default is disabled.
162 * @return @e true if the mark-up processor is enabled, otherwise returns @e false.
164 bool IsMarkupProcessorEnabled() const;
167 * @brief Enables/disables the auto text scrolling
169 * By default is disabled.
171 * @param[in] enable Whether to enable the auto scrolling
173 void SetAutoScrollEnabled( bool enable );
176 * @brief Retrieves whether auto text scrolling is enabled.
178 * By default is disabled.
180 * @return @e true if auto scrolling is enabled, otherwise returns @e false.
182 bool IsAutoScrollEnabled() const;
185 * @brief Get direction of the text from the first line of text,
186 * @return bool rtl (right to left) is true
188 CharacterDirection GetAutoScrollDirection() const;
191 * @brief Get the alignment offset of the first line of text.
193 * @return The alignment offset.
195 float GetAutoScrollLineAlignment() const;
198 * @brief Enables the horizontal scrolling.
200 * @param[in] enable Whether to enable the horizontal scrolling.
202 void SetHorizontalScrollEnabled( bool enable );
205 * @brief Retrieves whether the horizontal scrolling is enabled.
207 * @return @e true if the horizontal scrolling is enabled, otherwise it returns @e false.
209 bool IsHorizontalScrollEnabled() const;
212 * @brief Enables the vertical scrolling.
214 * @param[in] enable Whether to enable the vertical scrolling.
216 void SetVerticalScrollEnabled( bool enable );
219 * @brief Retrieves whether the verticall scrolling is enabled.
221 * @return @e true if the vertical scrolling is enabled, otherwise it returns @e false.
223 bool IsVerticalScrollEnabled() const;
226 * @brief Enables the smooth handle panning.
228 * @param[in] enable Whether to enable the smooth handle panning.
230 void SetSmoothHandlePanEnabled( bool enable );
233 * @brief Retrieves whether the smooth handle panning is enabled.
235 * @return @e true if the smooth handle panning is enabled.
237 bool IsSmoothHandlePanEnabled() const;
240 * @brief Sets the maximum number of characters that can be inserted into the TextModel
242 * @param[in] maxCharacters maximum number of characters to be accepted
244 void SetMaximumNumberOfCharacters( Length maxCharacters );
247 * @brief Sets the maximum number of characters that can be inserted into the TextModel
249 * @param[in] maxCharacters maximum number of characters to be accepted
251 int GetMaximumNumberOfCharacters();
254 * @brief Called to enable/disable cursor blink.
256 * @note Only editable controls should calls this.
257 * @param[in] enabled Whether the cursor should blink or not.
259 void SetEnableCursorBlink( bool enable );
262 * @brief Query whether cursor blink is enabled.
264 * @return Whether the cursor should blink or not.
266 bool GetEnableCursorBlink() const;
269 * @brief Whether to enable the multi-line layout.
271 * @param[in] enable \e true enables the multi-line (by default)
273 void SetMultiLineEnabled( bool enable );
276 * @return Whether the multi-line layout is enabled.
278 bool IsMultiLineEnabled() const;
281 * @copydoc Dali::Toolkit::Text::LayoutEngine::SetHorizontalAlignment()
283 void SetHorizontalAlignment( LayoutEngine::HorizontalAlignment alignment );
286 * @copydoc Dali::Toolkit::Text::LayoutEngine::GetHorizontalAlignment()
288 LayoutEngine::HorizontalAlignment GetHorizontalAlignment() const;
291 * @copydoc Dali::Toolkit::Text::LayoutEngine::SetVerticalAlignment()
293 void SetVerticalAlignment( LayoutEngine::VerticalAlignment alignment );
296 * @copydoc Dali::Toolkit::Text::LayoutEngine::GetVerticalAlignment()
298 LayoutEngine::VerticalAlignment GetVerticalAlignment() const;
303 * @brief Replaces any text previously set.
305 * @note This will be converted into UTF-32 when stored in the text model.
306 * @param[in] text A string of UTF-8 characters.
308 void SetText( const std::string& text );
311 * @brief Retrieve any text previously set.
313 * @param[out] text A string of UTF-8 characters.
315 void GetText( std::string& text ) const;
318 * @brief Replaces any placeholder text previously set.
320 * @param[in] type Different placeholder-text can be shown when the control is active/inactive.
321 * @param[in] text A string of UTF-8 characters.
323 void SetPlaceholderText( PlaceholderType type, const std::string& text );
326 * @brief Retrieve any placeholder text previously set.
328 * @param[in] type Different placeholder-text can be shown when the control is active/inactive.
329 * @param[out] A string of UTF-8 characters.
331 void GetPlaceholderText( PlaceholderType type, std::string& text ) const;
334 * @ brief Update the text after a font change
335 * @param[in] newDefaultFont The new font to change to
337 void UpdateAfterFontChange( const std::string& newDefaultFont );
339 public: // Default style & Input style
342 * @brief Set the default font family.
344 * @param[in] defaultFontFamily The default font family.
346 void SetDefaultFontFamily( const std::string& defaultFontFamily );
349 * @brief Retrieve the default font family.
351 * @return The default font family.
353 const std::string& GetDefaultFontFamily() const;
356 * @brief Sets the default font weight.
358 * @param[in] weight The font weight.
360 void SetDefaultFontWeight( FontWeight weight );
363 * @brief Whether the font's weight has been defined.
365 bool IsDefaultFontWeightDefined() const;
368 * @brief Retrieves the default font weight.
370 * @return The default font weight.
372 FontWeight GetDefaultFontWeight() const;
375 * @brief Sets the default font width.
377 * @param[in] width The font width.
379 void SetDefaultFontWidth( FontWidth width );
382 * @brief Whether the font's width has been defined.
384 bool IsDefaultFontWidthDefined() const;
387 * @brief Retrieves the default font width.
389 * @return The default font width.
391 FontWidth GetDefaultFontWidth() const;
394 * @brief Sets the default font slant.
396 * @param[in] slant The font slant.
398 void SetDefaultFontSlant( FontSlant slant );
401 * @brief Whether the font's slant has been defined.
403 bool IsDefaultFontSlantDefined() const;
406 * @brief Retrieves the default font slant.
408 * @return The default font slant.
410 FontSlant GetDefaultFontSlant() const;
413 * @brief Set the default point size.
415 * @param[in] pointSize The default point size.
417 void SetDefaultPointSize( float pointSize );
420 * @brief Retrieve the default point size.
422 * @return The default point size.
424 float GetDefaultPointSize() const;
427 * @brief Set the text color
429 * @param textColor The text color
431 void SetTextColor( const Vector4& textColor );
434 * @brief Retrieve the text color
436 * @return The text color
438 const Vector4& GetTextColor() const;
441 * @brief Set the text color
443 * @param textColor The text color
445 void SetPlaceholderTextColor( const Vector4& textColor );
448 * @brief Retrieve the text color
450 * @return The text color
452 const Vector4& GetPlaceholderTextColor() const;
455 * @brief Set the shadow offset.
457 * @param[in] shadowOffset The shadow offset, 0,0 indicates no shadow.
459 void SetShadowOffset( const Vector2& shadowOffset );
462 * @brief Retrieve the shadow offset.
464 * @return The shadow offset.
466 const Vector2& GetShadowOffset() const;
469 * @brief Set the shadow color.
471 * @param[in] shadowColor The shadow color.
473 void SetShadowColor( const Vector4& shadowColor );
476 * @brief Retrieve the shadow color.
478 * @return The shadow color.
480 const Vector4& GetShadowColor() const;
483 * @brief Sets the shadow's properties string.
485 * @note The string is stored to be recovered.
487 * @param[in] shadowProperties The shadow's properties string.
489 void SetDefaultShadowProperties( const std::string& shadowProperties );
492 * @brief Retrieves the shadow's properties string.
494 * @return The shadow's properties string.
496 const std::string& GetDefaultShadowProperties() const;
499 * @brief Set the underline color.
501 * @param[in] color color of underline.
503 void SetUnderlineColor( const Vector4& color );
506 * @brief Retrieve the underline color.
508 * @return The underline color.
510 const Vector4& GetUnderlineColor() const;
513 * @brief Set the underline enabled flag.
515 * @param[in] enabled The underline enabled flag.
517 void SetUnderlineEnabled( bool enabled );
520 * @brief Returns whether the text is underlined or not.
522 * @return The underline state.
524 bool IsUnderlineEnabled() const;
527 * @brief Set the override used for underline height, 0 indicates height will be supplied by font metrics
529 * @param[in] height The height in pixels of the underline
531 void SetUnderlineHeight( float height );
534 * @brief Retrieves the override height of an underline, 0 indicates height is supplied by font metrics
536 * @return The height of the underline, or 0 if height is not overrided.
538 float GetUnderlineHeight() const;
541 * @brief Sets the underline's properties string.
543 * @note The string is stored to be recovered.
545 * @param[in] underlineProperties The underline's properties string.
547 void SetDefaultUnderlineProperties( const std::string& underlineProperties );
550 * @brief Retrieves the underline's properties string.
552 * @return The underline's properties string.
554 const std::string& GetDefaultUnderlineProperties() const;
557 * @brief Sets the emboss's properties string.
559 * @note The string is stored to be recovered.
561 * @param[in] embossProperties The emboss's properties string.
563 void SetDefaultEmbossProperties( const std::string& embossProperties );
566 * @brief Retrieves the emboss's properties string.
568 * @return The emboss's properties string.
570 const std::string& GetDefaultEmbossProperties() const;
573 * @brief Sets the outline's properties string.
575 * @note The string is stored to be recovered.
577 * @param[in] outlineProperties The outline's properties string.
579 void SetDefaultOutlineProperties( const std::string& outlineProperties );
582 * @brief Retrieves the outline's properties string.
584 * @return The outline's properties string.
586 const std::string& GetDefaultOutlineProperties() const;
589 * @brief Sets the default line spacing.
591 * @param[in] lineSpacing The line spacing.
593 void SetDefaultLineSpacing( float lineSpacing );
596 * @brief Retrieves the default line spacing.
598 * @return The line spacing.
600 float GetDefaultLineSpacing() const;
603 * @brief Sets the input text's color.
605 * @param[in] color The input text's color.
607 void SetInputColor( const Vector4& color );
610 * @brief Retrieves the input text's color.
612 * @return The input text's color.
614 const Vector4& GetInputColor() const;
617 * @brief Sets the input text's font family name.
619 * @param[in] fontFamily The text's font family name.
621 void SetInputFontFamily( const std::string& fontFamily );
624 * @brief Retrieves the input text's font family name.
626 * @return The input text's font family name.
628 const std::string& GetInputFontFamily() const;
631 * @brief Sets the input font's weight.
633 * @param[in] weight The input font's weight.
635 void SetInputFontWeight( FontWeight weight );
638 * @return Whether the font's weight has been defined.
640 bool IsInputFontWeightDefined() const;
643 * @brief Retrieves the input font's weight.
645 * @return The input font's weight.
647 FontWeight GetInputFontWeight() const;
650 * @brief Sets the input font's width.
652 * @param[in] width The input font's width.
654 void SetInputFontWidth( FontWidth width );
657 * @return Whether the font's width has been defined.
659 bool IsInputFontWidthDefined() const;
662 * @brief Retrieves the input font's width.
664 * @return The input font's width.
666 FontWidth GetInputFontWidth() const;
669 * @brief Sets the input font's slant.
671 * @param[in] slant The input font's slant.
673 void SetInputFontSlant( FontSlant slant );
676 * @return Whether the font's slant has been defined.
678 bool IsInputFontSlantDefined() const;
681 * @brief Retrieves the input font's slant.
683 * @return The input font's slant.
685 FontSlant GetInputFontSlant() const;
688 * @brief Sets the input font's point size.
690 * @param[in] size The input font's point size.
692 void SetInputFontPointSize( float size );
695 * @brief Retrieves the input font's point size.
697 * @return The input font's point size.
699 float GetInputFontPointSize() const;
702 * @brief Sets the input line spacing.
704 * @param[in] lineSpacing The line spacing.
706 void SetInputLineSpacing( float lineSpacing );
709 * @brief Retrieves the input line spacing.
711 * @return The line spacing.
713 float GetInputLineSpacing() const;
716 * @brief Sets the input shadow's properties string.
718 * @note The string is stored to be recovered.
720 * @param[in] shadowProperties The shadow's properties string.
722 void SetInputShadowProperties( const std::string& shadowProperties );
725 * @brief Retrieves the input shadow's properties string.
727 * @return The shadow's properties string.
729 const std::string& GetInputShadowProperties() const;
732 * @brief Sets the input underline's properties string.
734 * @note The string is stored to be recovered.
736 * @param[in] underlineProperties The underline's properties string.
738 void SetInputUnderlineProperties( const std::string& underlineProperties );
741 * @brief Retrieves the input underline's properties string.
743 * @return The underline's properties string.
745 const std::string& GetInputUnderlineProperties() const;
748 * @brief Sets the input emboss's properties string.
750 * @note The string is stored to be recovered.
752 * @param[in] embossProperties The emboss's properties string.
754 void SetInputEmbossProperties( const std::string& embossProperties );
757 * @brief Retrieves the input emboss's properties string.
759 * @return The emboss's properties string.
761 const std::string& GetInputEmbossProperties() const;
764 * @brief Sets input the outline's properties string.
766 * @note The string is stored to be recovered.
768 * @param[in] outlineProperties The outline's properties string.
770 void SetInputOutlineProperties( const std::string& outlineProperties );
773 * @brief Retrieves the input outline's properties string.
775 * @return The outline's properties string.
777 const std::string& GetInputOutlineProperties() const;
779 public: // Queries & retrieves.
782 * @brief Return the layout engine.
784 * @return A reference to the layout engine.
786 LayoutEngine& GetLayoutEngine();
789 * @brief Return a view of the text.
791 * @return A reference to the view.
796 * @brief Query the current scroll position; the UI control is responsible for moving actors to this position.
798 * @return The scroll position.
800 const Vector2& GetScrollPosition() const;
803 * @copydoc Control::GetNaturalSize()
805 Vector3 GetNaturalSize();
808 * @copydoc Control::GetHeightForWidth()
810 float GetHeightForWidth( float width );
815 * @brief Triggers a relayout which updates View (if necessary).
817 * @note UI Controls are expected to minimize calls to this method e.g. call once after size negotiation.
818 * @param[in] size A the size of a bounding box to layout text within.
820 * @return Whether the text model or decorations were updated.
822 UpdateTextType Relayout( const Size& size );
824 public: // Input style change signals.
827 * @return Whether the queue of input style changed signals is empty.
829 bool IsInputStyleChangedSignalsQueueEmpty();
832 * @brief Process all pending input style changed signals.
834 * Calls the Text::ControlInterface::InputStyleChanged() method which is overriden by the
835 * text controls. Text controls may send signals to state the input style has changed.
837 void ProcessInputStyleChangedSignals();
839 public: // Text-input Event Queuing.
842 * @brief Called by editable UI controls when keyboard focus is gained.
844 void KeyboardFocusGainEvent();
847 * @brief Called by editable UI controls when focus is lost.
849 void KeyboardFocusLostEvent();
852 * @brief Called by editable UI controls when key events are received.
854 * @param[in] event The key event.
855 * @param[in] type Used to distinguish between regular key events and IMF events.
857 bool KeyEvent( const Dali::KeyEvent& event );
860 * @brief Called by editable UI controls when a tap gesture occurs.
861 * @param[in] tapCount The number of taps.
862 * @param[in] x The x position relative to the top-left of the parent control.
863 * @param[in] y The y position relative to the top-left of the parent control.
865 void TapEvent( unsigned int tapCount, float x, float y );
868 * @brief Called by editable UI controls when a pan gesture occurs.
870 * @param[in] state The state of the gesture.
871 * @param[in] displacement This distance panned since the last pan gesture.
873 void PanEvent( Gesture::State state, const Vector2& displacement );
876 * @brief Called by editable UI controls when a long press gesture occurs.
878 * @param[in] state The state of the gesture.
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 LongPressEvent( Gesture::State state, float x, float y );
885 * @brief Event received from IMF manager
887 * @param[in] imfManager The IMF manager.
888 * @param[in] imfEvent The event received.
889 * @return A data struture indicating if update is needed, cursor position and current text.
891 ImfManager::ImfCallbackData OnImfEvent( ImfManager& imfManager, const ImfManager::ImfEventData& imfEvent );
894 * @brief Event from Clipboard notifying an Item has been selected for pasting
896 void PasteClipboardItemEvent();
898 protected: // Inherit from Text::Decorator::ControllerInterface.
901 * @copydoc Dali::Toolkit::Text::Decorator::ControllerInterface::GetTargetSize()
903 virtual void GetTargetSize( Vector2& targetSize );
906 * @copydoc Dali::Toolkit::Text::Decorator::ControllerInterface::AddDecoration()
908 virtual void AddDecoration( Actor& actor, bool needsClipping );
911 * @copydoc Dali::Toolkit::Text::Decorator::ControllerInterface::DecorationEvent()
913 virtual void DecorationEvent( HandleType handle, HandleState state, float x, float y );
915 protected: // Inherit from TextSelectionPopup::TextPopupButtonCallbackInterface.
918 * @copydoc Dali::Toolkit::TextSelectionPopup::TextPopupButtonCallbackInterface::TextPopupButtonTouched()
920 virtual void TextPopupButtonTouched( Dali::Toolkit::TextSelectionPopup::Buttons button );
925 * @brief Called by editable UI controls when key events are received.
927 * @param[in] text The text to insert.
928 * @param[in] type Used to distinguish between regular key events and IMF events.
930 void InsertText( const std::string& text, InsertType type );
933 * @brief Paste given string into Text model
934 * @param[in] stringToPaste this string will be inserted into the text model
936 void PasteText( const std::string& stringToPaste );
939 * @brief Remove a given number of characters
941 * When predictve text is used the pre-edit text is removed and inserted again with the new characters.
942 * The UpdateInputStyleType @type parameter if set to DONT_UPDATE_INPUT_STYLE avoids to update the input
943 * style when pre-edit text is removed.
945 * @param[in] cursorOffset Start position from the current cursor position to start deleting characters.
946 * @param[in] numberOfCharacters The number of characters to delete from the cursorOffset.
947 * @param[in] type Whether to update the input style.
948 * @return True if the remove was successful.
950 bool RemoveText( int cursorOffset,
951 int numberOfCharacters,
952 UpdateInputStyleType type );
955 * @brief Checks if text is selected and if so removes it.
956 * @return true if text was removed
958 bool RemoveSelectedText();
960 private: // Relayout.
963 * @brief Lays-out the text.
965 * GetNaturalSize(), GetHeightForWidth() and Relayout() calls this method.
967 * @param[in] size A the size of a bounding box to layout text within.
968 * @param[in] operations The layout operations which need to be done.
969 * @param[out] layoutSize The size of the laid-out text.
971 bool DoRelayout( const Size& size,
972 OperationsMask operations,
976 * @brief Calulates the vertical offset to align the text inside the bounding box.
978 * @param[in] size The size of the bounding box.
980 void CalculateVerticalOffset( const Size& size );
985 * @brief Process queued events which modify the model.
987 void ProcessModifyEvents();
990 * @brief Used to process an event queued from SetText()
992 void TextReplacedEvent();
995 * @brief Used to process an event queued from key events etc.
997 void TextInsertedEvent();
1000 * @brief Used to process an event queued from backspace key etc.
1002 void TextDeletedEvent();
1005 * @brief Creates a selection event.
1007 * It could be called from the TapEvent (double tap) or when the text selection popup's sellect all button is pressed.
1009 * @param[in] x The x position relative to the top-left of the parent control.
1010 * @param[in] y The y position relative to the top-left of the parent control.
1011 * @param[in] selectAll Whether the whole text is selected.
1013 void SelectEvent( float x, float y, bool selectAll );
1016 * @brief Helper to KeyEvent() to handle the backspace case.
1018 * @return True if a character was deleted.
1020 bool BackspaceKeyEvent();
1022 private: // Helpers.
1025 * @brief Used to remove the text included the placeholder text.
1030 * @brief Helper to show the place holder text..
1032 void ShowPlaceholderText();
1035 * @brief Helper to clear font-specific data (only).
1037 void ClearFontData();
1040 * @brief Helper to clear text's style data.
1042 void ClearStyleData();
1045 * @brief Used to reset the cursor position after setting a new text.
1047 * @param[in] cursorIndex Where to place the cursor.
1049 void ResetCursorPosition( CharacterIndex cursorIndex );
1052 * @brief Used to reset the scroll position after setting a new text.
1054 void ResetScrollPosition();
1056 private: // Private contructors & copy operator.
1059 * @brief Private constructor.
1061 Controller( ControlInterface& controlInterface );
1064 Controller( const Controller& handle );
1067 Controller& operator=( const Controller& handle );
1069 protected: // Destructor.
1072 * @brief A reference counted object may only be deleted by calling Unreference().
1074 virtual ~Controller();
1084 } // namespace Toolkit
1088 #endif // __DALI_TOOLKIT_TEXT_CONTROLLER_H__