#include <ubasicdocument.hpp>
Inheritance diagram for ufo::UBasicCaret:
Public Member Functions | |
UBasicCaret (UDocument *document) | |
virtual void | setPosition (unsigned int posA) |
virtual unsigned int | getPosition () const |
virtual void | setMark (unsigned int mark) |
virtual unsigned int | getMark () const |
virtual void | movePosition (unsigned int newPosition) |
virtual UDocument * | getDocument () const |
|
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. Implements ufo::UCaret.
|
|
Moves the cursor position from its current pos to the new pos, leaving a mark behind it (i.e. selecting the text). Implements ufo::UCaret.
|
|
Explicitely sets the mark. Generally, you should use movePosition.
Implements ufo::UCaret.
|
|
Sets the position. The position is the actual place of the caret and the insertion point for charaters in the text widget. Implements ufo::UCaret.
|