All Manuals > CAPI User Guide and Reference Manual > 22 GRAPHICS-PORTS 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

graphics-state parameters passed as keyword arguments.

Description

The function draw-rectangle draws a rectangle whose corners are ( x y ), ( x+width y ), ( x+width y+height ) and ( x y+height ).

filled , 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 , mask, pattern, shape-mode and compositing-mode are used. Additionally on X11/Motif only, stipple is used.

See also

draw-rectangles
graphics-state
Drawing - Graphics Ports


CAPI User Guide and Reference Manual (Unix version) - 3 Aug 2017

NextPrevUpTopContentsIndex