All Manuals > CAPI User Guide and Reference Manual > 22 GRAPHICS-PORTS Reference Entries

draw-rectangles Function

Summary

Draws several rectangles.

Package

graphics-ports

Signature

draw-rectangles port description &rest args &key filled

Arguments
port
A graphics port.
description
A description sequence.
args
graphics-state parameters passed as keyword arguments.
filled
A boolean.
Description

The function draw-rectangles draws several rectangles as specified by description. This is usually more efficient than making several calls to draw-rectangle. description is a repeating sequence of values of the form x y width height.

filled, if true, causes filled rectangles to be drawn. While the exact results are host-specific, it is intended that a filled rectangle does not include the lines where the x coordinate is x+width or the y coordinate is y+height while a non-filled rectangle does. This function works correctly if port's transform includes rotation.

The transform, foreground, background, operation, thickness, scale-thickness, dashed, dash, line-joint-style, mask, pattern, shape-mode and compositing-mode from port's graphics-state are all used, unless overridden in args. Additionally on X11/Motif only, stipple is used.

See also

draw-rectangle
graphics-state
13 Drawing - Graphics Ports


CAPI User Guide and Reference Manual (Windows version) - 01 Dec 2021 19:34:15