Merge pull request #10 from phoe-trash/master
[vecto.git] / package.lisp
blob774305ccfd0ccacc6437530f13619bd1601f0933
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 #:zpng-object
45 ;; path construction
46 #:move-to
47 #:line-to
48 #:curve-to
49 #:quadratic-to
50 #:close-subpath
51 #:stroke-to-paths
52 #:arc
53 #:arcn
54 #:ellipse-arc
55 #:ellipse-arcn
56 ;; Clipping
57 #:end-path-no-op
58 #:clip-path
59 #:even-odd-clip-path
60 ;; path construction one-offs
61 #:rectangle
62 #:rounded-rectangle
63 #:centered-ellipse-path
64 #:centered-circle-path
65 #:+kappa+
66 ;; painting
67 #:fill-path
68 #:even-odd-fill
69 #:stroke
70 #:fill-and-stroke
71 #:even-odd-fill-and-stroke
72 ;; graphics state
73 #:with-graphics-state
74 #:set-line-cap
75 #:set-line-join
76 #:set-line-width
77 #:set-dash-pattern
78 #:set-rgba-stroke
79 #:set-rgb-stroke
80 #:set-rgba-fill
81 #:set-rgb-fill
82 #:set-gradient-fill
83 #:linear-domain
84 #:bilinear-domain
85 #:cartesian-coordinates
86 #:polar-coordinates
87 ;; generic functions for handling foreign images
88 #:compose
89 ;; graphics state coordinate transforms
90 #:translate
91 #:rotate
92 #:rotate-degrees
93 #:skew
94 #:scale
95 ;; text
96 #:*default-character-spacing*
97 #:get-font
98 #:set-font
99 #:set-character-spacing
100 #:draw-string
101 #:string-paths
102 #:draw-centered-string
103 #:centered-string-paths
104 #:string-bounding-box))