Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
<rect> ( loc dim -- rect )
Factor documentation
>
Factor handbook
>
UI framework
>
Building user interfaces
>
Gadget geometry
>
Rectangles
Prev:
<zero-rect> ( -- rect )
Next:
<extent-rect> ( loc ext -- rect )
Vocabulary
math.rectangles
Inputs and outputs
loc
a pair of integers
dim
a pair of integers
rect
a new
rect
Word description
Creates a new rectangle with the specified top-left location and dimensions.
See also
<zero-rect>
,
<extent-rect>
Definition
USING:
kernel
;
IN:
math.rectangles
:
<rect>
( loc dim -- rect )
rect
boa
;
inline