![]() |
MyScript Interactive Ink SDK
3.2.0
|
#include <IGestureHandler.h>
Public Member Functions | |
| virtual | ~IGestureHandler ()=default |
| virtual GestureAction | onTap (std::shared_ptr< Editor > editor, PointerTool tool, const String &gestureStrokeId, float x, float y)=0 |
| virtual GestureAction | onDoubleTap (std::shared_ptr< Editor > editor, PointerTool tool, const std::vector< String > &gestureStrokeIds, float x, float y)=0 |
| virtual GestureAction | onLongPress (std::shared_ptr< Editor > editor, PointerTool tool, const String &gestureStrokeId, float x, float y)=0 |
| virtual GestureAction | onUnderline (std::shared_ptr< Editor > editor, PointerTool tool, const String &gestureStrokeId, std::shared_ptr< ContentSelection > selection)=0 |
| virtual GestureAction | onSurround (std::shared_ptr< Editor > editor, PointerTool tool, const String &gestureStrokeId, std::shared_ptr< ContentSelection > selection)=0 |
| virtual GestureAction | onJoin (std::shared_ptr< Editor > editor, PointerTool tool, const String &gestureStrokeId, std::shared_ptr< ContentSelection > before, std::shared_ptr< ContentSelection > after)=0 |
| virtual GestureAction | onInsert (std::shared_ptr< Editor > editor, PointerTool tool, const String &gestureStrokeId, std::shared_ptr< ContentSelection > before, std::shared_ptr< ContentSelection > after)=0 |
| virtual GestureAction | onStrikethrough (std::shared_ptr< Editor > editor, PointerTool tool, const String &gestureStrokeId, std::shared_ptr< ContentSelection > selection)=0 |
| virtual GestureAction | onScratch (std::shared_ptr< Editor > editor, PointerTool tool, const String &gestureStrokeId, std::shared_ptr< ContentSelection > selection)=0 |
The listener interface for handling gesture events.
|
virtualdefault |
|
pure virtual |
Invoked when a tap has been detected.
| editor | the editor. |
| tool | the tool used to perform the gesture. |
| gestureStrokeId | the id of the gesture stroke. |
| x | the tap x position (view coordinate in px). |
| y | the tap y position (view coordinate in px). |
|
pure virtual |
Invoked when a double tap has been detected.
| editor | the editor. |
| tool | the tool used to perform the gesture. |
| gestureStrokeIds | the id of the gesture strokes. |
| x | the double tap x position (view coordinate in px). |
| y | the double tap y position (view coordinate in px). |
|
pure virtual |
Invoked when a long press has been detected.
| editor | the editor. |
| tool | the tool used to perform the gesture. |
| gestureStrokeId | the id of the gesture stroke. |
| x | the long press x position (view coordinate in px). |
| y | the long press y position (view coordinate in px). |
|
pure virtual |
Invoked when a portion of text has been underlined.
| editor | the editor. |
| tool | the tool used to perform the gesture. |
| gestureStrokeId | the id of the gesture stroke. |
| selection | the underlined portion of text. |
|
pure virtual |
Invoked when a portion of text has been surrounded.
| editor | the editor. |
| tool | the tool used to perform the gesture. |
| gestureStrokeId | the id of the gesture stroke. |
| selection | the surrounded portion of text. |
|
pure virtual |
Invoked when a join gesture has been drawn between two portions of a text line, or at the beginning or end of a line.
| editor | the editor. |
| tool | the tool used to perform the gesture. |
| gestureStrokeId | the id of the gesture stroke. |
| before | the portion of the text line before the join gesture. |
| after | the portion of the text line after the join gesture. |
|
pure virtual |
Invoked when an insert gesture has been drawn between two portions of a text line, or at the beginning or end of a line.
| editor | the editor. |
| tool | the tool used to perform the gesture. |
| gestureStrokeId | the id of the gesture stroke. |
| before | the portion of the text line before the insert gesture. |
| after | the portion of the text line after the insert gesture. |
|
pure virtual |
Invoked when a portion of text has been striked through.
| editor | the editor. |
| tool | the tool used to perform the gesture. |
| gestureStrokeId | the id of the gesture stroke. |
| selection | the striked through portion of text. |
|
pure virtual |
Invoked when a portion of text has been scratched.
| editor | the editor. |
| tool | the tool used to perform the gesture. |
| gestureStrokeId | the id of the gesture stroke. |
| selection | the scratched portion of text. |