struct CursorInfo;
struct FontDefaults;
struct ControllerImplEventHandler;
+struct SelectionHandleController;
class SelectableControlInterface;
EventData( DecoratorPtr decorator, InputMethodContext& inputMethodContext );
- ~EventData();
+ ~EventData() = default;
static bool IsEditingState( State stateToCheck )
{
bool mPlaceholderEllipsisFlag : 1; ///< True if the text controller sets the placeholder ellipsis.
bool mShiftSelectionFlag : 1; ///< True if the text selection using Shift key is enabled.
bool mUpdateAlignment : 1; ///< True if the whole text needs to be full aligned..
- bool mEditingEnabled : 1; ///< True if the editing is enabled, false otherwise.
+ bool mEditingEnabled : 1; ///< True if the editing is enabled, false otherwise.
};
struct ModifyEvent
*/
float GetDefaultFontLineHeight();
- void OnCursorKeyEvent( const Event& event );
-
- void OnTapEvent( const Event& event );
-
- void OnPanEvent( const Event& event );
-
- void OnLongPressEvent( const Event& event );
-
- void OnHandleEvent( const Event& event );
-
- void OnSelectEvent( const Event& event );
-
- void OnSelectAllEvent();
+ /**
+ * @copydoc Text::Controller::GetPrimaryCursorPosition()
+ */
+ CharacterIndex GetPrimaryCursorPosition() const;
- void OnSelectNoneEvent();
+ /**
+ * @copydoc Text::Controller::SetPrimaryCursorPosition()
+ */
+ bool SetPrimaryCursorPosition( CharacterIndex index );
/**
* @copydoc Text::SelectableControlInterface::SetTextSelectionRange()
void ScrollTextToMatchCursor( const CursorInfo& cursorInfo );
/**
+ * @brief Scrolls the text to make primary cursor visible.
+ */
+ void ScrollTextToMatchCursor( );
+
+ /**
* @brief Create an actor that renders the text background color
*
* @return the created actor or an empty handle if no background color needs to be rendered.
private:
friend ControllerImplEventHandler;
+ friend SelectionHandleController;
};
} // namespace Text