gadget-selection ( gadget -- string/f )
Factor handbook » UI framework » Building user interfaces » Pre-made UI gadgets » Editor gadgets » The caret and mark

Prev:gadget-selection? ( gadget -- ? )
Next:remove-selection ( editor -- )


Vocabulary
ui.gadgets

Inputs
gadgeta gadget


Outputs
string/fa string or f


Generic word contract
Outputs the gadget's text selection, or f if nothing is selected.

Definition

GENERIC: gadget-selection ( gadget -- string/f )


Methods