|
|
|
@ -3,18 +3,22 @@
|
|
|
|
|
(provide (all-defined-out))
|
|
|
|
|
|
|
|
|
|
(define-generics quad
|
|
|
|
|
(in quad)
|
|
|
|
|
(out quad)
|
|
|
|
|
(inner quad)
|
|
|
|
|
(start quad) ; called before draw (?)
|
|
|
|
|
(end quad) ; called after draw (?)
|
|
|
|
|
(break quad) ; called if quad is not clipping (?)
|
|
|
|
|
|
|
|
|
|
(in quad) ; returns inbound connection point
|
|
|
|
|
(out quad) ; returns outbound connection point
|
|
|
|
|
(inner quad) ; returns inner connection point
|
|
|
|
|
|
|
|
|
|
(printable? quad [signal])
|
|
|
|
|
(size quad)
|
|
|
|
|
(offset quad)
|
|
|
|
|
(printable? quad [signal]) ; returns whether quad is printable (under `signal`)
|
|
|
|
|
(size quad) ; returns outer size of quad (two dimensional)
|
|
|
|
|
(offset quad) ; returns top left adjustment of drawing (may or may not clip to quad boundary)
|
|
|
|
|
|
|
|
|
|
(origin quad)
|
|
|
|
|
(set-origin! quad where)
|
|
|
|
|
(origin quad) ; returns point where quad starts
|
|
|
|
|
(set-origin! quad where) ; changes point where quad starts
|
|
|
|
|
|
|
|
|
|
(draw quad [surface])
|
|
|
|
|
(draw quad [surface]) ; draws quad (imperatively)
|
|
|
|
|
|
|
|
|
|
(elems quad)
|
|
|
|
|
(attrs quad))
|
|
|
|
|
(elems quad) ; returns list of subquads
|
|
|
|
|
(attrs quad)) ; returns list of attributes
|