|
CFx SDK Documentation 2026 SP0
|
#include <FxUITextCursor.h>
Public Types | |
| enum | FxUIMoveOperation { NoMove = 0 , Start = 1 , StartOfLine = 3 , StartOfBlock = 5 , PreviousBlock = 6 , PreviousCharacter = 7 , PreviousWord = 8 , Up = 2 , Left = 9 , WordLeft = 10 , End = 11 , EndOfLine = 13 , EndOfWord = 14 , EndOfBlock = 15 , NextBlock = 16 , NextCharacter = 17 , NextWord = 18 , Down = 12 , Right = 19 , WordRight = 20 , NextCell = 21 , PreviousCell = 22 , NextRow = 23 , PreviousRow = 24 } |
| enum | FxUIMoveMode { MoveAnchor , KeepAnchor } |
Public Member Functions | |
| CFxUITextCursor (CFxUITextView *view) | |
| ~CFxUITextCursor () | |
| bool | movePosition (FxUIMoveOperation moveOperation, FxUIMoveMode moveMode, int n=1) |
| CFxUIString | selectedText () |
| void | removeSelectedText () |
| void | deletePreviousChar () |
| int | position () const |
| void | setPosition (int pos) |
Protected Attributes | |
| CFxUITextCursorImpl * | m_pImpl = nullptr |
Class CFxUITextCursor handles all operations for CFxUITextView cursor.
Definition at line 26 of file FxUITextCursor.h.
| Enumerator | |
|---|---|
| MoveAnchor | |
| KeepAnchor | |
Definition at line 57 of file FxUITextCursor.h.
Definition at line 29 of file FxUITextCursor.h.
| CFxUITextCursor::CFxUITextCursor | ( | CFxUITextView * | view | ) |
Constructor
| CFxUITextCursor::~CFxUITextCursor | ( | ) |
Destructor
| void CFxUITextCursor::deletePreviousChar | ( | ) |
Delete the previous char.
| bool CFxUITextCursor::movePosition | ( | FxUIMoveOperation | moveOperation, |
| FxUIMoveMode | moveMode, | ||
| int | n = 1 ) |
Moves the cursor by performing the given operation n times, using the specified mode, and returns true if all operations were completed successfully; otherwise returns false.
| int CFxUITextCursor::position | ( | ) | const |
Returns the current position.
| void CFxUITextCursor::removeSelectedText | ( | ) |
Removes the current selected text.
| CFxUIString CFxUITextCursor::selectedText | ( | ) |
Returns the current selected text.
| void CFxUITextCursor::setPosition | ( | int | pos | ) |
Sets the current position.
| int |
|
protected |
Definition at line 109 of file FxUITextCursor.h.