Handbook
Glossary
validate-line ( m gadget -- n )
Factor handbook
»
UI framework
»
Implementing new gadgets
»
Gadget line support
Prev:
line-leading ( gadget -- n )
Next:
visible-lines ( gadget -- n )
Vocabulary
ui
.
gadgets
.
line-support
Inputs
m
an
object
gadget
an
object
Outputs
n
an
object
Definition
USING:
kernel
math
math.order
sequences
ui.gadgets
;
IN:
ui.gadgets.line-support
:
validate-line
( m gadget -- n )
control-value
[
drop
f
]
[
length
1
-
min
0
max
]
if-empty
;