- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo::UBasicCaret Class Reference

#include <ubasicdocument.hpp>

Inheritance diagram for ufo::UBasicCaret:

ufo::UCaret ufo::UObject ufo::UCollectable List of all members.

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 UDocumentgetDocument () const

Detailed Description

A basic implementation of a text caret
Author:
Johannes Schmidt


Member Function Documentation

virtual unsigned int ufo::UBasicCaret::getMark  )  const [virtual]
 

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.

virtual void ufo::UBasicCaret::movePosition unsigned int  newPosition  )  [virtual]
 

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.

virtual void ufo::UBasicCaret::setMark unsigned int  mark  )  [virtual]
 

Explicitely sets the mark. Generally, you should use movePosition.

See also:
movePosition

Implements ufo::UCaret.

virtual void ufo::UBasicCaret::setPosition unsigned int  posA  )  [virtual]
 

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.


The documentation for this class was generated from the following file:
The libUFO Project - written by Johannes Schmidt