Handbook
Glossary
rect-bounds ( rect -- loc dim )
Factor handbook
»
UI framework
»
Building user interfaces
»
Gadget geometry
»
Rectangles
Prev:
rect
Next:
rect-extent ( rect -- loc ext )
Vocabulary
math
.
rectangles
Inputs
rect
a
rect
Outputs
loc
a pair of integers
dim
a pair of integers
Word description
Outputs the location and dimensions of a rectangle.
See also
rect-extent
Definition
USING:
accessors
kernel
;
IN:
math.rectangles
:
rect-bounds
( rect -- loc dim )
[
loc>>
]
[
dim>>
]
bi
;