Doc update
parent
4849636fd7
commit
6aff81052e
basis
math/geometry/rect
|
@ -47,3 +47,19 @@ HELP: <zero-rect>
|
|||
{ $values { "rect" "a new " { $link rect } } }
|
||||
{ $description "Creates a rectangle located at the origin with zero dimensions." } ;
|
||||
|
||||
ARTICLE: "math.geometry.rect" "Rectangles"
|
||||
"The " { $vocab-link "math.geometry.rect" } " vocabulary defines a rectangle data type and operations on them."
|
||||
{ $subsection rect }
|
||||
"Rectangles can be taken apart:"
|
||||
{ $subsection rect-loc }
|
||||
{ $subsection rect-dim }
|
||||
{ $subsection rect-bounds }
|
||||
{ $subsection rect-extent }
|
||||
"New rectangles can be created:"
|
||||
{ $subsection <zero-rect> }
|
||||
{ $subsection <rect> }
|
||||
{ $subsection <extent-rect> }
|
||||
"More utility words for working with rectangles:"
|
||||
{ $subsection offset-rect }
|
||||
{ $subsection rect-intersect }
|
||||
{ $subsection intersects? } ;
|
||||
|
|
|
@ -105,24 +105,7 @@ ARTICLE: "gadgets" "Pre-made UI gadgets"
|
|||
|
||||
ARTICLE: "ui-geometry" "Gadget geometry"
|
||||
"The " { $link gadget } " class inherits from the " { $link rect } " class, and thus all gadgets have a bounding box:"
|
||||
{ $subsection rect }
|
||||
"Rectangles can be taken apart:"
|
||||
{ $subsection rect-loc }
|
||||
{ $subsection rect-dim }
|
||||
{ $subsection rect-bounds }
|
||||
{ $subsection rect-extent }
|
||||
"New rectangles can be created:"
|
||||
{ $subsection <zero-rect> }
|
||||
{ $subsection <rect> }
|
||||
{ $subsection <extent-rect> }
|
||||
"More utility words for working with rectangles:"
|
||||
{ $subsection offset-rect }
|
||||
{ $subsection rect-intersect }
|
||||
{ $subsection intersects? }
|
||||
|
||||
! "A gadget's bounding box is always relative to its parent. "
|
||||
! { $subsection gadget-parent }
|
||||
|
||||
{ $subsection "math.geometry.rect" }
|
||||
"Word for converting from a child gadget's co-ordinate system to a parent's:"
|
||||
{ $subsection relative-loc }
|
||||
{ $subsection screen-loc }
|
||||
|
|
Loading…
Reference in New Issue