Next Previous Up Top Contents Index

2 GP Reference Entries

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

Thedraw-rectangle function draws a rectangle whose corners are (x y), (x+width y), (x+width y+height) and (x y+height). Thefilled 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 - 17 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker