.. index:: pair: class; EE::UI::UITextSelectionController .. _doxid-class_e_e_1_1_u_i_1_1_u_i_text_selection_controller: class EE::UI::UITextSelectionController ======================================= .. toctree:: :hidden: struct_EE_UI_UITextSelectionController_Point.rst struct_EE_UI_UITextSelectionController_SelectedSlice.rst struct_EE_UI_UITextSelectionController_Selection.rst struct_EE_UI_UITextSelectionController_SelectionSlice.rst Overview ~~~~~~~~ Coordinates document ordering, input, and :ref:`CSS ` selection policy across RichText paint owners. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class UITextSelectionController { public: // structs struct :ref:`Point`; struct :ref:`SelectedSlice`; struct :ref:`Selection`; struct :ref:`SelectionSlice`; // construction :target:`UITextSelectionController`(:ref:`UIWidget`* host = nullptr); :target:`~UITextSelectionController`(); // methods void :target:`setHost`(:ref:`UIWidget`* host); void :target:`setSelectionRoot`(:ref:`UIWidget`* root); :ref:`UIWidget`* :target:`getSelectionRoot`() const; const :ref:`Selection`& :target:`getSelection`() const; bool :target:`isSelecting`() const; bool :target:`hasSelection`() const; void :target:`clear`(); void :target:`selectAll`(); void :target:`setSelection`(:ref:`Point` anchor, :ref:`Point` focus); :ref:`String` :target:`getSelectionString`() const; bool :target:`copySelection`(); bool :target:`onKeyDown`(const :ref:`KeyEvent`& event); bool :target:`onMouseDown`(:ref:`UIRichText`* source, const :ref:`Vector2i`& position, :ref:`Uint32` flags); bool :target:`onMouseUp`(const :ref:`Vector2i`& position, :ref:`Uint32` flags); bool :target:`onMouseDoubleClick`(:ref:`UIRichText`* source, const :ref:`Vector2i`& position, :ref:`Uint32` flags); bool :target:`onMouseUpMessage`(const :ref:`NodeMessage`* message); bool :target:`showContextMenu`(const :ref:`Vector2i`& position, :ref:`Uint32` flags); bool :ref:`consumeSuppressedClick`(); void :target:`updateSelectionDrag`(); void :target:`onDocumentWillChange`(); void :target:`onDocumentChanged`(); void :ref:`onOwnerWillBeDestroyed`(:ref:`UIRichText`* owner); void :target:`refresh`(); }; .. _details-class_e_e_1_1_u_i_1_1_u_i_text_selection_controller: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Coordinates document ordering, input, and :ref:`CSS ` selection policy across RichText paint owners. Each owner still handles local character geometry and selection painting. Methods ------- .. index:: pair: function; consumeSuppressedClick .. _doxid-class_e_e_1_1_u_i_1_1_u_i_text_selection_controller_1aa876571ebe21ddaac9dcf9452ba2fee1: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool consumeSuppressedClick() Consumes the pending click from a text drag so a link does not navigate on release. .. index:: pair: function; onOwnerWillBeDestroyed .. _doxid-class_e_e_1_1_u_i_1_1_u_i_text_selection_controller_1adcd024d1af38365b86030d1661c43ad1: .. ref-code-block:: cpp :class: doxyrest-title-code-block void onOwnerWillBeDestroyed(:ref:`UIRichText`* owner) Called before an owner's RichText member is destroyed.