LispWorks CAPI Reference Manual > 2 GP Reference Entries

NextPrevUpTopContentsIndex

draw-rectangle

Function
Summary

Draws a rectangle.

Package

graphics-ports

Signature

draw-rectangle port x y width height &rest args &key filled

Arguments

port

A graphics port.

x

A real number.

y

A real number.

width

A real number.

height

A real number.

filled

A boolean.

args

General graphics port drawing arguments.

Description

The draw-rectangle function draws a rectangle whose corners are ( x y ), ( x+width y ), ( x+width y+height ) and ( x y+height ). The filled keyword, if non- nil , causes a filled rectangle to be drawn. While the exact results are host-specific, it is intended that a filled rectangle does not include the lines (x = x+width) and (y = y+height ) while a non-filled rectangle does. This function works correctly if the port 's transform includes rotation. The graphics state parameters transform, foreground, background, operation, thickness, scale-thickness, dashed, dash, line-joint-style and mask are used. Additionally on Unix only, stipple, pattern , mask-x, mask-y are used.

See also

draw-rectangles


LispWorks CAPI Reference Manual - 21 Dec 2009

NextPrevUpTopContentsIndex