A text_cursor is used to visualise the editor<-caret
in an editor object.
Class text_cursor
is closely linked to class editor
and not meant to be used outside the context of editors.
The only interesting behaviour to the application programmer is:
text_cursor ->styleChange the lookof the carettext_cursor ->imageCreate custom caret.
Bugs:
The behaviour of this class is not complete. It performs satisfactory in the context of class editor, but is not very generic.
<-style.<->style
is image; this point describes how the image
object is positioned relative to the character.<->style
is image; this is the image
object.->active,
grey diamond otherwise. Used for OpenLook compatibility.
The default style used by an editor is determined by the font
associated with the editor. See text_cursor->font.
->style
according to the font. If the font has
font<-fixed_width
font, it will invoke text_cursor->style
using
font.fixed_font_style. Otherwise it will use font.proportional_font_style.->style->font
and editor<-text_cursor.->image