Mercurial > projects > dynamin
comparison dynamin/c/cairo.d @ 106:acdbb30fee7e
Port to D2.
Most of the effort was dealing with immutable and const.
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Mon, 17 Dec 2012 23:41:50 -0600 |
parents | aa4efef0f0b1 |
children |
comparison
equal
deleted
inserted
replaced
105:97997a544ac0 | 106:acdbb30fee7e |
---|---|
17 | 17 |
18 char* cairo_version_string(); | 18 char* cairo_version_string(); |
19 | 19 |
20 alias int cairo_bool_t; | 20 alias int cairo_bool_t; |
21 | 21 |
22 typedef void cairo_t; | 22 alias void cairo_t; |
23 | 23 |
24 typedef void cairo_surface_t; | 24 alias void cairo_surface_t; |
25 | 25 |
26 struct cairo_matrix_t { | 26 struct cairo_matrix_t { |
27 double xx; double yx; | 27 double xx; double yx; |
28 double xy; double yy; | 28 double xy; double yy; |
29 double x0; double y0; | 29 double x0; double y0; |
30 } | 30 } |
31 | 31 |
32 typedef void cairo_pattern_t; | 32 alias void cairo_pattern_t; |
33 | 33 |
34 typedef void function(void* data) cairo_destroy_func_t; | 34 alias void function(void* data) cairo_destroy_func_t; |
35 | 35 |
36 struct cairo_user_data_key_t { | 36 struct cairo_user_data_key_t { |
37 int unused; | 37 int unused; |
38 } | 38 } |
39 | 39 |
69 CAIRO_CONTENT_COLOR = 0x1000, | 69 CAIRO_CONTENT_COLOR = 0x1000, |
70 CAIRO_CONTENT_ALPHA = 0x2000, | 70 CAIRO_CONTENT_ALPHA = 0x2000, |
71 CAIRO_CONTENT_COLOR_ALPHA = 0x3000 | 71 CAIRO_CONTENT_COLOR_ALPHA = 0x3000 |
72 } | 72 } |
73 | 73 |
74 typedef cairo_status_t function(void* closure, char* data, uint length) cairo_write_func_t; | 74 alias cairo_status_t function(void* closure, char* data, uint length) cairo_write_func_t; |
75 | 75 |
76 typedef cairo_status_t function(void* closure, char* data, uint length) cairo_read_func_t; | 76 alias cairo_status_t function(void* closure, char* data, uint length) cairo_read_func_t; |
77 | 77 |
78 cairo_t* cairo_create(cairo_surface_t* target); | 78 cairo_t* cairo_create(cairo_surface_t* target); |
79 | 79 |
80 cairo_t* cairo_reference(cairo_t* cr); | 80 cairo_t* cairo_reference(cairo_t* cr); |
81 | 81 |
282 | 282 |
283 cairo_rectangle_list_t* cairo_copy_clip_rectangle_list(cairo_t* cr); | 283 cairo_rectangle_list_t* cairo_copy_clip_rectangle_list(cairo_t* cr); |
284 | 284 |
285 void cairo_rectangle_list_destroy(cairo_rectangle_list_t* rectangle_list); | 285 void cairo_rectangle_list_destroy(cairo_rectangle_list_t* rectangle_list); |
286 | 286 |
287 typedef void cairo_scaled_font_t; | 287 alias void cairo_scaled_font_t; |
288 | 288 |
289 typedef void cairo_font_face_t; | 289 alias void cairo_font_face_t; |
290 | 290 |
291 struct cairo_glyph_t { | 291 struct cairo_glyph_t { |
292 uint index; | 292 uint index; |
293 double x; | 293 double x; |
294 double y; | 294 double y; |
347 CAIRO_HINT_METRICS_DEFAULT, | 347 CAIRO_HINT_METRICS_DEFAULT, |
348 CAIRO_HINT_METRICS_OFF, | 348 CAIRO_HINT_METRICS_OFF, |
349 CAIRO_HINT_METRICS_ON | 349 CAIRO_HINT_METRICS_ON |
350 } | 350 } |
351 | 351 |
352 typedef void cairo_font_options_t; | 352 alias void cairo_font_options_t; |
353 | 353 |
354 cairo_font_options_t* cairo_font_options_create(); | 354 cairo_font_options_t* cairo_font_options_create(); |
355 | 355 |
356 cairo_font_options_t* cairo_font_options_copy(cairo_font_options_t* original); | 356 cairo_font_options_t* cairo_font_options_copy(cairo_font_options_t* original); |
357 | 357 |