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

Contents of /cl-cairo2-swig.lisp

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.5