/[cl-cairo2]/cl-cairo2-swig.lisp
ViewVC logotype

Contents of /cl-cairo2-swig.lisp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20 - (show annotations)
Wed May 28 01:34:00 2008 UTC (5 years, 10 months ago) by tpapp
File size: 37754 byte(s)
added image-surface-get-data and minor fixes by Johann Korndoerfer
1
2 (in-package :cl-cairo2)
3
4 ;; define our own alias for double float, so we can automatically
5 ;; convert other numerical types in the arguments
6 (define-foreign-type my-double-type ()
7 ()
8 (:actual-type :double)
9 (:simple-parser my-double))
10
11 (defmethod translate-to-foreign (value (type my-double-type))
12 (coerce value 'double-float))
13
14 ;; typedefs: we don't want to create all of them automatically,
15 ;; because typedefs for structures confuse with-foreign-slots
16 ;; the ones we don't want are commented out
17 (cffi:defctype cairo_bool_t :int)
18 (cffi:defctype cairo_t :pointer)
19 (cffi:defctype cairo_surface_t :pointer)
20 ;; (cffi:defctype cairo_matrix_t :pointer)
21 (cffi:defctype cairo_pattern_t :pointer)
22 (cffi:defctype cairo_destroy_func_t :pointer)
23 (cffi:defctype cairo_user_data_key_t :pointer)
24 (cffi:defctype cairo_write_func_t :pointer)
25 (cffi:defctype cairo_read_func_t :pointer)
26 ;; (cffi:defctype cairo_rectangle_t :pointer)
27 (cffi:defctype cairo_rectangle_list_t :pointer)
28 (cffi:defctype cairo_scaled_font_t :pointer)
29 (cffi:defctype cairo_font_face_t :pointer)
30 (cffi:defctype cairo_font_options_t :pointer)
31 (cffi:defctype cairo_path_data_t :pointer)
32 (cffi:defctype cairo_path_t :pointer)
33
34
35
36 ;;;SWIG wrapper code starts here
37
38 (cl:defmacro defanonenum (&body enums)
39 "Converts anonymous enums to defconstants."
40 `(cl:progn ,@(cl:loop for value in enums
41 for index = 0 then (cl:1+ index)
42 when (cl:listp value) do (cl:setf index (cl:second value)
43 value (cl:first value))
44 collect `(cl:defconstant ,value ,index))))
45
46 (cl:eval-when (:compile-toplevel :load-toplevel)
47 (cl:unless (cl:fboundp 'swig-lispify)
48 (cl:defun swig-lispify (name flag cl:&optional (package cl:*package*))
49 (cl:labels ((helper (lst last rest cl:&aux (c (cl:car lst)))
50 (cl:cond
51 ((cl:null lst)
52 rest)
53 ((cl:upper-case-p c)
54 (helper (cl:cdr lst) 'upper
55 (cl:case last
56 ((lower digit) (cl:list* c #\- rest))
57 (cl:t (cl:cons c rest)))))
58 ((cl:lower-case-p c)
59 (helper (cl:cdr lst) 'lower (cl:cons (cl:char-upcase c) rest)))
60 ((cl:digit-char-p c)
61 (helper (cl:cdr lst) 'digit
62 (cl:case last
63 ((upper lower) (cl:list* c #\- rest))
64 (cl:t (cl:cons c rest)))))
65 ((cl:char-equal c #\_)
66 (helper (cl:cdr lst) '_ (cl:cons #\- rest)))
67 (cl:t
68 (cl:error "Invalid character: ~A" c)))))
69 (cl:let ((fix (cl:case flag
70 ((constant enumvalue) "+")
71 (variable "*")
72 (cl:t ""))))
73 (cl:intern
74 (cl:concatenate
75 'cl:string
76 fix
77 (cl:nreverse (helper (cl:concatenate 'cl:list name) cl:nil cl:nil))
78 fix)
79 package))))))
80
81 ;;;SWIG wrapper code ends here
82
83
84 (cl:defconstant CAIRO_VERSION_MAJOR 1)
85
86 (cl:defconstant CAIRO_VERSION_MINOR 6)
87
88 (cl:defconstant CAIRO_VERSION_MICRO 4)
89
90 (cl:defconstant CAIRO_HAS_SVG_SURFACE 1)
91
92 (cl:defconstant CAIRO_HAS_PDF_SURFACE 1)
93
94 (cl:defconstant CAIRO_HAS_PS_SURFACE 1)
95
96 (cl:defconstant CAIRO_HAS_FT_FONT 1)
97
98 (cl:defconstant CAIRO_HAS_PNG_FUNCTIONS 1)
99
100 (cl:defconstant CAIRO_HAS_XLIB_XRENDER_SURFACE 1)
101
102 (cl:defconstant CAIRO_HAS_XLIB_SURFACE 1)
103
104 (cl:defconstant CAIRO_FORMAT_RGB16_565 4)
105
106 (cffi:defcfun ("cairo_version" cairo_version) :int)
107
108 (cffi:defcfun ("cairo_version_string" cairo_version_string) :string)
109
110 (cffi:defcstruct cairo_matrix_t
111 (xx my-double)
112 (yx my-double)
113 (xy my-double)
114 (yy my-double)
115 (x0 my-double)
116 (y0 my-double))
117
118 (cffi:defcstruct cairo_user_data_key_t
119 (unused :int))
120
121 (cffi:defcenum cairo_status_t
122 (:CAIRO_STATUS_SUCCESS 0)
123 :CAIRO_STATUS_NO_MEMORY
124 :CAIRO_STATUS_INVALID_RESTORE
125 :CAIRO_STATUS_INVALID_POP_GROUP
126 :CAIRO_STATUS_NO_CURRENT_POINT
127 :CAIRO_STATUS_INVALID_MATRIX
128 :CAIRO_STATUS_INVALID_STATUS
129 :CAIRO_STATUS_NULL_POINTER
130 :CAIRO_STATUS_INVALID_STRING
131 :CAIRO_STATUS_INVALID_PATH_DATA
132 :CAIRO_STATUS_READ_ERROR
133 :CAIRO_STATUS_WRITE_ERROR
134 :CAIRO_STATUS_SURFACE_FINISHED
135 :CAIRO_STATUS_SURFACE_TYPE_MISMATCH
136 :CAIRO_STATUS_PATTERN_TYPE_MISMATCH
137 :CAIRO_STATUS_INVALID_CONTENT
138 :CAIRO_STATUS_INVALID_FORMAT
139 :CAIRO_STATUS_INVALID_VISUAL
140 :CAIRO_STATUS_FILE_NOT_FOUND
141 :CAIRO_STATUS_INVALID_DASH
142 :CAIRO_STATUS_INVALID_DSC_COMMENT
143 :CAIRO_STATUS_INVALID_INDEX
144 :CAIRO_STATUS_CLIP_NOT_REPRESENTABLE
145 :CAIRO_STATUS_TEMP_FILE_ERROR
146 :CAIRO_STATUS_INVALID_STRIDE)
147
148 (cffi:defcenum cairo_content_t
149 (:CAIRO_CONTENT_COLOR #x1000)
150 (:CAIRO_CONTENT_ALPHA #x2000)
151 (:CAIRO_CONTENT_COLOR_ALPHA #x3000))
152
153 (cffi:defcfun ("cairo_create" cairo_create) :pointer
154 (target :pointer))
155
156 (cffi:defcfun ("cairo_reference" cairo_reference) :pointer
157 (cr :pointer))
158
159 (cffi:defcfun ("cairo_destroy" cairo_destroy) :void
160 (cr :pointer))
161
162 (cffi:defcfun ("cairo_get_reference_count" cairo_get_reference_count) :unsigned-int
163 (cr :pointer))
164
165 (cffi:defcfun ("cairo_get_user_data" cairo_get_user_data) :pointer
166 (cr :pointer)
167 (key :pointer))
168
169 (cffi:defcfun ("cairo_set_user_data" cairo_set_user_data) cairo_status_t
170 (cr :pointer)
171 (key :pointer)
172 (user_data :pointer)
173 (destroy :pointer))
174
175 (cffi:defcfun ("cairo_save" cairo_save) :void
176 (cr :pointer))
177
178 (cffi:defcfun ("cairo_restore" cairo_restore) :void
179 (cr :pointer))
180
181 (cffi:defcfun ("cairo_push_group" cairo_push_group) :void
182 (cr :pointer))
183
184 (cffi:defcfun ("cairo_push_group_with_content" cairo_push_group_with_content) :void
185 (cr :pointer)
186 (content cairo_content_t))
187
188 (cffi:defcfun ("cairo_pop_group" cairo_pop_group) :pointer
189 (cr :pointer))
190
191 (cffi:defcfun ("cairo_pop_group_to_source" cairo_pop_group_to_source) :void
192 (cr :pointer))
193
194 (cffi:defcenum cairo_operator_t
195 :CAIRO_OPERATOR_CLEAR
196 :CAIRO_OPERATOR_SOURCE
197 :CAIRO_OPERATOR_OVER
198 :CAIRO_OPERATOR_IN
199 :CAIRO_OPERATOR_OUT
200 :CAIRO_OPERATOR_ATOP
201 :CAIRO_OPERATOR_DEST
202 :CAIRO_OPERATOR_DEST_OVER
203 :CAIRO_OPERATOR_DEST_IN
204 :CAIRO_OPERATOR_DEST_OUT
205 :CAIRO_OPERATOR_DEST_ATOP
206 :CAIRO_OPERATOR_XOR
207 :CAIRO_OPERATOR_ADD
208 :CAIRO_OPERATOR_SATURATE)
209
210 (cffi:defcfun ("cairo_set_operator" cairo_set_operator) :void
211 (cr :pointer)
212 (op cairo_operator_t))
213
214 (cffi:defcfun ("cairo_set_source" cairo_set_source) :void
215 (cr :pointer)
216 (source :pointer))
217
218 (cffi:defcfun ("cairo_set_source_rgb" cairo_set_source_rgb) :void
219 (cr :pointer)
220 (red my-double)
221 (green my-double)
222 (blue my-double))
223
224 (cffi:defcfun ("cairo_set_source_rgba" cairo_set_source_rgba) :void
225 (cr :pointer)
226 (red my-double)
227 (green my-double)
228 (blue my-double)
229 (alpha my-double))
230
231 (cffi:defcfun ("cairo_set_source_surface" cairo_set_source_surface) :void
232 (cr :pointer)
233 (surface :pointer)
234 (x my-double)
235 (y my-double))
236
237 (cffi:defcfun ("cairo_set_tolerance" cairo_set_tolerance) :void
238 (cr :pointer)
239 (tolerance my-double))
240
241 (cffi:defcenum cairo_antialias_t
242 :CAIRO_ANTIALIAS_DEFAULT
243 :CAIRO_ANTIALIAS_NONE
244 :CAIRO_ANTIALIAS_GRAY
245 :CAIRO_ANTIALIAS_SUBPIXEL)
246
247 (cffi:defcfun ("cairo_set_antialias" cairo_set_antialias) :void
248 (cr :pointer)
249 (antialias cairo_antialias_t))
250
251 (cffi:defcenum cairo_fill_rule_t
252 :CAIRO_FILL_RULE_WINDING
253 :CAIRO_FILL_RULE_EVEN_ODD)
254
255 (cffi:defcfun ("cairo_set_fill_rule" cairo_set_fill_rule) :void
256 (cr :pointer)
257 (fill_rule cairo_fill_rule_t))
258
259 (cffi:defcfun ("cairo_set_line_width" cairo_set_line_width) :void
260 (cr :pointer)
261 (width my-double))
262
263 (cffi:defcenum cairo_line_cap_t
264 :CAIRO_LINE_CAP_BUTT
265 :CAIRO_LINE_CAP_ROUND
266 :CAIRO_LINE_CAP_SQUARE)
267
268 (cffi:defcfun ("cairo_set_line_cap" cairo_set_line_cap) :void
269 (cr :pointer)
270 (line_cap cairo_line_cap_t))
271
272 (cffi:defcenum cairo_line_join_t
273 :CAIRO_LINE_JOIN_MITER
274 :CAIRO_LINE_JOIN_ROUND
275 :CAIRO_LINE_JOIN_BEVEL)
276
277 (cffi:defcfun ("cairo_set_line_join" cairo_set_line_join) :void
278 (cr :pointer)
279 (line_join cairo_line_join_t))
280
281 (cffi:defcfun ("cairo_set_dash" cairo_set_dash) :void
282 (cr :pointer)
283 (dashes :pointer)
284 (num_dashes :int)
285 (offset my-double))
286
287 (cffi:defcfun ("cairo_set_miter_limit" cairo_set_miter_limit) :void
288 (cr :pointer)
289 (limit my-double))
290
291 (cffi:defcfun ("cairo_translate" cairo_translate) :void
292 (cr :pointer)
293 (tx my-double)
294 (ty my-double))
295
296 (cffi:defcfun ("cairo_scale" cairo_scale) :void
297 (cr :pointer)
298 (sx my-double)
299 (sy my-double))
300
301 (cffi:defcfun ("cairo_rotate" cairo_rotate) :void
302 (cr :pointer)
303 (angle my-double))
304
305 (cffi:defcfun ("cairo_transform" cairo_transform) :void
306 (cr :pointer)
307 (matrix :pointer))
308
309 (cffi:defcfun ("cairo_set_matrix" cairo_set_matrix) :void
310 (cr :pointer)
311 (matrix :pointer))
312
313 (cffi:defcfun ("cairo_identity_matrix" cairo_identity_matrix) :void
314 (cr :pointer))
315
316 (cffi:defcfun ("cairo_user_to_device" cairo_user_to_device) :void
317 (cr :pointer)
318 (x :pointer)
319 (y :pointer))
320
321 (cffi:defcfun ("cairo_user_to_device_distance" cairo_user_to_device_distance) :void
322 (cr :pointer)
323 (dx :pointer)
324 (dy :pointer))
325
326 (cffi:defcfun ("cairo_device_to_user" cairo_device_to_user) :void
327 (cr :pointer)
328 (x :pointer)
329 (y :pointer))
330
331 (cffi:defcfun ("cairo_device_to_user_distance" cairo_device_to_user_distance) :void
332 (cr :pointer)
333 (dx :pointer)
334 (dy :pointer))
335
336 (cffi:defcfun ("cairo_new_path" cairo_new_path) :void
337 (cr :pointer))
338
339 (cffi:defcfun ("cairo_move_to" cairo_move_to) :void
340 (cr :pointer)
341 (x my-double)
342 (y my-double))
343
344 (cffi:defcfun ("cairo_new_sub_path" cairo_new_sub_path) :void
345 (cr :pointer))
346
347 (cffi:defcfun ("cairo_line_to" cairo_line_to) :void
348 (cr :pointer)
349 (x my-double)
350 (y my-double))
351
352 (cffi:defcfun ("cairo_curve_to" cairo_curve_to) :void
353 (cr :pointer)
354 (x1 my-double)
355 (y1 my-double)
356 (x2 my-double)
357 (y2 my-double)
358 (x3 my-double)
359 (y3 my-double))
360
361 (cffi:defcfun ("cairo_arc" cairo_arc) :void
362 (cr :pointer)
363 (xc my-double)
364 (yc my-double)
365 (radius my-double)
366 (angle1 my-double)
367 (angle2 my-double))
368
369 (cffi:defcfun ("cairo_arc_negative" cairo_arc_negative) :void
370 (cr :pointer)
371 (xc my-double)
372 (yc my-double)
373 (radius my-double)
374 (angle1 my-double)
375 (angle2 my-double))
376
377 (cffi:defcfun ("cairo_rel_move_to" cairo_rel_move_to) :void
378 (cr :pointer)
379 (dx my-double)
380 (dy my-double))
381
382 (cffi:defcfun ("cairo_rel_line_to" cairo_rel_line_to) :void
383 (cr :pointer)
384 (dx my-double)
385 (dy my-double))
386
387 (cffi:defcfun ("cairo_rel_curve_to" cairo_rel_curve_to) :void
388 (cr :pointer)
389 (dx1 my-double)
390 (dy1 my-double)
391 (dx2 my-double)
392 (dy2 my-double)
393 (dx3 my-double)
394 (dy3 my-double))
395
396 (cffi:defcfun ("cairo_rectangle" cairo_rectangle) :void
397 (cr :pointer)
398 (x my-double)
399 (y my-double)
400 (width my-double)
401 (height my-double))
402
403 (cffi:defcfun ("cairo_close_path" cairo_close_path) :void
404 (cr :pointer))
405
406 (cffi:defcfun ("cairo_path_extents" cairo_path_extents) :void
407 (cr :pointer)
408 (x1 :pointer)
409 (y1 :pointer)
410 (x2 :pointer)
411 (y2 :pointer))
412
413 (cffi:defcfun ("cairo_paint" cairo_paint) :void
414 (cr :pointer))
415
416 (cffi:defcfun ("cairo_paint_with_alpha" cairo_paint_with_alpha) :void
417 (cr :pointer)
418 (alpha my-double))
419
420 (cffi:defcfun ("cairo_mask" cairo_mask) :void
421 (cr :pointer)
422 (pattern :pointer))
423
424 (cffi:defcfun ("cairo_mask_surface" cairo_mask_surface) :void
425 (cr :pointer)
426 (surface :pointer)
427 (surface_x my-double)
428 (surface_y my-double))
429
430 (cffi:defcfun ("cairo_stroke" cairo_stroke) :void
431 (cr :pointer))
432
433 (cffi:defcfun ("cairo_stroke_preserve" cairo_stroke_preserve) :void
434 (cr :pointer))
435
436 (cffi:defcfun ("cairo_fill" cairo_fill) :void
437 (cr :pointer))
438
439 (cffi:defcfun ("cairo_fill_preserve" cairo_fill_preserve) :void
440 (cr :pointer))
441
442 (cffi:defcfun ("cairo_copy_page" cairo_copy_page) :void
443 (cr :pointer))
444
445 (cffi:defcfun ("cairo_show_page" cairo_show_page) :void
446 (cr :pointer))
447
448 (cffi:defcfun ("cairo_in_stroke" cairo_in_stroke) :int
449 (cr :pointer)
450 (x my-double)
451 (y my-double))
452
453 (cffi:defcfun ("cairo_in_fill" cairo_in_fill) :int
454 (cr :pointer)
455 (x my-double)
456 (y my-double))
457
458 (cffi:defcfun ("cairo_stroke_extents" cairo_stroke_extents) :void
459 (cr :pointer)
460 (x1 :pointer)
461 (y1 :pointer)
462 (x2 :pointer)
463 (y2 :pointer))
464
465 (cffi:defcfun ("cairo_fill_extents" cairo_fill_extents) :void
466 (cr :pointer)
467 (x1 :pointer)
468 (y1 :pointer)
469 (x2 :pointer)
470 (y2 :pointer))
471
472 (cffi:defcfun ("cairo_reset_clip" cairo_reset_clip) :void
473 (cr :pointer))
474
475 (cffi:defcfun ("cairo_clip" cairo_clip) :void
476 (cr :pointer))
477
478 (cffi:defcfun ("cairo_clip_preserve" cairo_clip_preserve) :void
479 (cr :pointer))
480
481 (cffi:defcfun ("cairo_clip_extents" cairo_clip_extents) :void
482 (cr :pointer)
483 (x1 :pointer)
484 (y1 :pointer)
485 (x2 :pointer)
486 (y2 :pointer))
487
488 (cffi:defcstruct cairo_rectangle_t
489 (x my-double)
490 (y my-double)
491 (width my-double)
492 (height my-double))
493
494 (cffi:defcstruct cairo_rectangle_list_t
495 (status cairo_status_t)
496 (rectangles :pointer)
497 (num_rectangles :int))
498
499 (cffi:defcfun ("cairo_copy_clip_rectangle_list" cairo_copy_clip_rectangle_list) :pointer
500 (cr :pointer))
501
502 (cffi:defcfun ("cairo_rectangle_list_destroy" cairo_rectangle_list_destroy) :void
503 (rectangle_list :pointer))
504
505 (cffi:defcstruct cairo_glyph_t
506 (index :unsigned-long)
507 (x my-double)
508 (y my-double))
509
510 (cffi:defcstruct cairo_text_extents_t
511 (x_bearing my-double)
512 (y_bearing my-double)
513 (width my-double)
514 (height my-double)
515 (x_advance my-double)
516 (y_advance my-double))
517
518 (cffi:defcstruct cairo_font_extents_t
519 (ascent my-double)
520 (descent my-double)
521 (height my-double)
522 (max_x_advance my-double)
523 (max_y_advance my-double))
524
525 (cffi:defcenum cairo_font_slant_t
526 :CAIRO_FONT_SLANT_NORMAL
527 :CAIRO_FONT_SLANT_ITALIC
528 :CAIRO_FONT_SLANT_OBLIQUE)
529
530 (cffi:defcenum cairo_font_weight_t
531 :CAIRO_FONT_WEIGHT_NORMAL
532 :CAIRO_FONT_WEIGHT_BOLD)
533
534 (cffi:defcenum cairo_subpixel_order_t
535 :CAIRO_SUBPIXEL_ORDER_DEFAULT
536 :CAIRO_SUBPIXEL_ORDER_RGB
537 :CAIRO_SUBPIXEL_ORDER_BGR
538 :CAIRO_SUBPIXEL_ORDER_VRGB
539 :CAIRO_SUBPIXEL_ORDER_VBGR)
540
541 (cffi:defcenum cairo_hint_style_t
542 :CAIRO_HINT_STYLE_DEFAULT
543 :CAIRO_HINT_STYLE_NONE
544 :CAIRO_HINT_STYLE_SLIGHT
545 :CAIRO_HINT_STYLE_MEDIUM
546 :CAIRO_HINT_STYLE_FULL)
547
548 (cffi:defcenum cairo_hint_metrics_t
549 :CAIRO_HINT_METRICS_DEFAULT
550 :CAIRO_HINT_METRICS_OFF
551 :CAIRO_HINT_METRICS_ON)
552
553 (cffi:defcfun ("cairo_font_options_create" cairo_font_options_create) :pointer)
554
555 (cffi:defcfun ("cairo_font_options_copy" cairo_font_options_copy) :pointer
556 (original :pointer))
557
558 (cffi:defcfun ("cairo_font_options_destroy" cairo_font_options_destroy) :void
559 (options :pointer))
560
561 (cffi:defcfun ("cairo_font_options_status" cairo_font_options_status) cairo_status_t
562 (options :pointer))
563
564 (cffi:defcfun ("cairo_font_options_merge" cairo_font_options_merge) :void
565 (options :pointer)
566 (other :pointer))
567
568 (cffi:defcfun ("cairo_font_options_equal" cairo_font_options_equal) :int
569 (options :pointer)
570 (other :pointer))
571
572 (cffi:defcfun ("cairo_font_options_hash" cairo_font_options_hash) :unsigned-long
573 (options :pointer))
574
575 (cffi:defcfun ("cairo_font_options_set_antialias" cairo_font_options_set_antialias) :void
576 (options :pointer)
577 (antialias cairo_antialias_t))
578
579 (cffi:defcfun ("cairo_font_options_get_antialias" cairo_font_options_get_antialias) cairo_antialias_t
580 (options :pointer))
581
582 (cffi:defcfun ("cairo_font_options_set_subpixel_order" cairo_font_options_set_subpixel_order) :void
583 (options :pointer)
584 (subpixel_order cairo_subpixel_order_t))
585
586 (cffi:defcfun ("cairo_font_options_get_subpixel_order" cairo_font_options_get_subpixel_order) cairo_subpixel_order_t
587 (options :pointer))
588
589 (cffi:defcfun ("cairo_font_options_set_hint_style" cairo_font_options_set_hint_style) :void
590 (options :pointer)
591 (hint_style cairo_hint_style_t))
592
593 (cffi:defcfun ("cairo_font_options_get_hint_style" cairo_font_options_get_hint_style) cairo_hint_style_t
594 (options :pointer))
595
596 (cffi:defcfun ("cairo_font_options_set_hint_metrics" cairo_font_options_set_hint_metrics) :void
597 (options :pointer)
598 (hint_metrics cairo_hint_metrics_t))
599
600 (cffi:defcfun ("cairo_font_options_get_hint_metrics" cairo_font_options_get_hint_metrics) cairo_hint_metrics_t
601 (options :pointer))
602
603 (cffi:defcfun ("cairo_select_font_face" cairo_select_font_face) :void
604 (cr :pointer)
605 (family :string)
606 (slant cairo_font_slant_t)
607 (weight cairo_font_weight_t))
608
609 (cffi:defcfun ("cairo_set_font_size" cairo_set_font_size) :void
610 (cr :pointer)
611 (size my-double))
612
613 (cffi:defcfun ("cairo_set_font_matrix" cairo_set_font_matrix) :void
614 (cr :pointer)
615 (matrix :pointer))
616
617 (cffi:defcfun ("cairo_get_font_matrix" cairo_get_font_matrix) :void
618 (cr :pointer)
619 (matrix :pointer))
620
621 (cffi:defcfun ("cairo_set_font_options" cairo_set_font_options) :void
622 (cr :pointer)
623 (options :pointer))
624
625 (cffi:defcfun ("cairo_get_font_options" cairo_get_font_options) :void
626 (cr :pointer)
627 (options :pointer))
628
629 (cffi:defcfun ("cairo_set_font_face" cairo_set_font_face) :void
630 (cr :pointer)
631 (font_face :pointer))
632
633 (cffi:defcfun ("cairo_get_font_face" cairo_get_font_face) :pointer
634 (cr :pointer))
635
636 (cffi:defcfun ("cairo_set_scaled_font" cairo_set_scaled_font) :void
637 (cr :pointer)
638 (scaled_font :pointer))
639
640 (cffi:defcfun ("cairo_get_scaled_font" cairo_get_scaled_font) :pointer
641 (cr :pointer))
642
643 (cffi:defcfun ("cairo_show_text" cairo_show_text) :void
644 (cr :pointer)
645 (utf8 :string))
646
647 (cffi:defcfun ("cairo_show_glyphs" cairo_show_glyphs) :void
648 (cr :pointer)
649 (glyphs :pointer)
650 (num_glyphs :int))
651
652 (cffi:defcfun ("cairo_text_path" cairo_text_path) :void
653 (cr :pointer)
654 (utf8 :string))
655
656 (cffi:defcfun ("cairo_glyph_path" cairo_glyph_path) :void
657 (cr :pointer)
658 (glyphs :pointer)
659 (num_glyphs :int))
660
661 (cffi:defcfun ("cairo_text_extents" cairo_text_extents) :void
662 (cr :pointer)
663 (utf8 :string)
664 (extents :pointer))
665
666 (cffi:defcfun ("cairo_glyph_extents" cairo_glyph_extents) :void
667 (cr :pointer)
668 (glyphs :pointer)
669 (num_glyphs :int)
670 (extents :pointer))
671
672 (cffi:defcfun ("cairo_font_extents" cairo_font_extents) :void
673 (cr :pointer)
674 (extents :pointer))
675
676 (cffi:defcfun ("cairo_font_face_reference" cairo_font_face_reference) :pointer
677 (font_face :pointer))
678
679 (cffi:defcfun ("cairo_font_face_destroy" cairo_font_face_destroy) :void
680 (font_face :pointer))
681
682 (cffi:defcfun ("cairo_font_face_get_reference_count" cairo_font_face_get_reference_count) :unsigned-int
683 (font_face :pointer))
684
685 (cffi:defcfun ("cairo_font_face_status" cairo_font_face_status) cairo_status_t
686 (font_face :pointer))
687
688 (cffi:defcenum cairo_font_type_t
689 :CAIRO_FONT_TYPE_TOY
690 :CAIRO_FONT_TYPE_FT
691 :CAIRO_FONT_TYPE_WIN32
692 :CAIRO_FONT_TYPE_QUARTZ)
693
694 (cffi:defcfun ("cairo_font_face_get_type" cairo_font_face_get_type) cairo_font_type_t
695 (font_face :pointer))
696
697 (cffi:defcfun ("cairo_font_face_get_user_data" cairo_font_face_get_user_data) :pointer
698 (font_face :pointer)
699 (key :pointer))
700
701 (cffi:defcfun ("cairo_font_face_set_user_data" cairo_font_face_set_user_data) cairo_status_t
702 (font_face :pointer)
703 (key :pointer)
704 (user_data :pointer)
705 (destroy :pointer))
706
707 (cffi:defcfun ("cairo_scaled_font_create" cairo_scaled_font_create) :pointer
708 (font_face :pointer)
709 (font_matrix :pointer)
710 (ctm :pointer)
711 (options :pointer))
712
713 (cffi:defcfun ("cairo_scaled_font_reference" cairo_scaled_font_reference) :pointer
714 (scaled_font :pointer))
715
716 (cffi:defcfun ("cairo_scaled_font_destroy" cairo_scaled_font_destroy) :void
717 (scaled_font :pointer))
718
719 (cffi:defcfun ("cairo_scaled_font_get_reference_count" cairo_scaled_font_get_reference_count) :unsigned-int
720 (scaled_font :pointer))
721
722 (cffi:defcfun ("cairo_scaled_font_status" cairo_scaled_font_status) cairo_status_t
723 (scaled_font :pointer))
724
725 (cffi:defcfun ("cairo_scaled_font_get_type" cairo_scaled_font_get_type) cairo_font_type_t
726 (scaled_font :pointer))
727
728 (cffi:defcfun ("cairo_scaled_font_get_user_data" cairo_scaled_font_get_user_data) :pointer
729 (scaled_font :pointer)
730 (key :pointer))
731
732 (cffi:defcfun ("cairo_scaled_font_set_user_data" cairo_scaled_font_set_user_data) cairo_status_t
733 (scaled_font :pointer)
734 (key :pointer)
735 (user_data :pointer)
736 (destroy :pointer))
737
738 (cffi:defcfun ("cairo_scaled_font_extents" cairo_scaled_font_extents) :void
739 (scaled_font :pointer)
740 (extents :pointer))
741
742 (cffi:defcfun ("cairo_scaled_font_text_extents" cairo_scaled_font_text_extents) :void
743 (scaled_font :pointer)
744 (utf8 :string)
745 (extents :pointer))
746
747 (cffi:defcfun ("cairo_scaled_font_glyph_extents" cairo_scaled_font_glyph_extents) :void
748 (scaled_font :pointer)
749 (glyphs :pointer)
750 (num_glyphs :int)
751 (extents :pointer))
752
753 (cffi:defcfun ("cairo_scaled_font_get_font_face" cairo_scaled_font_get_font_face) :pointer
754 (scaled_font :pointer))
755
756 (cffi:defcfun ("cairo_scaled_font_get_font_matrix" cairo_scaled_font_get_font_matrix) :void
757 (scaled_font :pointer)
758 (font_matrix :pointer))
759
760 (cffi:defcfun ("cairo_scaled_font_get_ctm" cairo_scaled_font_get_ctm) :void
761 (scaled_font :pointer)
762 (ctm :pointer))
763
764 (cffi:defcfun ("cairo_scaled_font_get_font_options" cairo_scaled_font_get_font_options) :void
765 (scaled_font :pointer)
766 (options :pointer))
767
768 (cffi:defcfun ("cairo_get_operator" cairo_get_operator) cairo_operator_t
769 (cr :pointer))
770
771 (cffi:defcfun ("cairo_get_source" cairo_get_source) :pointer
772 (cr :pointer))
773
774 (cffi:defcfun ("cairo_get_tolerance" cairo_get_tolerance) :double
775 (cr :pointer))
776
777 (cffi:defcfun ("cairo_get_antialias" cairo_get_antialias) cairo_antialias_t
778 (cr :pointer))
779
780 (cffi:defcfun ("cairo_has_current_point" cairo_has_current_point) :int
781 (cr :pointer))
782
783 (cffi:defcfun ("cairo_get_current_point" cairo_get_current_point) :void
784 (cr :pointer)
785 (x :pointer)
786 (y :pointer))
787
788 (cffi:defcfun ("cairo_get_fill_rule" cairo_get_fill_rule) cairo_fill_rule_t
789 (cr :pointer))
790
791 (cffi:defcfun ("cairo_get_line_width" cairo_get_line_width) :double
792 (cr :pointer))
793
794 (cffi:defcfun ("cairo_get_line_cap" cairo_get_line_cap) cairo_line_cap_t
795 (cr :pointer))
796
797 (cffi:defcfun ("cairo_get_line_join" cairo_get_line_join) cairo_line_join_t
798 (cr :pointer))
799
800 (cffi:defcfun ("cairo_get_miter_limit" cairo_get_miter_limit) :double
801 (cr :pointer))
802
803 (cffi:defcfun ("cairo_get_dash_count" cairo_get_dash_count) :int
804 (cr :pointer))
805
806 (cffi:defcfun ("cairo_get_dash" cairo_get_dash) :void
807 (cr :pointer)
808 (dashes :pointer)
809 (offset :pointer))
810
811 (cffi:defcfun ("cairo_get_matrix" cairo_get_matrix) :void
812 (cr :pointer)
813 (matrix :pointer))
814
815 (cffi:defcfun ("cairo_get_target" cairo_get_target) :pointer
816 (cr :pointer))
817
818 (cffi:defcfun ("cairo_get_group_target" cairo_get_group_target) :pointer
819 (cr :pointer))
820
821 (cffi:defcenum cairo_path_data_type_t
822 :CAIRO_PATH_MOVE_TO
823 :CAIRO_PATH_LINE_TO
824 :CAIRO_PATH_CURVE_TO
825 :CAIRO_PATH_CLOSE_PATH)
826
827 (cffi:defcunion _cairo_path_data_t
828 (point :pointer)
829 (header :pointer))
830
831 (cffi:defcstruct _cairo_path_data_t_point
832 (x my-double)
833 (y my-double))
834
835 (cffi:defcstruct _cairo_path_data_t_header
836 (type cairo_path_data_type_t)
837 (length :int))
838
839 (cffi:defcstruct cairo_path_t
840 (status cairo_status_t)
841 (data :pointer)
842 (num_data :int))
843
844 (cffi:defcfun ("cairo_copy_path" cairo_copy_path) :pointer
845 (cr :pointer))
846
847 (cffi:defcfun ("cairo_copy_path_flat" cairo_copy_path_flat) :pointer
848 (cr :pointer))
849
850 (cffi:defcfun ("cairo_append_path" cairo_append_path) :void
851 (cr :pointer)
852 (path :pointer))
853
854 (cffi:defcfun ("cairo_path_destroy" cairo_path_destroy) :void
855 (path :pointer))
856
857 (cffi:defcfun ("cairo_status" cairo_status) cairo_status_t
858 (cr :pointer))
859
860 (cffi:defcfun ("cairo_status_to_string" cairo_status_to_string) :string
861 (status cairo_status_t))
862
863 (cffi:defcfun ("cairo_surface_create_similar" cairo_surface_create_similar) :pointer
864 (other :pointer)
865 (content cairo_content_t)
866 (width :int)
867 (height :int))
868
869 (cffi:defcfun ("cairo_surface_reference" cairo_surface_reference) :pointer
870 (surface :pointer))
871
872 (cffi:defcfun ("cairo_surface_finish" cairo_surface_finish) :void
873 (surface :pointer))
874
875 (cffi:defcfun ("cairo_surface_destroy" cairo_surface_destroy) :void
876 (surface :pointer))
877
878 (cffi:defcfun ("cairo_surface_get_reference_count" cairo_surface_get_reference_count) :unsigned-int
879 (surface :pointer))
880
881 (cffi:defcfun ("cairo_surface_status" cairo_surface_status) cairo_status_t
882 (surface :pointer))
883
884 (cffi:defcenum cairo_surface_type_t
885 :CAIRO_SURFACE_TYPE_IMAGE
886 :CAIRO_SURFACE_TYPE_PDF
887 :CAIRO_SURFACE_TYPE_PS
888 :CAIRO_SURFACE_TYPE_XLIB
889 :CAIRO_SURFACE_TYPE_XCB
890 :CAIRO_SURFACE_TYPE_GLITZ
891 :CAIRO_SURFACE_TYPE_QUARTZ
892 :CAIRO_SURFACE_TYPE_WIN32
893 :CAIRO_SURFACE_TYPE_BEOS
894 :CAIRO_SURFACE_TYPE_DIRECTFB
895 :CAIRO_SURFACE_TYPE_SVG
896 :CAIRO_SURFACE_TYPE_OS2
897 :CAIRO_SURFACE_TYPE_WIN32_PRINTING
898 :CAIRO_SURFACE_TYPE_QUARTZ_IMAGE)
899
900 (cffi:defcfun ("cairo_surface_get_type" cairo_surface_get_type) cairo_surface_type_t
901 (surface :pointer))
902
903 (cffi:defcfun ("cairo_surface_get_content" cairo_surface_get_content) cairo_content_t
904 (surface :pointer))
905
906 (cffi:defcfun ("cairo_surface_write_to_png" cairo_surface_write_to_png) cairo_status_t
907 (surface :pointer)
908 (filename :string))
909
910 (cffi:defcfun ("cairo_surface_write_to_png_stream" cairo_surface_write_to_png_stream) cairo_status_t
911 (surface :pointer)
912 (write_func :pointer)
913 (closure :pointer))
914
915 (cffi:defcfun ("cairo_surface_get_user_data" cairo_surface_get_user_data) :pointer
916 (surface :pointer)
917 (key :pointer))
918
919 (cffi:defcfun ("cairo_surface_set_user_data" cairo_surface_set_user_data) cairo_status_t
920 (surface :pointer)
921 (key :pointer)
922 (user_data :pointer)
923 (destroy :pointer))
924
925 (cffi:defcfun ("cairo_surface_get_font_options" cairo_surface_get_font_options) :void
926 (surface :pointer)
927 (options :pointer))
928
929 (cffi:defcfun ("cairo_surface_flush" cairo_surface_flush) :void
930 (surface :pointer))
931
932 (cffi:defcfun ("cairo_surface_mark_dirty" cairo_surface_mark_dirty) :void
933 (surface :pointer))
934
935 (cffi:defcfun ("cairo_surface_mark_dirty_rectangle" cairo_surface_mark_dirty_rectangle) :void
936 (surface :pointer)
937 (x :int)
938 (y :int)
939 (width :int)
940 (height :int))
941
942 (cffi:defcfun ("cairo_surface_set_device_offset" cairo_surface_set_device_offset) :void
943 (surface :pointer)
944 (x_offset my-double)
945 (y_offset my-double))
946
947 (cffi:defcfun ("cairo_surface_get_device_offset" cairo_surface_get_device_offset) :void
948 (surface :pointer)
949 (x_offset :pointer)
950 (y_offset :pointer))
951
952 (cffi:defcfun ("cairo_surface_set_fallback_resolution" cairo_surface_set_fallback_resolution) :void
953 (surface :pointer)
954 (x_pixels_per_inch my-double)
955 (y_pixels_per_inch my-double))
956
957 (cffi:defcfun ("cairo_surface_copy_page" cairo_surface_copy_page) :void
958 (surface :pointer))
959
960 (cffi:defcfun ("cairo_surface_show_page" cairo_surface_show_page) :void
961 (surface :pointer))
962
963 (cffi:defcenum cairo_format_t
964 :CAIRO_FORMAT_ARGB32
965 :CAIRO_FORMAT_RGB24
966 :CAIRO_FORMAT_A8
967 :CAIRO_FORMAT_A1)
968
969 (cffi:defcfun ("cairo_image_surface_create" cairo_image_surface_create) :pointer
970 (format cairo_format_t)
971 (width :int)
972 (height :int))
973
974 (cffi:defcfun ("cairo_format_stride_for_width" cairo_format_stride_for_width) :int
975 (format cairo_format_t)
976 (width :int))
977
978 (cffi:defcfun ("cairo_image_surface_create_for_data" cairo_image_surface_create_for_data) :pointer
979 (data :pointer)
980 (format cairo_format_t)
981 (width :int)
982 (height :int)
983 (stride :int))
984
985 (cffi:defcfun ("cairo_image_surface_get_data" cairo_image_surface_get_data) :pointer
986 (surface :pointer))
987
988 (cffi:defcfun ("cairo_image_surface_get_format" cairo_image_surface_get_format) cairo_format_t
989 (surface :pointer))
990
991 (cffi:defcfun ("cairo_image_surface_get_width" cairo_image_surface_get_width) :int
992 (surface :pointer))
993
994 (cffi:defcfun ("cairo_image_surface_get_height" cairo_image_surface_get_height) :int
995 (surface :pointer))
996
997 (cffi:defcfun ("cairo_image_surface_get_stride" cairo_image_surface_get_stride) :int
998 (surface :pointer))
999
1000 (cffi:defcfun ("cairo_image_surface_create_from_png" cairo_image_surface_create_from_png) :pointer
1001 (filename :string))
1002
1003 (cffi:defcfun ("cairo_image_surface_create_from_png_stream" cairo_image_surface_create_from_png_stream) :pointer
1004 (read_func :pointer)
1005 (closure :pointer))
1006
1007 (cffi:defcfun ("cairo_pattern_create_rgb" cairo_pattern_create_rgb) :pointer
1008 (red my-double)
1009 (green my-double)
1010 (blue my-double))
1011
1012 (cffi:defcfun ("cairo_pattern_create_rgba" cairo_pattern_create_rgba) :pointer
1013 (red my-double)
1014 (green my-double)
1015 (blue my-double)
1016 (alpha my-double))
1017
1018 (cffi:defcfun ("cairo_pattern_create_for_surface" cairo_pattern_create_for_surface) :pointer
1019 (surface :pointer))
1020
1021 (cffi:defcfun ("cairo_pattern_create_linear" cairo_pattern_create_linear) :pointer
1022 (x0 my-double)
1023 (y0 my-double)
1024 (x1 my-double)
1025 (y1 my-double))
1026
1027 (cffi:defcfun ("cairo_pattern_create_radial" cairo_pattern_create_radial) :pointer
1028 (cx0 my-double)
1029 (cy0 my-double)
1030 (radius0 my-double)
1031 (cx1 my-double)
1032 (cy1 my-double)
1033 (radius1 my-double))
1034
1035 (cffi:defcfun ("cairo_pattern_reference" cairo_pattern_reference) :pointer
1036 (pattern :pointer))
1037
1038 (cffi:defcfun ("cairo_pattern_destroy" cairo_pattern_destroy) :void
1039 (pattern :pointer))
1040
1041 (cffi:defcfun ("cairo_pattern_get_reference_count" cairo_pattern_get_reference_count) :unsigned-int
1042 (pattern :pointer))
1043
1044 (cffi:defcfun ("cairo_pattern_status" cairo_pattern_status) cairo_status_t
1045 (pattern :pointer))
1046
1047 (cffi:defcfun ("cairo_pattern_get_user_data" cairo_pattern_get_user_data) :pointer
1048 (pattern :pointer)
1049 (key :pointer))
1050
1051 (cffi:defcfun ("cairo_pattern_set_user_data" cairo_pattern_set_user_data) cairo_status_t
1052 (pattern :pointer)
1053 (key :pointer)
1054 (user_data :pointer)
1055 (destroy :pointer))
1056
1057 (cffi:defcenum cairo_pattern_type_t
1058 :CAIRO_PATTERN_TYPE_SOLID
1059 :CAIRO_PATTERN_TYPE_SURFACE
1060 :CAIRO_PATTERN_TYPE_LINEAR
1061 :CAIRO_PATTERN_TYPE_RADIAL)
1062
1063 (cffi:defcfun ("cairo_pattern_get_type" cairo_pattern_get_type) cairo_pattern_type_t
1064 (pattern :pointer))
1065
1066 (cffi:defcfun ("cairo_pattern_add_color_stop_rgb" cairo_pattern_add_color_stop_rgb) :void
1067 (pattern :pointer)
1068 (offset my-double)
1069 (red my-double)
1070 (green my-double)
1071 (blue my-double))
1072
1073 (cffi:defcfun ("cairo_pattern_add_color_stop_rgba" cairo_pattern_add_color_stop_rgba) :void
1074 (pattern :pointer)
1075 (offset my-double)
1076 (red my-double)
1077 (green my-double)
1078 (blue my-double)
1079 (alpha my-double))
1080
1081 (cffi:defcfun ("cairo_pattern_set_matrix" cairo_pattern_set_matrix) :void
1082 (pattern :pointer)
1083 (matrix :pointer))
1084
1085 (cffi:defcfun ("cairo_pattern_get_matrix" cairo_pattern_get_matrix) :void
1086 (pattern :pointer)
1087 (matrix :pointer))
1088
1089 (cffi:defcenum cairo_extend_t
1090 :CAIRO_EXTEND_NONE
1091 :CAIRO_EXTEND_REPEAT
1092 :CAIRO_EXTEND_REFLECT
1093 :CAIRO_EXTEND_PAD)
1094
1095 (cffi:defcfun ("cairo_pattern_set_extend" cairo_pattern_set_extend) :void
1096 (pattern :pointer)
1097 (extend cairo_extend_t))
1098
1099 (cffi:defcfun ("cairo_pattern_get_extend" cairo_pattern_get_extend) cairo_extend_t
1100 (pattern :pointer))
1101
1102 (cffi:defcenum cairo_filter_t
1103 :CAIRO_FILTER_FAST
1104 :CAIRO_FILTER_GOOD
1105 :CAIRO_FILTER_BEST
1106 :CAIRO_FILTER_NEAREST
1107 :CAIRO_FILTER_BILINEAR
1108 :CAIRO_FILTER_GAUSSIAN)
1109
1110 (cffi:defcfun ("cairo_pattern_set_filter" cairo_pattern_set_filter) :void
1111 (pattern :pointer)
1112 (filter cairo_filter_t))
1113
1114 (cffi:defcfun ("cairo_pattern_get_filter" cairo_pattern_get_filter) cairo_filter_t
1115 (pattern :pointer))
1116
1117 (cffi:defcfun ("cairo_pattern_get_rgba" cairo_pattern_get_rgba) cairo_status_t
1118 (pattern :pointer)
1119 (red :pointer)
1120 (green :pointer)
1121 (blue :pointer)
1122 (alpha :pointer))
1123
1124 (cffi:defcfun ("cairo_pattern_get_surface" cairo_pattern_get_surface) cairo_status_t
1125 (pattern :pointer)
1126 (surface :pointer))
1127
1128 (cffi:defcfun ("cairo_pattern_get_color_stop_rgba" cairo_pattern_get_color_stop_rgba) cairo_status_t
1129 (pattern :pointer)
1130 (index :int)
1131 (offset :pointer)
1132 (red :pointer)
1133 (green :pointer)
1134 (blue :pointer)
1135 (alpha :pointer))
1136
1137 (cffi:defcfun ("cairo_pattern_get_color_stop_count" cairo_pattern_get_color_stop_count) cairo_status_t
1138 (pattern :pointer)
1139 (count :pointer))
1140
1141 (cffi:defcfun ("cairo_pattern_get_linear_points" cairo_pattern_get_linear_points) cairo_status_t
1142 (pattern :pointer)
1143 (x0 :pointer)
1144 (y0 :pointer)
1145 (x1 :pointer)
1146 (y1 :pointer))
1147
1148 (cffi:defcfun ("cairo_pattern_get_radial_circles" cairo_pattern_get_radial_circles) cairo_status_t
1149 (pattern :pointer)
1150 (x0 :pointer)
1151 (y0 :pointer)
1152 (r0 :pointer)
1153 (x1 :pointer)
1154 (y1 :pointer)
1155 (r1 :pointer))
1156
1157 (cffi:defcfun ("cairo_matrix_init" cairo_matrix_init) :void
1158 (matrix :pointer)
1159 (xx my-double)
1160 (yx my-double)
1161 (xy my-double)
1162 (yy my-double)
1163 (x0 my-double)
1164 (y0 my-double))
1165
1166 (cffi:defcfun ("cairo_matrix_init_identity" cairo_matrix_init_identity) :void
1167 (matrix :pointer))
1168
1169 (cffi:defcfun ("cairo_matrix_init_translate" cairo_matrix_init_translate) :void
1170 (matrix :pointer)
1171 (tx my-double)
1172 (ty my-double))
1173
1174 (cffi:defcfun ("cairo_matrix_init_scale" cairo_matrix_init_scale) :void
1175 (matrix :pointer)
1176 (sx my-double)
1177 (sy my-double))
1178
1179 (cffi:defcfun ("cairo_matrix_init_rotate" cairo_matrix_init_rotate) :void
1180 (matrix :pointer)
1181 (radians my-double))
1182
1183 (cffi:defcfun ("cairo_matrix_translate" cairo_matrix_translate) :void
1184 (matrix :pointer)
1185 (tx my-double)
1186 (ty my-double))
1187
1188 (cffi:defcfun ("cairo_matrix_scale" cairo_matrix_scale) :void
1189 (matrix :pointer)
1190 (sx my-double)
1191 (sy my-double))
1192
1193 (cffi:defcfun ("cairo_matrix_rotate" cairo_matrix_rotate) :void
1194 (matrix :pointer)
1195 (radians my-double))
1196
1197 (cffi:defcfun ("cairo_matrix_invert" cairo_matrix_invert) cairo_status_t
1198 (matrix :pointer))
1199
1200 (cffi:defcfun ("cairo_matrix_multiply" cairo_matrix_multiply) :void
1201 (result :pointer)
1202 (a :pointer)
1203 (b :pointer))
1204
1205 (cffi:defcfun ("cairo_matrix_transform_distance" cairo_matrix_transform_distance) :void
1206 (matrix :pointer)
1207 (dx :pointer)
1208 (dy :pointer))
1209
1210 (cffi:defcfun ("cairo_matrix_transform_point" cairo_matrix_transform_point) :void
1211 (matrix :pointer)
1212 (x :pointer)
1213 (y :pointer))
1214
1215 (cffi:defcfun ("cairo_debug_reset_static_data" cairo_debug_reset_static_data) :void)
1216
1217 (cffi:defcfun ("cairo_ft_font_face_create_for_pattern" cairo_ft_font_face_create_for_pattern) :pointer
1218 (pattern :pointer))
1219
1220 (cffi:defcfun ("cairo_ft_font_options_substitute" cairo_ft_font_options_substitute) :void
1221 (options :pointer)
1222 (pattern :pointer))
1223
1224 (cffi:defcfun ("cairo_ft_font_face_create_for_ft_face" cairo_ft_font_face_create_for_ft_face) :pointer
1225 (face :pointer)
1226 (load_flags :int))
1227
1228 (cffi:defcfun ("cairo_ft_scaled_font_lock_face" cairo_ft_scaled_font_lock_face) :pointer
1229 (scaled_font :pointer))
1230
1231 (cffi:defcfun ("cairo_ft_scaled_font_unlock_face" cairo_ft_scaled_font_unlock_face) :void
1232 (scaled_font :pointer))
1233
1234 (cffi:defcenum cairo_ps_level_t
1235 :CAIRO_PS_LEVEL_2
1236 :CAIRO_PS_LEVEL_3)
1237
1238 (cffi:defcfun ("cairo_ps_surface_create" cairo_ps_surface_create) :pointer
1239 (filename :string)
1240 (width_in_points my-double)
1241 (height_in_points my-double))
1242
1243 (cffi:defcfun ("cairo_ps_surface_create_for_stream" cairo_ps_surface_create_for_stream) :pointer
1244 (write_func :pointer)
1245 (closure :pointer)
1246 (width_in_points my-double)
1247 (height_in_points my-double))
1248
1249 (cffi:defcfun ("cairo_ps_surface_restrict_to_level" cairo_ps_surface_restrict_to_level) :void
1250 (surface :pointer)
1251 (level cairo_ps_level_t))
1252
1253 (cffi:defcfun ("cairo_ps_get_levels" cairo_ps_get_levels) :void
1254 (levels :pointer)
1255 (num_levels :pointer))
1256
1257 (cffi:defcfun ("cairo_ps_level_to_string" cairo_ps_level_to_string) :string
1258 (level cairo_ps_level_t))
1259
1260 (cffi:defcfun ("cairo_ps_surface_set_eps" cairo_ps_surface_set_eps) :void
1261 (surface :pointer)
1262 (eps :int))
1263
1264 (cffi:defcfun ("cairo_ps_surface_get_eps" cairo_ps_surface_get_eps) :int
1265 (surface :pointer))
1266
1267 (cffi:defcfun ("cairo_ps_surface_set_size" cairo_ps_surface_set_size) :void
1268 (surface :pointer)
1269 (width_in_points my-double)
1270 (height_in_points my-double))
1271
1272 (cffi:defcfun ("cairo_ps_surface_dsc_comment" cairo_ps_surface_dsc_comment) :void
1273 (surface :pointer)
1274 (comment :string))
1275
1276 (cffi:defcfun ("cairo_ps_surface_dsc_begin_setup" cairo_ps_surface_dsc_begin_setup) :void
1277 (surface :pointer))
1278
1279 (cffi:defcfun ("cairo_ps_surface_dsc_begin_page_setup" cairo_ps_surface_dsc_begin_page_setup) :void
1280 (surface :pointer))
1281
1282 (cffi:defcfun ("cairo_xlib_surface_create_with_xrender_format" cairo_xlib_surface_create_with_xrender_format) :pointer
1283 (dpy :pointer)
1284 (drawable :pointer)
1285 (screen :pointer)
1286 (format :pointer)
1287 (width :int)
1288 (height :int))
1289
1290 (cffi:defcfun ("cairo_xlib_surface_get_xrender_format" cairo_xlib_surface_get_xrender_format) :pointer
1291 (surface :pointer))
1292
1293 (cffi:defcfun ("cairo_pdf_surface_create" cairo_pdf_surface_create) :pointer
1294 (filename :string)
1295 (width_in_points my-double)
1296 (height_in_points my-double))
1297
1298 (cffi:defcfun ("cairo_pdf_surface_create_for_stream" cairo_pdf_surface_create_for_stream) :pointer
1299 (write_func :pointer)
1300 (closure :pointer)
1301 (width_in_points my-double)
1302 (height_in_points my-double))
1303
1304 (cffi:defcfun ("cairo_pdf_surface_set_size" cairo_pdf_surface_set_size) :void
1305 (surface :pointer)
1306 (width_in_points my-double)
1307 (height_in_points my-double))
1308
1309 (cffi:defcenum cairo_svg_version_t
1310 :CAIRO_SVG_VERSION_1_1
1311 :CAIRO_SVG_VERSION_1_2)
1312
1313 (cffi:defcfun ("cairo_svg_surface_create" cairo_svg_surface_create) :pointer
1314 (filename :string)
1315 (width_in_points my-double)
1316 (height_in_points my-double))
1317
1318 (cffi:defcfun ("cairo_svg_surface_create_for_stream" cairo_svg_surface_create_for_stream) :pointer
1319 (write_func :pointer)
1320 (closure :pointer)
1321 (width_in_points my-double)
1322 (height_in_points my-double))
1323
1324 (cffi:defcfun ("cairo_svg_surface_restrict_to_version" cairo_svg_surface_restrict_to_version) :void
1325 (surface :pointer)
1326 (version cairo_svg_version_t))
1327
1328 (cffi:defcfun ("cairo_svg_get_versions" cairo_svg_get_versions) :void
1329 (versions :pointer)
1330 (num_versions :pointer))
1331
1332 (cffi:defcfun ("cairo_svg_version_to_string" cairo_svg_version_to_string) :string
1333 (version cairo_svg_version_t))
1334
1335

  ViewVC Help
Powered by ViewVC 1.1.5