Common Lisp Interface Manager 2.0 User's Guide > Chapter 2 Drawing Graphics > 2.4 Graphics Protocols

NextPrevUpTopContentsIndex

2.4.3 Medium-Specific Drawing Functions

All mediums and all sheets that support the standard output protocol implement methods for the following generic functions.

medium-draw-point* [Generic Function]

Arguments: medium x y

Summary: Draws a point on the medium medium .

medium-draw-points* [Generic Function]

Arguments: medium coord-seq

Summary: Draws a set of points on the medium medium .

medium-draw-line* [Generic Function]

Arguments: medium x1 y1 x2 y2

Summary: Draws a line from ( x1, y1 ) to ( x2, y2 ) on the medium medium .

medium-draw-lines* [Generic Function]

Arguments: medium coord-seq

Summary: Draws a set of disconnected lines on the medium medium .

medium-draw-polygon* [Generic Function]

Arguments: medium coord-seq closed

Summary: Draws a polygon or polyline on the medium medium .

medium-draw-rectangle* [Generic Function]

Arguments: medium x1 y1 x2 y2

Summary: Draws a rectangle whose corners are at ( x1, y1 ) and ( x2, y2 ) on medium .

medium-draw-ellipse* [Generic Function]

Arguments: medium center-x center-y radius-1-dx radius-1-dy radius-2-dx radius-2-dy start-angle end-angle

Summary: Draws a rectangle on medium . The center is at ( x, y ). The vectors ( radius-1-dx , radius-1-dy ) and ( radius-2-dx , radius-2-dy ) specify the radii. start-angle and end-angle are real numbers that specify an arc, not a complete ellipse.

medium-draw-text* [Generic Function]

Arguments: medium text x y (start 0 ) end (align-x :left ) (align-y :baseline ) toward-x toward-y transform-glyphs

Summary: Draws a character or a string on the medium medium . The text is drawn starting at ( x, y ), and towards ( toward-x , toward-y ).


Common Lisp Interface Manager 2.0 User's Guide - 22 Dec 2009

NextPrevUpTopContentsIndex