line-gadget
Factor handbook » UI framework » Implementing new gadgets » Gadget line support

Next:line-gadget? ( object -- ? )


Vocabulary
ui.gadgets.line-support

Class description
Base class for gadgets that implements display of sequences of text.

Line gadgets have the following slots:
fonta font.
selection-colora color.
min-rowsThe preferred minimum number of visible rows when the gadget is contained in a viewport.
max-rowsThe preferred maximum number of visible rows when the gadget is cotnained in a viewport.
min-colsThe preferred minimum number of visible columns when the gadget is contained in a viewport.
max-colsThe preferred maximum number of visible columns when the gadget is contained in a viewport.


Definition


TUPLE: line-gadget < gadget
font selection-color min-rows max-rows min-cols max-cols
line-leading line-height pref-viewport-dim ;


Methods