Updated version to 1.5.
[vecto.git] / package.lisp
blobfc0a4f1ab586aef88b3d62203a41196f24953478
1 ;;; Copyright (c) 2007 Zachary Beane, All Rights Reserved
2 ;;;
3 ;;; Redistribution and use in source and binary forms, with or without
4 ;;; modification, are permitted provided that the following conditions
5 ;;; are met:
6 ;;;
7 ;;; * Redistributions of source code must retain the above copyright
8 ;;; notice, this list of conditions and the following disclaimer.
9 ;;;
10 ;;; * Redistributions in binary form must reproduce the above
11 ;;; copyright notice, this list of conditions and the following
12 ;;; disclaimer in the documentation and/or other materials
13 ;;; provided with the distribution.
14 ;;;
15 ;;; THIS SOFTWARE IS PROVIDED BY THE AUTHOR 'AS IS' AND ANY EXPRESSED
16 ;;; OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 ;;; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 ;;; ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
19 ;;; DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 ;;; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
21 ;;; GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22 ;;; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23 ;;; WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24 ;;; NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 ;;; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 ;;;
27 ;;; $Id: package.lisp,v 1.17 2007/10/01 14:13:11 xach Exp $
29 (cl:defpackage #:vecto
30 (:use #:cl)
31 (:import-from #:zpb-ttf
32 #:open-font-loader
33 #:xmin
34 #:xmax
35 #:ymin
36 #:ymax
37 #:bounding-box)
38 (:export
39 ;; canvas operations
40 #:with-canvas
41 #:clear-canvas
42 #:save-png
43 #:save-png-stream
44 ;; path construction
45 #:move-to
46 #:line-to
47 #:curve-to
48 #:quadratic-to
49 #:close-subpath
50 #:stroke-to-paths
51 #:arc
52 #:arcn
53 #:ellipse-arc
54 #:ellipse-arcn
55 ;; Clipping
56 #:end-path-no-op
57 #:clip-path
58 #:even-odd-clip-path
59 ;; path construction one-offs
60 #:rectangle
61 #:rounded-rectangle
62 #:centered-ellipse-path
63 #:centered-circle-path
64 #:+kappa+
65 ;; painting
66 #:fill-path
67 #:even-odd-fill
68 #:stroke
69 #:fill-and-stroke
70 #:even-odd-fill-and-stroke
71 ;; graphics state
72 #:with-graphics-state
73 #:set-line-cap
74 #:set-line-join
75 #:set-line-width
76 #:set-dash-pattern
77 #:set-rgba-stroke
78 #:set-rgb-stroke
79 #:set-rgba-fill
80 #:set-rgb-fill
81 #:set-gradient-fill
82 #:linear-domain
83 #:bilinear-domain
84 ;; graphics state coordinate transforms
85 #:translate
86 #:rotate
87 #:rotate-degrees
88 #:skew
89 #:scale
90 ;; text
91 #:*default-character-spacing*
92 #:get-font
93 #:set-font
94 #:set-character-spacing
95 #:draw-string
96 #:string-paths
97 #:draw-centered-string
98 #:centered-string-paths
99 #:string-bounding-box))