editor
Factor handbook > UI framework > Building user interfaces > Pre-made UI gadgets > Editor gadgets

Prev:Editor gadget commands
Next:<editor> ( -- editor )


Vocabulary
ui.gadgets.editors

Class description
An editor is a control for editing a multi-line passage of text stored in a document model. Editors are created by calling <editor>.

Editors have the following slots:
caret-color - a color.
caret - a model storing a line/column pair.
mark - a model storing a line/column pair. If there is no selection, the mark is equal to the caret, otherwise the mark is located at the opposite end of the selection from the caret.
focused? - a boolean.


See also
line-gadget

Definition


TUPLE: editor < line-gadget
caret-color caret mark focused? blink blink-timer
default-text ;


Methods