Next Prev Up Top Contents Index

draw-rectangle

Function
Summary

Draws a rectangle.

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 , stipple, pattern , mask-x, mask-y, and mask are used.


LispWorks CAPI Reference Manual - 14 Dec 2001

Next Prev Up Top Contents Index