#include <ucaret.hpp>
Inheritance diagram for ufo::UCaret:
Public Types | |
typedef USignal3< UCaret *, unsigned int, unsigned int > | CaretSignal |
Public Member Functions | |
virtual void | setPosition (unsigned int posA)=0 |
virtual unsigned int | getPosition () const =0 |
virtual void | setMark (unsigned int mark)=0 |
virtual unsigned int | getMark () const =0 |
virtual void | movePosition (unsigned int newPosition)=0 |
virtual UDocument * | getDocument () const =0 |
CaretSignal & | sigPositionChanged () |
Further it supports basic selection features via a position and a mark handle.
|
The mark is a second text mark which is used to select regions. A region is selected between the caret position and the caret mark. Implemented in ufo::UBasicCaret.
|
|
Moves the cursor position from its current pos to the new pos, leaving a mark behind it (i.e. selecting the text). Implemented in ufo::UBasicCaret.
|
|
Explicitely sets the mark. Generally, you should use movePosition.
Implemented in ufo::UBasicCaret.
|
|
Sets the position. The position is the actual place of the caret and the insertion point for charaters in the text widget. Implemented in ufo::UBasicCaret.
|
|
caret is the caret, first int the position, 2nd the mark |