Next: Circles, Previous: Pins, Up: Core object functions [Contents][Index]
Boxes are rectangles specified by the coordinates of their top left and bottom right corners. They are purely graphical, and have no electrical meaning. They can be drawn in different colors, and with various stroke and fill settings.
See Object color. See Object fill and stroke.
Returns ‘#t’ if and only if object is a box object
.
Creates and returns a new box object
. top-left is the
position of the top left of the new box in the form (x . y)
,
and bottom-right is the position of the bottom right of the box.
If color is specified, it should be the integer color map index
of the color with which to draw the box. If color is not
specified, the default box color is used.
Sets the parameters of box. The arguments are the same as to
make-box
. Returns box.
Returns the parameters of box. The return value is a list in the form:
((top-left-x . top-left-y) (bottom-right-x . bottom-right-y) color)
Returns the position of the top left corner of box in the form
(x . y)
.
Returns the position of the bottom right corner of box in the
form (x . y)
.
Next: Circles, Previous: Pins, Up: Core object functions [Contents][Index]