Mercurial > projects > dwt2
annotate org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/internal/c/cairo.d @ 120:536e43f63c81
Comprehensive update for Win32/Linux32 dmd-2.053/dmd-1.068+Tango-r5661
===D2===
* added [Try]Immutable/Const/Shared templates to work with differenses in D1/D2 instead of version statements
used these templates to work with strict type storage rules of dmd-2.053
* com.ibm.icu now also compilable with D2, but not tested yet
* small fixes
Snippet288 - shared data is in TLS
===Phobos===
* fixed critical bugs in Phobos implemention
completely incorrect segfault prone fromStringz (Linux's port ruthless killer)
terrible, incorrect StringBuffer realization (StyledText killer)
* fixed small bugs as well
Snippet72 - misprint in the snippet
* implemented missed functionality for Phobos
ByteArrayOutputStream implemented (image loading available)
formatting correctly works for all DWT's cases
As a result, folowing snippets now works with Phobos (Snippet### - what is fixed):
Snippet24, 42, 111, 115, 130, 235, 276 - bad string formatting
Snippet48, 282 - crash on image loading
Snippet163, 189, 211, 213, 217, 218, 222 - crash on copy/cut in StyledText
Snippet244 - hang-up
===Tango===
* few changes for the latest Tango trunc-r5661
* few small performance improvments
===General===
* implMissing-s for only one version changed to implMissingInTango/InPhobos
* incorrect calls to Format in toString-s fixed
* fixed loading \uXXXX characters in ResourceBundle
* added good UTF-8 support for StyledText, TextLayout (Win32) and friends
UTF functions revised and tested. It is now in java.nonstandard.*Utf modules
StyledText and TextLayout (Win32) modules revised for UTF-8 support
* removed small diferences in most identical files in *.swt.* folders
*.swt.internal.image, *.swt.events and *.swt.custom are identical in Win32/Linux32
now 179 of 576 (~31%) files in *.swt.* folders are fully identical
* Win32: snippets now have right subsystem, pretty icons and native system style controls
* small fixes in snippets
Snippet44 - it's not Snippet44
Snippet212 - functions work with different images and offsets arrays
Win32: Snippet282 - crash on close if the button has an image
Snippet293 - setGrayed is commented
and others
Win32: As a result, folowing snippets now works
Snippet68 - color doesn't change
Snippet163, 189, 211, 213, 217, 218, 222 - UTF-8 issues (see above)
Snippet193 - no tabel headers
author | Denis Shelomovskij <verylonglogin.reg@gmail.com> |
---|---|
date | Sat, 09 Jul 2011 15:50:20 +0300 |
parents | fb3aa8075988 |
children |
rev | line source |
---|---|
25 | 1 /****************************************************************************** |
2 Based on the generated files from the BCD tool | |
3 modified by: Frank Benoit <benoit@tionex.de> | |
4 ******************************************************************************/ | |
5 module org.eclipse.swt.internal.c.cairo; | |
6 | |
7 import java.lang.all; | |
8 | |
9 extern(C): | |
10 align(4): | |
11 | |
12 const int CAIRO_VERSION_MAJOR = 1; | |
13 const int CAIRO_VERSION_MINOR = 4; | |
14 const int CAIRO_VERSION_MICRO = 10; | |
15 const String CAIRO_VERSION_STRING = "1.4.10"; | |
16 const int CAIRO_HAS_SVG_SURFACE = 1; | |
17 const int CAIRO_HAS_PDF_SURFACE = 1; | |
18 const int CAIRO_HAS_PS_SURFACE = 1; | |
19 const int CAIRO_HAS_FT_FONT = 1; | |
20 const int CAIRO_HAS_PNG_FUNCTIONS = 1; | |
21 const int CAIRO_HAS_XLIB_XRENDER_SURFACE = 1; | |
22 const int CAIRO_HAS_XLIB_SURFACE = 1; | |
23 const int CAIRO_FORMAT_RGB16_565 = 4; | |
24 enum _cairo_filter { | |
25 CAIRO_FILTER_FAST=0, | |
26 CAIRO_FILTER_GOOD=1, | |
27 CAIRO_FILTER_BEST=2, | |
28 CAIRO_FILTER_NEAREST=3, | |
29 CAIRO_FILTER_BILINEAR=4, | |
30 CAIRO_FILTER_GAUSSIAN=5, | |
31 } | |
32 alias int cairo_filter_t; | |
33 enum _cairo_extend { | |
34 CAIRO_EXTEND_NONE=0, | |
35 CAIRO_EXTEND_REPEAT=1, | |
36 CAIRO_EXTEND_REFLECT=2, | |
37 CAIRO_EXTEND_PAD=3, | |
38 } | |
39 alias int cairo_extend_t; | |
40 enum _cairo_pattern_type { | |
41 CAIRO_PATTERN_TYPE_SOLID=0, | |
42 CAIRO_PATTERN_TYPE_SURFACE=1, | |
43 CAIRO_PATTERN_TYPE_LINEAR=2, | |
44 CAIRO_PATTERN_TYPE_RADIAL=3, | |
45 } | |
46 alias int cairo_pattern_type_t; | |
47 enum _cairo_format { | |
48 CAIRO_FORMAT_ARGB32=0, | |
49 CAIRO_FORMAT_RGB24=1, | |
50 CAIRO_FORMAT_A8=2, | |
51 CAIRO_FORMAT_A1=3, | |
52 } | |
53 alias int cairo_format_t; | |
54 enum _cairo_surface_type { | |
55 CAIRO_SURFACE_TYPE_IMAGE=0, | |
56 CAIRO_SURFACE_TYPE_PDF=1, | |
57 CAIRO_SURFACE_TYPE_PS=2, | |
58 CAIRO_SURFACE_TYPE_XLIB=3, | |
59 CAIRO_SURFACE_TYPE_XCB=4, | |
60 CAIRO_SURFACE_TYPE_GLITZ=5, | |
61 CAIRO_SURFACE_TYPE_QUARTZ=6, | |
62 CAIRO_SURFACE_TYPE_WIN32=7, | |
63 CAIRO_SURFACE_TYPE_BEOS=8, | |
64 CAIRO_SURFACE_TYPE_DIRECTFB=9, | |
65 CAIRO_SURFACE_TYPE_SVG=10, | |
66 CAIRO_SURFACE_TYPE_OS2=11, | |
67 } | |
68 alias int cairo_surface_type_t; | |
69 alias cairo_path cairo_path_t; | |
70 enum _cairo_status { | |
71 CAIRO_STATUS_SUCCESS=0, | |
72 CAIRO_STATUS_NO_MEMORY=1, | |
73 CAIRO_STATUS_INVALID_RESTORE=2, | |
74 CAIRO_STATUS_INVALID_POP_GROUP=3, | |
75 CAIRO_STATUS_NO_CURRENT_POINT=4, | |
76 CAIRO_STATUS_INVALID_MATRIX=5, | |
77 CAIRO_STATUS_INVALID_STATUS=6, | |
78 CAIRO_STATUS_NULL_POINTER=7, | |
79 CAIRO_STATUS_INVALID_STRING=8, | |
80 CAIRO_STATUS_INVALID_PATH_DATA=9, | |
81 CAIRO_STATUS_READ_ERROR=10, | |
82 CAIRO_STATUS_WRITE_ERROR=11, | |
83 CAIRO_STATUS_SURFACE_FINISHED=12, | |
84 CAIRO_STATUS_SURFACE_TYPE_MISMATCH=13, | |
85 CAIRO_STATUS_PATTERN_TYPE_MISMATCH=14, | |
86 CAIRO_STATUS_INVALID_CONTENT=15, | |
87 CAIRO_STATUS_INVALID_FORMAT=16, | |
88 CAIRO_STATUS_INVALID_VISUAL=17, | |
89 CAIRO_STATUS_FILE_NOT_FOUND=18, | |
90 CAIRO_STATUS_INVALID_DASH=19, | |
91 CAIRO_STATUS_INVALID_DSC_COMMENT=20, | |
92 CAIRO_STATUS_INVALID_INDEX=21, | |
93 CAIRO_STATUS_CLIP_NOT_REPRESENTABLE=22, | |
94 } | |
95 alias int cairo_status_t; | |
96 alias _cairo_path_data_t cairo_path_data_t; | |
97 enum _cairo_path_data_type { | |
98 CAIRO_PATH_MOVE_TO=0, | |
99 CAIRO_PATH_LINE_TO=1, | |
100 CAIRO_PATH_CURVE_TO=2, | |
101 CAIRO_PATH_CLOSE_PATH=3, | |
102 } | |
103 alias int cairo_path_data_type_t; | |
104 enum _cairo_font_type { | |
105 CAIRO_FONT_TYPE_TOY=0, | |
106 CAIRO_FONT_TYPE_FT=1, | |
107 CAIRO_FONT_TYPE_WIN32=2, | |
108 CAIRO_FONT_TYPE_ATSUI=3, | |
109 } | |
110 alias int cairo_font_type_t; | |
111 alias void cairo_font_options_t; | |
112 enum _cairo_hint_metrics { | |
113 CAIRO_HINT_METRICS_DEFAULT=0, | |
114 CAIRO_HINT_METRICS_OFF=1, | |
115 CAIRO_HINT_METRICS_ON=2, | |
116 } | |
117 alias int cairo_hint_metrics_t; | |
118 enum _cairo_hint_style { | |
119 CAIRO_HINT_STYLE_DEFAULT=0, | |
120 CAIRO_HINT_STYLE_NONE=1, | |
121 CAIRO_HINT_STYLE_SLIGHT=2, | |
122 CAIRO_HINT_STYLE_MEDIUM=3, | |
123 CAIRO_HINT_STYLE_FULL=4, | |
124 } | |
125 alias int cairo_hint_style_t; | |
126 enum _cairo_subpixel_order { | |
127 CAIRO_SUBPIXEL_ORDER_DEFAULT=0, | |
128 CAIRO_SUBPIXEL_ORDER_RGB=1, | |
129 CAIRO_SUBPIXEL_ORDER_BGR=2, | |
130 CAIRO_SUBPIXEL_ORDER_VRGB=3, | |
131 CAIRO_SUBPIXEL_ORDER_VBGR=4, | |
132 } | |
133 alias int cairo_subpixel_order_t; | |
134 enum _cairo_font_weight { | |
135 CAIRO_FONT_WEIGHT_NORMAL=0, | |
136 CAIRO_FONT_WEIGHT_BOLD=1, | |
137 } | |
138 alias int cairo_font_weight_t; | |
139 enum _cairo_font_slant { | |
140 CAIRO_FONT_SLANT_NORMAL=0, | |
141 CAIRO_FONT_SLANT_ITALIC=1, | |
142 CAIRO_FONT_SLANT_OBLIQUE=2, | |
143 } | |
144 alias int cairo_font_slant_t; | |
145 alias void cairo_font_face_t; | |
146 alias void cairo_scaled_font_t; | |
147 alias _cairo_rectangle_list cairo_rectangle_list_t; | |
148 alias _cairo_rectangle cairo_rectangle_t; | |
149 enum _cairo_line_join { | |
150 CAIRO_LINE_JOIN_MITER=0, | |
151 CAIRO_LINE_JOIN_ROUND=1, | |
152 CAIRO_LINE_JOIN_BEVEL=2, | |
153 } | |
154 alias int cairo_line_join_t; | |
155 enum _cairo_line_cap { | |
156 CAIRO_LINE_CAP_BUTT=0, | |
157 CAIRO_LINE_CAP_ROUND=1, | |
158 CAIRO_LINE_CAP_SQUARE=2, | |
159 } | |
160 alias int cairo_line_cap_t; | |
161 enum _cairo_fill_rule { | |
162 CAIRO_FILL_RULE_WINDING=0, | |
163 CAIRO_FILL_RULE_EVEN_ODD=1, | |
164 } | |
165 alias int cairo_fill_rule_t; | |
166 enum _cairo_antialias { | |
167 CAIRO_ANTIALIAS_DEFAULT=0, | |
168 CAIRO_ANTIALIAS_NONE=1, | |
169 CAIRO_ANTIALIAS_GRAY=2, | |
170 CAIRO_ANTIALIAS_SUBPIXEL=3, | |
171 } | |
172 alias int cairo_antialias_t; | |
173 enum _cairo_operator { | |
174 CAIRO_OPERATOR_CLEAR=0, | |
175 CAIRO_OPERATOR_SOURCE=1, | |
176 CAIRO_OPERATOR_OVER=2, | |
177 CAIRO_OPERATOR_IN=3, | |
178 CAIRO_OPERATOR_OUT=4, | |
179 CAIRO_OPERATOR_ATOP=5, | |
180 CAIRO_OPERATOR_DEST=6, | |
181 CAIRO_OPERATOR_DEST_OVER=7, | |
182 CAIRO_OPERATOR_DEST_IN=8, | |
183 CAIRO_OPERATOR_DEST_OUT=9, | |
184 CAIRO_OPERATOR_DEST_ATOP=10, | |
185 CAIRO_OPERATOR_XOR=11, | |
186 CAIRO_OPERATOR_ADD=12, | |
187 CAIRO_OPERATOR_SATURATE=13, | |
188 } | |
189 alias int cairo_operator_t; | |
190 alias int function(void *, char *, uint) _BCD_func__476; | |
191 alias _BCD_func__476 cairo_read_func_t; | |
192 alias int function(void *, char *, uint) _BCD_func__477; | |
193 alias _BCD_func__477 cairo_write_func_t; | |
194 enum _cairo_content { | |
195 CAIRO_CONTENT_COLOR=4096, | |
196 CAIRO_CONTENT_ALPHA=8192, | |
197 CAIRO_CONTENT_COLOR_ALPHA=12288, | |
198 } | |
199 alias int cairo_content_t; | |
200 alias _cairo_user_data_key cairo_user_data_key_t; | |
201 alias void function(void *) _BCD_func__481; | |
202 alias _BCD_func__481 cairo_destroy_func_t; | |
203 alias void cairo_pattern_t; | |
204 alias _cairo_matrix cairo_matrix_t; | |
205 alias void cairo_surface_t; | |
206 alias void cairo_t; | |
207 alias int cairo_bool_t; | |
208 struct cairo_path { | |
209 int status; | |
210 _cairo_path_data_t * data; | |
211 int num_data; | |
212 } | |
213 struct N18_cairo_path_data_t3__3E { | |
214 int type; | |
215 int length; | |
216 } | |
217 struct N18_cairo_path_data_t3__4E { | |
218 double x; | |
219 double y; | |
220 } | |
221 union _cairo_path_data_t { | |
222 N18_cairo_path_data_t3__3E header; | |
223 N18_cairo_path_data_t3__4E point; | |
224 } | |
225 struct cairo_font_extents_t { | |
226 double ascent; | |
227 double descent; | |
228 double height; | |
229 double max_x_advance; | |
230 double max_y_advance; | |
231 } | |
232 struct cairo_text_extents_t { | |
233 double x_bearing; | |
234 double y_bearing; | |
235 double width; | |
236 double height; | |
237 double x_advance; | |
238 double y_advance; | |
239 } | |
240 struct cairo_glyph_t { | |
241 uint index; | |
242 double x; | |
243 double y; | |
244 } | |
245 struct _cairo_rectangle_list { | |
246 int status; | |
247 _cairo_rectangle * rectangles; | |
248 int num_rectangles; | |
249 } | |
250 struct _cairo_rectangle { | |
251 double x; | |
252 double y; | |
253 double width; | |
254 double height; | |
255 } | |
256 struct _cairo_user_data_key { | |
257 int unused; | |
258 } | |
259 struct _cairo_matrix { | |
260 double xx; | |
261 double yx; | |
262 double xy; | |
263 double yy; | |
264 double x0; | |
265 double y0; | |
266 } | |
267 version(DYNLINK){ | |
113 | 268 mixin(gshared!( |
269 "extern (C) void function(_cairo_matrix *, double *, double *)cairo_matrix_transform_point; | |
25 | 270 extern (C) void function(_cairo_matrix *, double *, double *)cairo_matrix_transform_distance; |
271 extern (C) void function(_cairo_matrix *, _cairo_matrix *, _cairo_matrix *)cairo_matrix_multiply; | |
272 extern (C) int function(_cairo_matrix *)cairo_matrix_invert; | |
273 extern (C) void function(_cairo_matrix *, double)cairo_matrix_rotate; | |
274 extern (C) void function(_cairo_matrix *, double, double)cairo_matrix_scale; | |
275 extern (C) void function(_cairo_matrix *, double, double)cairo_matrix_translate; | |
276 extern (C) void function(_cairo_matrix *, double)cairo_matrix_init_rotate; | |
277 extern (C) void function(_cairo_matrix *, double, double)cairo_matrix_init_scale; | |
278 extern (C) void function(_cairo_matrix *, double, double)cairo_matrix_init_translate; | |
279 extern (C) void function(_cairo_matrix *)cairo_matrix_init_identity; | |
280 extern (C) void function(_cairo_matrix *, double, double, double, double, double, double)cairo_matrix_init; | |
281 extern (C) int function(void *, double *, double *, double *, double *, double *, double *)cairo_pattern_get_radial_circles; | |
282 extern (C) int function(void *, double *, double *, double *, double *)cairo_pattern_get_linear_points; | |
283 extern (C) int function(void *, int *)cairo_pattern_get_color_stop_count; | |
284 extern (C) int function(void *, int, double *, double *, double *, double *, double *)cairo_pattern_get_color_stop_rgba; | |
285 extern (C) int function(void *, void * *)cairo_pattern_get_surface; | |
286 extern (C) int function(void *, double *, double *, double *, double *)cairo_pattern_get_rgba; | |
287 extern (C) int function(void *)cairo_pattern_get_filter; | |
288 extern (C) void function(void *, int)cairo_pattern_set_filter; | |
289 extern (C) int function(void *)cairo_pattern_get_extend; | |
290 extern (C) void function(void *, int)cairo_pattern_set_extend; | |
291 extern (C) void function(void *, _cairo_matrix *)cairo_pattern_get_matrix; | |
292 extern (C) void function(void *, _cairo_matrix *)cairo_pattern_set_matrix; | |
293 extern (C) void function(void *, double, double, double, double, double)cairo_pattern_add_color_stop_rgba; | |
294 extern (C) void function(void *, double, double, double, double)cairo_pattern_add_color_stop_rgb; | |
295 extern (C) int function(void *)cairo_pattern_get_type; | |
296 extern (C) int function(void *, _cairo_user_data_key *, void *, _BCD_func__481)cairo_pattern_set_user_data; | |
297 extern (C) void * function(void *, _cairo_user_data_key *)cairo_pattern_get_user_data; | |
298 extern (C) int function(void *)cairo_pattern_status; | |
299 extern (C) uint function(void *)cairo_pattern_get_reference_count; | |
300 extern (C) void function(void *)cairo_pattern_destroy; | |
301 extern (C) void * function(void *)cairo_pattern_reference; | |
302 extern (C) void * function(double, double, double, double, double, double)cairo_pattern_create_radial; | |
303 extern (C) void * function(double, double, double, double)cairo_pattern_create_linear; | |
304 extern (C) void * function(void *)cairo_pattern_create_for_surface; | |
305 extern (C) void * function(double, double, double, double)cairo_pattern_create_rgba; | |
306 extern (C) void * function(double, double, double)cairo_pattern_create_rgb; | |
307 extern (C) void * function(_BCD_func__476, void *)cairo_image_surface_create_from_png_stream; | |
308 extern (C) void * function(char *)cairo_image_surface_create_from_png; | |
309 extern (C) int function(void *)cairo_image_surface_get_stride; | |
310 extern (C) int function(void *)cairo_image_surface_get_height; | |
311 extern (C) int function(void *)cairo_image_surface_get_width; | |
312 extern (C) int function(void *)cairo_image_surface_get_format; | |
313 extern (C) char * function(void *)cairo_image_surface_get_data; | |
314 extern (C) void * function(char *, int, int, int, int)cairo_image_surface_create_for_data; | |
315 extern (C) void * function(int, int, int)cairo_image_surface_create; | |
316 extern (C) void function(void *, double, double)cairo_surface_set_fallback_resolution; | |
317 extern (C) void function(void *, double *, double *)cairo_surface_get_device_offset; | |
318 extern (C) void function(void *, double, double)cairo_surface_set_device_offset; | |
319 extern (C) void function(void *, int, int, int, int)cairo_surface_mark_dirty_rectangle; | |
320 extern (C) void function(void *)cairo_surface_mark_dirty; | |
321 extern (C) void function(void *)cairo_surface_flush; | |
322 extern (C) void function(void *, void *)cairo_surface_get_font_options; | |
323 extern (C) int function(void *, _cairo_user_data_key *, void *, _BCD_func__481)cairo_surface_set_user_data; | |
324 extern (C) void * function(void *, _cairo_user_data_key *)cairo_surface_get_user_data; | |
325 extern (C) int function(void *, _BCD_func__477, void *)cairo_surface_write_to_png_stream; | |
326 extern (C) int function(void *, char *)cairo_surface_write_to_png; | |
327 extern (C) int function(void *)cairo_surface_get_content; | |
328 extern (C) int function(void *)cairo_surface_get_type; | |
329 extern (C) int function(void *)cairo_surface_status; | |
330 extern (C) uint function(void *)cairo_surface_get_reference_count; | |
331 extern (C) void function(void *)cairo_surface_destroy; | |
332 extern (C) void function(void *)cairo_surface_finish; | |
333 extern (C) void * function(void *)cairo_surface_reference; | |
334 extern (C) void * function(void *, int, int, int)cairo_surface_create_similar; | |
335 extern (C) char * function(int)cairo_status_to_string; | |
336 extern (C) int function(void *)cairo_status; | |
337 extern (C) void function(cairo_path *)cairo_path_destroy; | |
338 extern (C) void function(void *, cairo_path *)cairo_append_path; | |
339 extern (C) cairo_path * function(void *)cairo_copy_path_flat; | |
340 extern (C) cairo_path * function(void *)cairo_copy_path; | |
341 extern (C) void * function(void *)cairo_get_group_target; | |
342 extern (C) void * function(void *)cairo_get_target; | |
343 extern (C) void function(void *, _cairo_matrix *)cairo_get_matrix; | |
344 extern (C) void function(void *, double *, double *)cairo_get_dash; | |
345 extern (C) int function(void *)cairo_get_dash_count; | |
346 extern (C) double function(void *)cairo_get_miter_limit; | |
347 extern (C) int function(void *)cairo_get_line_join; | |
348 extern (C) int function(void *)cairo_get_line_cap; | |
349 extern (C) double function(void *)cairo_get_line_width; | |
350 extern (C) int function(void *)cairo_get_fill_rule; | |
351 extern (C) void function(void *, double *, double *)cairo_get_current_point; | |
352 extern (C) int function(void *)cairo_get_antialias; | |
353 extern (C) double function(void *)cairo_get_tolerance; | |
354 extern (C) void * function(void *)cairo_get_source; | |
355 extern (C) int function(void *)cairo_get_operator; | |
356 extern (C) void function(void *, void *)cairo_scaled_font_get_font_options; | |
357 extern (C) void function(void *, _cairo_matrix *)cairo_scaled_font_get_ctm; | |
358 extern (C) void function(void *, _cairo_matrix *)cairo_scaled_font_get_font_matrix; | |
359 extern (C) void * function(void *)cairo_scaled_font_get_font_face; | |
360 extern (C) void function(void *, cairo_glyph_t *, int, cairo_text_extents_t *)cairo_scaled_font_glyph_extents; | |
361 extern (C) void function(void *, char *, cairo_text_extents_t *)cairo_scaled_font_text_extents; | |
362 extern (C) void function(void *, cairo_font_extents_t *)cairo_scaled_font_extents; | |
363 extern (C) int function(void *, _cairo_user_data_key *, void *, _BCD_func__481)cairo_scaled_font_set_user_data; | |
364 extern (C) void * function(void *, _cairo_user_data_key *)cairo_scaled_font_get_user_data; | |
365 extern (C) int function(void *)cairo_scaled_font_get_type; | |
366 extern (C) int function(void *)cairo_scaled_font_status; | |
367 extern (C) uint function(void *)cairo_scaled_font_get_reference_count; | |
368 extern (C) void function(void *)cairo_scaled_font_destroy; | |
369 extern (C) void * function(void *)cairo_scaled_font_reference; | |
370 extern (C) void * function(void *, _cairo_matrix *, _cairo_matrix *, void *)cairo_scaled_font_create; | |
371 extern (C) int function(void *, _cairo_user_data_key *, void *, _BCD_func__481)cairo_font_face_set_user_data; | |
372 extern (C) void * function(void *, _cairo_user_data_key *)cairo_font_face_get_user_data; | |
373 extern (C) int function(void *)cairo_font_face_get_type; | |
374 extern (C) int function(void *)cairo_font_face_status; | |
375 extern (C) uint function(void *)cairo_font_face_get_reference_count; | |
376 extern (C) void function(void *)cairo_font_face_destroy; | |
377 extern (C) void * function(void *)cairo_font_face_reference; | |
378 extern (C) void function(void *, cairo_font_extents_t *)cairo_font_extents; | |
379 extern (C) void function(void *, cairo_glyph_t *, int, cairo_text_extents_t *)cairo_glyph_extents; | |
380 extern (C) void function(void *, char *, cairo_text_extents_t *)cairo_text_extents; | |
381 extern (C) void function(void *, cairo_glyph_t *, int)cairo_glyph_path; | |
382 extern (C) void function(void *, char *)cairo_text_path; | |
383 extern (C) void function(void *, cairo_glyph_t *, int)cairo_show_glyphs; | |
384 extern (C) void function(void *, char *)cairo_show_text; | |
385 extern (C) void * function(void *)cairo_get_scaled_font; | |
386 extern (C) void function(void *, void *)cairo_set_scaled_font; | |
387 extern (C) void * function(void *)cairo_get_font_face; | |
388 extern (C) void function(void *, void *)cairo_set_font_face; | |
389 extern (C) void function(void *, void *)cairo_get_font_options; | |
390 extern (C) void function(void *, void *)cairo_set_font_options; | |
391 extern (C) void function(void *, _cairo_matrix *)cairo_get_font_matrix; | |
392 extern (C) void function(void *, _cairo_matrix *)cairo_set_font_matrix; | |
393 extern (C) void function(void *, double)cairo_set_font_size; | |
54 | 394 extern (C) void function(void *, in char *, int, int)cairo_select_font_face; |
25 | 395 extern (C) int function(void *)cairo_font_options_get_hint_metrics; |
396 extern (C) void function(void *, int)cairo_font_options_set_hint_metrics; | |
397 extern (C) int function(void *)cairo_font_options_get_hint_style; | |
398 extern (C) void function(void *, int)cairo_font_options_set_hint_style; | |
399 extern (C) int function(void *)cairo_font_options_get_subpixel_order; | |
400 extern (C) void function(void *, int)cairo_font_options_set_subpixel_order; | |
401 extern (C) int function(void *)cairo_font_options_get_antialias; | |
402 extern (C) void function(void *, int)cairo_font_options_set_antialias; | |
403 extern (C) uint function(void *)cairo_font_options_hash; | |
404 extern (C) int function(void *, void *)cairo_font_options_equal; | |
405 extern (C) void function(void *, void *)cairo_font_options_merge; | |
406 extern (C) int function(void *)cairo_font_options_status; | |
407 extern (C) void function(void *)cairo_font_options_destroy; | |
408 extern (C) void * function(void *)cairo_font_options_copy; | |
409 extern (C) void * function()cairo_font_options_create; | |
410 extern (C) void function(_cairo_rectangle_list *)cairo_rectangle_list_destroy; | |
411 extern (C) _cairo_rectangle_list * function(void *)cairo_copy_clip_rectangle_list; | |
412 extern (C) void function(void *, double *, double *, double *, double *)cairo_clip_extents; | |
413 extern (C) void function(void *)cairo_clip_preserve; | |
414 extern (C) void function(void *)cairo_clip; | |
415 extern (C) void function(void *)cairo_reset_clip; | |
416 extern (C) void function(void *, double *, double *, double *, double *)cairo_fill_extents; | |
417 extern (C) void function(void *, double *, double *, double *, double *)cairo_stroke_extents; | |
418 extern (C) int function(void *, double, double)cairo_in_fill; | |
419 extern (C) int function(void *, double, double)cairo_in_stroke; | |
420 extern (C) void function(void *)cairo_show_page; | |
421 extern (C) void function(void *)cairo_copy_page; | |
422 extern (C) void function(void *)cairo_fill_preserve; | |
423 extern (C) void function(void *)cairo_fill; | |
424 extern (C) void function(void *)cairo_stroke_preserve; | |
425 extern (C) void function(void *)cairo_stroke; | |
426 extern (C) void function(void *, void *, double, double)cairo_mask_surface; | |
427 extern (C) void function(void *, void *)cairo_mask; | |
428 extern (C) void function(void *, double)cairo_paint_with_alpha; | |
429 extern (C) void function(void *)cairo_paint; | |
430 extern (C) void function(void *)cairo_close_path; | |
431 extern (C) void function(void *, double, double, double, double)cairo_rectangle; | |
432 extern (C) void function(void *, double, double, double, double, double, double)cairo_rel_curve_to; | |
433 extern (C) void function(void *, double, double)cairo_rel_line_to; | |
434 extern (C) void function(void *, double, double)cairo_rel_move_to; | |
435 extern (C) void function(void *, double, double, double, double, double)cairo_arc_negative; | |
436 extern (C) void function(void *, double, double, double, double, double)cairo_arc; | |
437 extern (C) void function(void *, double, double, double, double, double, double)cairo_curve_to; | |
438 extern (C) void function(void *, double, double)cairo_line_to; | |
439 extern (C) void function(void *)cairo_new_sub_path; | |
440 extern (C) void function(void *, double, double)cairo_move_to; | |
441 extern (C) void function(void *)cairo_new_path; | |
442 extern (C) void function(void *, double *, double *)cairo_device_to_user_distance; | |
443 extern (C) void function(void *, double *, double *)cairo_device_to_user; | |
444 extern (C) void function(void *, double *, double *)cairo_user_to_device_distance; | |
445 extern (C) void function(void *, double *, double *)cairo_user_to_device; | |
446 extern (C) void function(void *)cairo_identity_matrix; | |
447 extern (C) void function(void *, _cairo_matrix *)cairo_set_matrix; | |
448 extern (C) void function(void *, _cairo_matrix *)cairo_transform; | |
449 extern (C) void function(void *, double)cairo_rotate; | |
450 extern (C) void function(void *, double, double)cairo_scale; | |
451 extern (C) void function(void *, double, double)cairo_translate; | |
452 extern (C) void function(void *, double)cairo_set_miter_limit; | |
453 extern (C) void function(void *, double *, int, double)cairo_set_dash; | |
454 extern (C) void function(void *, int)cairo_set_line_join; | |
455 extern (C) void function(void *, int)cairo_set_line_cap; | |
456 extern (C) void function(void *, double)cairo_set_line_width; | |
457 extern (C) void function(void *, int)cairo_set_fill_rule; | |
458 extern (C) void function(void *, int)cairo_set_antialias; | |
459 extern (C) void function(void *, double)cairo_set_tolerance; | |
460 extern (C) void function(void *, void *, double, double)cairo_set_source_surface; | |
461 extern (C) void function(void *, double, double, double, double)cairo_set_source_rgba; | |
462 extern (C) void function(void *, double, double, double)cairo_set_source_rgb; | |
463 extern (C) void function(void *, void *)cairo_set_source; | |
464 extern (C) void function(void *, int)cairo_set_operator; | |
465 extern (C) void function(void *)cairo_pop_group_to_source; | |
466 extern (C) void * function(void *)cairo_pop_group; | |
467 extern (C) void function(void *, int)cairo_push_group_with_content; | |
468 extern (C) void function(void *)cairo_push_group; | |
469 extern (C) void function(void *)cairo_restore; | |
470 extern (C) void function(void *)cairo_save; | |
471 extern (C) int function(void *, _cairo_user_data_key *, void *, _BCD_func__481)cairo_set_user_data; | |
472 extern (C) void * function(void *, _cairo_user_data_key *)cairo_get_user_data; | |
473 extern (C) uint function(void *)cairo_get_reference_count; | |
474 extern (C) void function(void *)cairo_destroy; | |
475 extern (C) void * function(void *)cairo_reference; | |
476 extern (C) void * function(void *)cairo_create; | |
477 extern (C) char * function()cairo_version_string; | |
113 | 478 extern (C) int function()cairo_version;" |
479 )); | |
25 | 480 |
113 | 481 Symbol[] symbols; |
482 static this () { | |
483 symbols = [ | |
484 Symbol("cairo_debug_reset_static_data", cast(void**)& cairo_debug_reset_static_data), | |
485 Symbol("cairo_matrix_transform_point", cast(void**)& cairo_matrix_transform_point), | |
486 Symbol("cairo_matrix_transform_distance", cast(void**)& cairo_matrix_transform_distance), | |
487 Symbol("cairo_matrix_multiply", cast(void**)& cairo_matrix_multiply), | |
488 Symbol("cairo_matrix_invert", cast(void**)& cairo_matrix_invert), | |
489 Symbol("cairo_matrix_rotate", cast(void**)& cairo_matrix_rotate), | |
490 Symbol("cairo_matrix_scale", cast(void**)& cairo_matrix_scale), | |
491 Symbol("cairo_matrix_translate", cast(void**)& cairo_matrix_translate), | |
492 Symbol("cairo_matrix_init_rotate", cast(void**)& cairo_matrix_init_rotate), | |
493 Symbol("cairo_matrix_init_scale", cast(void**)& cairo_matrix_init_scale), | |
494 Symbol("cairo_matrix_init_translate", cast(void**)& cairo_matrix_init_translate), | |
495 Symbol("cairo_matrix_init_identity", cast(void**)& cairo_matrix_init_identity), | |
496 Symbol("cairo_matrix_init", cast(void**)& cairo_matrix_init), | |
497 Symbol("cairo_pattern_get_radial_circles", cast(void**)& cairo_pattern_get_radial_circles), | |
498 Symbol("cairo_pattern_get_linear_points", cast(void**)& cairo_pattern_get_linear_points), | |
499 Symbol("cairo_pattern_get_color_stop_count", cast(void**)& cairo_pattern_get_color_stop_count), | |
500 Symbol("cairo_pattern_get_color_stop_rgba", cast(void**)& cairo_pattern_get_color_stop_rgba), | |
501 Symbol("cairo_pattern_get_surface", cast(void**)& cairo_pattern_get_surface), | |
502 Symbol("cairo_pattern_get_rgba", cast(void**)& cairo_pattern_get_rgba), | |
503 Symbol("cairo_pattern_get_filter", cast(void**)& cairo_pattern_get_filter), | |
504 Symbol("cairo_pattern_set_filter", cast(void**)& cairo_pattern_set_filter), | |
505 Symbol("cairo_pattern_get_extend", cast(void**)& cairo_pattern_get_extend), | |
506 Symbol("cairo_pattern_set_extend", cast(void**)& cairo_pattern_set_extend), | |
507 Symbol("cairo_pattern_get_matrix", cast(void**)& cairo_pattern_get_matrix), | |
508 Symbol("cairo_pattern_set_matrix", cast(void**)& cairo_pattern_set_matrix), | |
509 Symbol("cairo_pattern_add_color_stop_rgba", cast(void**)& cairo_pattern_add_color_stop_rgba), | |
510 Symbol("cairo_pattern_add_color_stop_rgb", cast(void**)& cairo_pattern_add_color_stop_rgb), | |
511 Symbol("cairo_pattern_get_type", cast(void**)& cairo_pattern_get_type), | |
512 Symbol("cairo_pattern_set_user_data", cast(void**)& cairo_pattern_set_user_data), | |
513 Symbol("cairo_pattern_get_user_data", cast(void**)& cairo_pattern_get_user_data), | |
514 Symbol("cairo_pattern_status", cast(void**)& cairo_pattern_status), | |
515 Symbol("cairo_pattern_get_reference_count", cast(void**)& cairo_pattern_get_reference_count), | |
516 Symbol("cairo_pattern_destroy", cast(void**)& cairo_pattern_destroy), | |
517 Symbol("cairo_pattern_reference", cast(void**)& cairo_pattern_reference), | |
518 Symbol("cairo_pattern_create_radial", cast(void**)& cairo_pattern_create_radial), | |
519 Symbol("cairo_pattern_create_linear", cast(void**)& cairo_pattern_create_linear), | |
520 Symbol("cairo_pattern_create_for_surface", cast(void**)& cairo_pattern_create_for_surface), | |
521 Symbol("cairo_pattern_create_rgba", cast(void**)& cairo_pattern_create_rgba), | |
522 Symbol("cairo_pattern_create_rgb", cast(void**)& cairo_pattern_create_rgb), | |
523 Symbol("cairo_image_surface_create_from_png_stream", cast(void**)& cairo_image_surface_create_from_png_stream), | |
524 Symbol("cairo_image_surface_create_from_png", cast(void**)& cairo_image_surface_create_from_png), | |
525 Symbol("cairo_image_surface_get_stride", cast(void**)& cairo_image_surface_get_stride), | |
526 Symbol("cairo_image_surface_get_height", cast(void**)& cairo_image_surface_get_height), | |
527 Symbol("cairo_image_surface_get_width", cast(void**)& cairo_image_surface_get_width), | |
528 Symbol("cairo_image_surface_get_format", cast(void**)& cairo_image_surface_get_format), | |
529 Symbol("cairo_image_surface_get_data", cast(void**)& cairo_image_surface_get_data), | |
530 Symbol("cairo_image_surface_create_for_data", cast(void**)& cairo_image_surface_create_for_data), | |
531 Symbol("cairo_image_surface_create", cast(void**)& cairo_image_surface_create), | |
532 Symbol("cairo_surface_set_fallback_resolution", cast(void**)& cairo_surface_set_fallback_resolution), | |
533 Symbol("cairo_surface_get_device_offset", cast(void**)& cairo_surface_get_device_offset), | |
534 Symbol("cairo_surface_set_device_offset", cast(void**)& cairo_surface_set_device_offset), | |
535 Symbol("cairo_surface_mark_dirty_rectangle", cast(void**)& cairo_surface_mark_dirty_rectangle), | |
536 Symbol("cairo_surface_mark_dirty", cast(void**)& cairo_surface_mark_dirty), | |
537 Symbol("cairo_surface_flush", cast(void**)& cairo_surface_flush), | |
538 Symbol("cairo_surface_get_font_options", cast(void**)& cairo_surface_get_font_options), | |
539 Symbol("cairo_surface_set_user_data", cast(void**)& cairo_surface_set_user_data), | |
540 Symbol("cairo_surface_get_user_data", cast(void**)& cairo_surface_get_user_data), | |
541 Symbol("cairo_surface_write_to_png_stream", cast(void**)& cairo_surface_write_to_png_stream), | |
542 Symbol("cairo_surface_write_to_png", cast(void**)& cairo_surface_write_to_png), | |
543 Symbol("cairo_surface_get_content", cast(void**)& cairo_surface_get_content), | |
544 Symbol("cairo_surface_get_type", cast(void**)& cairo_surface_get_type), | |
545 Symbol("cairo_surface_status", cast(void**)& cairo_surface_status), | |
546 Symbol("cairo_surface_get_reference_count", cast(void**)& cairo_surface_get_reference_count), | |
547 Symbol("cairo_surface_destroy", cast(void**)& cairo_surface_destroy), | |
548 Symbol("cairo_surface_finish", cast(void**)& cairo_surface_finish), | |
549 Symbol("cairo_surface_reference", cast(void**)& cairo_surface_reference), | |
550 Symbol("cairo_surface_create_similar", cast(void**)& cairo_surface_create_similar), | |
551 Symbol("cairo_status_to_string", cast(void**)& cairo_status_to_string), | |
552 Symbol("cairo_status", cast(void**)& cairo_status), | |
553 Symbol("cairo_path_destroy", cast(void**)& cairo_path_destroy), | |
554 Symbol("cairo_append_path", cast(void**)& cairo_append_path), | |
555 Symbol("cairo_copy_path_flat", cast(void**)& cairo_copy_path_flat), | |
556 Symbol("cairo_copy_path", cast(void**)& cairo_copy_path), | |
557 Symbol("cairo_get_group_target", cast(void**)& cairo_get_group_target), | |
558 Symbol("cairo_get_target", cast(void**)& cairo_get_target), | |
559 Symbol("cairo_get_matrix", cast(void**)& cairo_get_matrix), | |
560 Symbol("cairo_get_dash", cast(void**)& cairo_get_dash), | |
561 Symbol("cairo_get_dash_count", cast(void**)& cairo_get_dash_count), | |
562 Symbol("cairo_get_miter_limit", cast(void**)& cairo_get_miter_limit), | |
563 Symbol("cairo_get_line_join", cast(void**)& cairo_get_line_join), | |
564 Symbol("cairo_get_line_cap", cast(void**)& cairo_get_line_cap), | |
565 Symbol("cairo_get_line_width", cast(void**)& cairo_get_line_width), | |
566 Symbol("cairo_get_fill_rule", cast(void**)& cairo_get_fill_rule), | |
567 Symbol("cairo_get_current_point", cast(void**)& cairo_get_current_point), | |
568 Symbol("cairo_get_antialias", cast(void**)& cairo_get_antialias), | |
569 Symbol("cairo_get_tolerance", cast(void**)& cairo_get_tolerance), | |
570 Symbol("cairo_get_source", cast(void**)& cairo_get_source), | |
571 Symbol("cairo_get_operator", cast(void**)& cairo_get_operator), | |
572 Symbol("cairo_scaled_font_get_font_options", cast(void**)& cairo_scaled_font_get_font_options), | |
573 Symbol("cairo_scaled_font_get_ctm", cast(void**)& cairo_scaled_font_get_ctm), | |
574 Symbol("cairo_scaled_font_get_font_matrix", cast(void**)& cairo_scaled_font_get_font_matrix), | |
575 Symbol("cairo_scaled_font_get_font_face", cast(void**)& cairo_scaled_font_get_font_face), | |
576 Symbol("cairo_scaled_font_glyph_extents", cast(void**)& cairo_scaled_font_glyph_extents), | |
577 Symbol("cairo_scaled_font_text_extents", cast(void**)& cairo_scaled_font_text_extents), | |
578 Symbol("cairo_scaled_font_extents", cast(void**)& cairo_scaled_font_extents), | |
579 Symbol("cairo_scaled_font_set_user_data", cast(void**)& cairo_scaled_font_set_user_data), | |
580 Symbol("cairo_scaled_font_get_user_data", cast(void**)& cairo_scaled_font_get_user_data), | |
581 Symbol("cairo_scaled_font_get_type", cast(void**)& cairo_scaled_font_get_type), | |
582 Symbol("cairo_scaled_font_status", cast(void**)& cairo_scaled_font_status), | |
583 Symbol("cairo_scaled_font_get_reference_count", cast(void**)& cairo_scaled_font_get_reference_count), | |
584 Symbol("cairo_scaled_font_destroy", cast(void**)& cairo_scaled_font_destroy), | |
585 Symbol("cairo_scaled_font_reference", cast(void**)& cairo_scaled_font_reference), | |
586 Symbol("cairo_scaled_font_create", cast(void**)& cairo_scaled_font_create), | |
587 Symbol("cairo_font_face_set_user_data", cast(void**)& cairo_font_face_set_user_data), | |
588 Symbol("cairo_font_face_get_user_data", cast(void**)& cairo_font_face_get_user_data), | |
589 Symbol("cairo_font_face_get_type", cast(void**)& cairo_font_face_get_type), | |
590 Symbol("cairo_font_face_status", cast(void**)& cairo_font_face_status), | |
591 Symbol("cairo_font_face_get_reference_count", cast(void**)& cairo_font_face_get_reference_count), | |
592 Symbol("cairo_font_face_destroy", cast(void**)& cairo_font_face_destroy), | |
593 Symbol("cairo_font_face_reference", cast(void**)& cairo_font_face_reference), | |
594 Symbol("cairo_font_extents", cast(void**)& cairo_font_extents), | |
595 Symbol("cairo_glyph_extents", cast(void**)& cairo_glyph_extents), | |
596 Symbol("cairo_text_extents", cast(void**)& cairo_text_extents), | |
597 Symbol("cairo_glyph_path", cast(void**)& cairo_glyph_path), | |
598 Symbol("cairo_text_path", cast(void**)& cairo_text_path), | |
599 Symbol("cairo_show_glyphs", cast(void**)& cairo_show_glyphs), | |
600 Symbol("cairo_show_text", cast(void**)& cairo_show_text), | |
601 Symbol("cairo_get_scaled_font", cast(void**)& cairo_get_scaled_font), | |
602 Symbol("cairo_set_scaled_font", cast(void**)& cairo_set_scaled_font), | |
603 Symbol("cairo_get_font_face", cast(void**)& cairo_get_font_face), | |
604 Symbol("cairo_set_font_face", cast(void**)& cairo_set_font_face), | |
605 Symbol("cairo_get_font_options", cast(void**)& cairo_get_font_options), | |
606 Symbol("cairo_set_font_options", cast(void**)& cairo_set_font_options), | |
607 Symbol("cairo_get_font_matrix", cast(void**)& cairo_get_font_matrix), | |
608 Symbol("cairo_set_font_matrix", cast(void**)& cairo_set_font_matrix), | |
609 Symbol("cairo_set_font_size", cast(void**)& cairo_set_font_size), | |
610 Symbol("cairo_select_font_face", cast(void**)& cairo_select_font_face), | |
611 Symbol("cairo_font_options_get_hint_metrics", cast(void**)& cairo_font_options_get_hint_metrics), | |
612 Symbol("cairo_font_options_set_hint_metrics", cast(void**)& cairo_font_options_set_hint_metrics), | |
613 Symbol("cairo_font_options_get_hint_style", cast(void**)& cairo_font_options_get_hint_style), | |
614 Symbol("cairo_font_options_set_hint_style", cast(void**)& cairo_font_options_set_hint_style), | |
615 Symbol("cairo_font_options_get_subpixel_order", cast(void**)& cairo_font_options_get_subpixel_order), | |
616 Symbol("cairo_font_options_set_subpixel_order", cast(void**)& cairo_font_options_set_subpixel_order), | |
617 Symbol("cairo_font_options_get_antialias", cast(void**)& cairo_font_options_get_antialias), | |
618 Symbol("cairo_font_options_set_antialias", cast(void**)& cairo_font_options_set_antialias), | |
619 Symbol("cairo_font_options_hash", cast(void**)& cairo_font_options_hash), | |
620 Symbol("cairo_font_options_equal", cast(void**)& cairo_font_options_equal), | |
621 Symbol("cairo_font_options_merge", cast(void**)& cairo_font_options_merge), | |
622 Symbol("cairo_font_options_status", cast(void**)& cairo_font_options_status), | |
623 Symbol("cairo_font_options_destroy", cast(void**)& cairo_font_options_destroy), | |
624 Symbol("cairo_font_options_copy", cast(void**)& cairo_font_options_copy), | |
625 Symbol("cairo_font_options_create", cast(void**)& cairo_font_options_create), | |
626 Symbol("cairo_rectangle_list_destroy", cast(void**)& cairo_rectangle_list_destroy), | |
627 Symbol("cairo_copy_clip_rectangle_list", cast(void**)& cairo_copy_clip_rectangle_list), | |
628 Symbol("cairo_clip_extents", cast(void**)& cairo_clip_extents), | |
629 Symbol("cairo_clip_preserve", cast(void**)& cairo_clip_preserve), | |
630 Symbol("cairo_clip", cast(void**)& cairo_clip), | |
631 Symbol("cairo_reset_clip", cast(void**)& cairo_reset_clip), | |
632 Symbol("cairo_fill_extents", cast(void**)& cairo_fill_extents), | |
633 Symbol("cairo_stroke_extents", cast(void**)& cairo_stroke_extents), | |
634 Symbol("cairo_in_fill", cast(void**)& cairo_in_fill), | |
635 Symbol("cairo_in_stroke", cast(void**)& cairo_in_stroke), | |
636 Symbol("cairo_show_page", cast(void**)& cairo_show_page), | |
637 Symbol("cairo_copy_page", cast(void**)& cairo_copy_page), | |
638 Symbol("cairo_fill_preserve", cast(void**)& cairo_fill_preserve), | |
639 Symbol("cairo_fill", cast(void**)& cairo_fill), | |
640 Symbol("cairo_stroke_preserve", cast(void**)& cairo_stroke_preserve), | |
641 Symbol("cairo_stroke", cast(void**)& cairo_stroke), | |
642 Symbol("cairo_mask_surface", cast(void**)& cairo_mask_surface), | |
643 Symbol("cairo_mask", cast(void**)& cairo_mask), | |
644 Symbol("cairo_paint_with_alpha", cast(void**)& cairo_paint_with_alpha), | |
645 Symbol("cairo_paint", cast(void**)& cairo_paint), | |
646 Symbol("cairo_close_path", cast(void**)& cairo_close_path), | |
647 Symbol("cairo_rectangle", cast(void**)& cairo_rectangle), | |
648 Symbol("cairo_rel_curve_to", cast(void**)& cairo_rel_curve_to), | |
649 Symbol("cairo_rel_line_to", cast(void**)& cairo_rel_line_to), | |
650 Symbol("cairo_rel_move_to", cast(void**)& cairo_rel_move_to), | |
651 Symbol("cairo_arc_negative", cast(void**)& cairo_arc_negative), | |
652 Symbol("cairo_arc", cast(void**)& cairo_arc), | |
653 Symbol("cairo_curve_to", cast(void**)& cairo_curve_to), | |
654 Symbol("cairo_line_to", cast(void**)& cairo_line_to), | |
655 Symbol("cairo_new_sub_path", cast(void**)& cairo_new_sub_path), | |
656 Symbol("cairo_move_to", cast(void**)& cairo_move_to), | |
657 Symbol("cairo_new_path", cast(void**)& cairo_new_path), | |
658 Symbol("cairo_device_to_user_distance", cast(void**)& cairo_device_to_user_distance), | |
659 Symbol("cairo_device_to_user", cast(void**)& cairo_device_to_user), | |
660 Symbol("cairo_user_to_device_distance", cast(void**)& cairo_user_to_device_distance), | |
661 Symbol("cairo_user_to_device", cast(void**)& cairo_user_to_device), | |
662 Symbol("cairo_identity_matrix", cast(void**)& cairo_identity_matrix), | |
663 Symbol("cairo_set_matrix", cast(void**)& cairo_set_matrix), | |
664 Symbol("cairo_transform", cast(void**)& cairo_transform), | |
665 Symbol("cairo_rotate", cast(void**)& cairo_rotate), | |
666 Symbol("cairo_scale", cast(void**)& cairo_scale), | |
667 Symbol("cairo_translate", cast(void**)& cairo_translate), | |
668 Symbol("cairo_set_miter_limit", cast(void**)& cairo_set_miter_limit), | |
669 Symbol("cairo_set_dash", cast(void**)& cairo_set_dash), | |
670 Symbol("cairo_set_line_join", cast(void**)& cairo_set_line_join), | |
671 Symbol("cairo_set_line_cap", cast(void**)& cairo_set_line_cap), | |
672 Symbol("cairo_set_line_width", cast(void**)& cairo_set_line_width), | |
673 Symbol("cairo_set_fill_rule", cast(void**)& cairo_set_fill_rule), | |
674 Symbol("cairo_set_antialias", cast(void**)& cairo_set_antialias), | |
675 Symbol("cairo_set_tolerance", cast(void**)& cairo_set_tolerance), | |
676 Symbol("cairo_set_source_surface", cast(void**)& cairo_set_source_surface), | |
677 Symbol("cairo_set_source_rgba", cast(void**)& cairo_set_source_rgba), | |
678 Symbol("cairo_set_source_rgb", cast(void**)& cairo_set_source_rgb), | |
679 Symbol("cairo_set_source", cast(void**)& cairo_set_source), | |
680 Symbol("cairo_set_operator", cast(void**)& cairo_set_operator), | |
681 Symbol("cairo_pop_group_to_source", cast(void**)& cairo_pop_group_to_source), | |
682 Symbol("cairo_pop_group", cast(void**)& cairo_pop_group), | |
683 Symbol("cairo_push_group_with_content", cast(void**)& cairo_push_group_with_content), | |
684 Symbol("cairo_push_group", cast(void**)& cairo_push_group), | |
685 Symbol("cairo_restore", cast(void**)& cairo_restore), | |
686 Symbol("cairo_save", cast(void**)& cairo_save), | |
687 Symbol("cairo_set_user_data", cast(void**)& cairo_set_user_data), | |
688 Symbol("cairo_get_user_data", cast(void**)& cairo_get_user_data), | |
689 Symbol("cairo_get_reference_count", cast(void**)& cairo_get_reference_count), | |
690 Symbol("cairo_destroy", cast(void**)& cairo_destroy), | |
691 Symbol("cairo_reference", cast(void**)& cairo_reference), | |
692 Symbol("cairo_create", cast(void**)& cairo_create), | |
693 Symbol("cairo_version_string", cast(void**)& cairo_version_string), | |
120
536e43f63c81
Comprehensive update for Win32/Linux32 dmd-2.053/dmd-1.068+Tango-r5661
Denis Shelomovskij <verylonglogin.reg@gmail.com>
parents:
113
diff
changeset
|
694 Symbol("cairo_version", cast(void**)& cairo_version) |
113 | 695 ]; |
696 } | |
25 | 697 |
698 } else { // version(DYNLINK) | |
699 extern (C) void cairo_debug_reset_static_data(); | |
700 extern (C) void cairo_matrix_transform_point(_cairo_matrix *, double *, double *); | |
701 extern (C) void cairo_matrix_transform_distance(_cairo_matrix *, double *, double *); | |
702 extern (C) void cairo_matrix_multiply(_cairo_matrix *, _cairo_matrix *, _cairo_matrix *); | |
703 extern (C) int cairo_matrix_invert(_cairo_matrix *); | |
704 extern (C) void cairo_matrix_rotate(_cairo_matrix *, double); | |
705 extern (C) void cairo_matrix_scale(_cairo_matrix *, double, double); | |
706 extern (C) void cairo_matrix_translate(_cairo_matrix *, double, double); | |
707 extern (C) void cairo_matrix_init_rotate(_cairo_matrix *, double); | |
708 extern (C) void cairo_matrix_init_scale(_cairo_matrix *, double, double); | |
709 extern (C) void cairo_matrix_init_translate(_cairo_matrix *, double, double); | |
710 extern (C) void cairo_matrix_init_identity(_cairo_matrix *); | |
711 extern (C) void cairo_matrix_init(_cairo_matrix *, double, double, double, double, double, double); | |
712 extern (C) int cairo_pattern_get_radial_circles(void *, double *, double *, double *, double *, double *, double *); | |
713 extern (C) int cairo_pattern_get_linear_points(void *, double *, double *, double *, double *); | |
714 extern (C) int cairo_pattern_get_color_stop_count(void *, int *); | |
715 extern (C) int cairo_pattern_get_color_stop_rgba(void *, int, double *, double *, double *, double *, double *); | |
716 extern (C) int cairo_pattern_get_surface(void *, void * *); | |
717 extern (C) int cairo_pattern_get_rgba(void *, double *, double *, double *, double *); | |
718 extern (C) int cairo_pattern_get_filter(void *); | |
719 extern (C) void cairo_pattern_set_filter(void *, int); | |
720 extern (C) int cairo_pattern_get_extend(void *); | |
721 extern (C) void cairo_pattern_set_extend(void *, int); | |
722 extern (C) void cairo_pattern_get_matrix(void *, _cairo_matrix *); | |
723 extern (C) void cairo_pattern_set_matrix(void *, _cairo_matrix *); | |
724 extern (C) void cairo_pattern_add_color_stop_rgba(void *, double, double, double, double, double); | |
725 extern (C) void cairo_pattern_add_color_stop_rgb(void *, double, double, double, double); | |
726 extern (C) int cairo_pattern_get_type(void *); | |
727 extern (C) int cairo_pattern_set_user_data(void *, _cairo_user_data_key *, void *, _BCD_func__481); | |
728 extern (C) void * cairo_pattern_get_user_data(void *, _cairo_user_data_key *); | |
729 extern (C) int cairo_pattern_status(void *); | |
730 extern (C) uint cairo_pattern_get_reference_count(void *); | |
731 extern (C) void cairo_pattern_destroy(void *); | |
732 extern (C) void * cairo_pattern_reference(void *); | |
733 extern (C) void * cairo_pattern_create_radial(double, double, double, double, double, double); | |
734 extern (C) void * cairo_pattern_create_linear(double, double, double, double); | |
735 extern (C) void * cairo_pattern_create_for_surface(void *); | |
736 extern (C) void * cairo_pattern_create_rgba(double, double, double, double); | |
737 extern (C) void * cairo_pattern_create_rgb(double, double, double); | |
738 extern (C) void * cairo_image_surface_create_from_png_stream(_BCD_func__476, void *); | |
739 extern (C) void * cairo_image_surface_create_from_png(char *); | |
740 extern (C) int cairo_image_surface_get_stride(void *); | |
741 extern (C) int cairo_image_surface_get_height(void *); | |
742 extern (C) int cairo_image_surface_get_width(void *); | |
743 extern (C) int cairo_image_surface_get_format(void *); | |
744 extern (C) char * cairo_image_surface_get_data(void *); | |
745 extern (C) void * cairo_image_surface_create_for_data(char *, int, int, int, int); | |
746 extern (C) void * cairo_image_surface_create(int, int, int); | |
747 extern (C) void cairo_surface_set_fallback_resolution(void *, double, double); | |
748 extern (C) void cairo_surface_get_device_offset(void *, double *, double *); | |
749 extern (C) void cairo_surface_set_device_offset(void *, double, double); | |
750 extern (C) void cairo_surface_mark_dirty_rectangle(void *, int, int, int, int); | |
751 extern (C) void cairo_surface_mark_dirty(void *); | |
752 extern (C) void cairo_surface_flush(void *); | |
753 extern (C) void cairo_surface_get_font_options(void *, void *); | |
754 extern (C) int cairo_surface_set_user_data(void *, _cairo_user_data_key *, void *, _BCD_func__481); | |
755 extern (C) void * cairo_surface_get_user_data(void *, _cairo_user_data_key *); | |
756 extern (C) int cairo_surface_write_to_png_stream(void *, _BCD_func__477, void *); | |
757 extern (C) int cairo_surface_write_to_png(void *, char *); | |
758 extern (C) int cairo_surface_get_content(void *); | |
759 extern (C) int cairo_surface_get_type(void *); | |
760 extern (C) int cairo_surface_status(void *); | |
761 extern (C) uint cairo_surface_get_reference_count(void *); | |
762 extern (C) void cairo_surface_destroy(void *); | |
763 extern (C) void cairo_surface_finish(void *); | |
764 extern (C) void * cairo_surface_reference(void *); | |
765 extern (C) void * cairo_surface_create_similar(void *, int, int, int); | |
766 extern (C) char * cairo_status_to_string(int); | |
767 extern (C) int cairo_status(void *); | |
768 extern (C) void cairo_path_destroy(cairo_path *); | |
769 extern (C) void cairo_append_path(void *, cairo_path *); | |
770 extern (C) cairo_path * cairo_copy_path_flat(void *); | |
771 extern (C) cairo_path * cairo_copy_path(void *); | |
772 extern (C) void * cairo_get_group_target(void *); | |
773 extern (C) void * cairo_get_target(void *); | |
774 extern (C) void cairo_get_matrix(void *, _cairo_matrix *); | |
775 extern (C) void cairo_get_dash(void *, double *, double *); | |
776 extern (C) int cairo_get_dash_count(void *); | |
777 extern (C) double cairo_get_miter_limit(void *); | |
778 extern (C) int cairo_get_line_join(void *); | |
779 extern (C) int cairo_get_line_cap(void *); | |
780 extern (C) double cairo_get_line_width(void *); | |
781 extern (C) int cairo_get_fill_rule(void *); | |
782 extern (C) void cairo_get_current_point(void *, double *, double *); | |
783 extern (C) int cairo_get_antialias(void *); | |
784 extern (C) double cairo_get_tolerance(void *); | |
785 extern (C) void * cairo_get_source(void *); | |
786 extern (C) int cairo_get_operator(void *); | |
787 extern (C) void cairo_scaled_font_get_font_options(void *, void *); | |
788 extern (C) void cairo_scaled_font_get_ctm(void *, _cairo_matrix *); | |
789 extern (C) void cairo_scaled_font_get_font_matrix(void *, _cairo_matrix *); | |
790 extern (C) void * cairo_scaled_font_get_font_face(void *); | |
791 extern (C) void cairo_scaled_font_glyph_extents(void *, cairo_glyph_t *, int, cairo_text_extents_t *); | |
792 extern (C) void cairo_scaled_font_text_extents(void *, char *, cairo_text_extents_t *); | |
793 extern (C) void cairo_scaled_font_extents(void *, cairo_font_extents_t *); | |
794 extern (C) int cairo_scaled_font_set_user_data(void *, _cairo_user_data_key *, void *, _BCD_func__481); | |
795 extern (C) void * cairo_scaled_font_get_user_data(void *, _cairo_user_data_key *); | |
796 extern (C) int cairo_scaled_font_get_type(void *); | |
797 extern (C) int cairo_scaled_font_status(void *); | |
798 extern (C) uint cairo_scaled_font_get_reference_count(void *); | |
799 extern (C) void cairo_scaled_font_destroy(void *); | |
800 extern (C) void * cairo_scaled_font_reference(void *); | |
801 extern (C) void * cairo_scaled_font_create(void *, _cairo_matrix *, _cairo_matrix *, void *); | |
802 extern (C) int cairo_font_face_set_user_data(void *, _cairo_user_data_key *, void *, _BCD_func__481); | |
803 extern (C) void * cairo_font_face_get_user_data(void *, _cairo_user_data_key *); | |
804 extern (C) int cairo_font_face_get_type(void *); | |
805 extern (C) int cairo_font_face_status(void *); | |
806 extern (C) uint cairo_font_face_get_reference_count(void *); | |
807 extern (C) void cairo_font_face_destroy(void *); | |
808 extern (C) void * cairo_font_face_reference(void *); | |
809 extern (C) void cairo_font_extents(void *, cairo_font_extents_t *); | |
810 extern (C) void cairo_glyph_extents(void *, cairo_glyph_t *, int, cairo_text_extents_t *); | |
811 extern (C) void cairo_text_extents(void *, char *, cairo_text_extents_t *); | |
812 extern (C) void cairo_glyph_path(void *, cairo_glyph_t *, int); | |
813 extern (C) void cairo_text_path(void *, char *); | |
814 extern (C) void cairo_show_glyphs(void *, cairo_glyph_t *, int); | |
815 extern (C) void cairo_show_text(void *, char *); | |
816 extern (C) void * cairo_get_scaled_font(void *); | |
817 extern (C) void cairo_set_scaled_font(void *, void *); | |
818 extern (C) void * cairo_get_font_face(void *); | |
819 extern (C) void cairo_set_font_face(void *, void *); | |
820 extern (C) void cairo_get_font_options(void *, void *); | |
821 extern (C) void cairo_set_font_options(void *, void *); | |
822 extern (C) void cairo_get_font_matrix(void *, _cairo_matrix *); | |
823 extern (C) void cairo_set_font_matrix(void *, _cairo_matrix *); | |
824 extern (C) void cairo_set_font_size(void *, double); | |
54 | 825 extern (C) void cairo_select_font_face(void *, in char *, int, int); |
25 | 826 extern (C) int cairo_font_options_get_hint_metrics(void *); |
827 extern (C) void cairo_font_options_set_hint_metrics(void *, int); | |
828 extern (C) int cairo_font_options_get_hint_style(void *); | |
829 extern (C) void cairo_font_options_set_hint_style(void *, int); | |
830 extern (C) int cairo_font_options_get_subpixel_order(void *); | |
831 extern (C) void cairo_font_options_set_subpixel_order(void *, int); | |
832 extern (C) int cairo_font_options_get_antialias(void *); | |
833 extern (C) void cairo_font_options_set_antialias(void *, int); | |
834 extern (C) uint cairo_font_options_hash(void *); | |
835 extern (C) int cairo_font_options_equal(void *, void *); | |
836 extern (C) void cairo_font_options_merge(void *, void *); | |
837 extern (C) int cairo_font_options_status(void *); | |
838 extern (C) void cairo_font_options_destroy(void *); | |
839 extern (C) void * cairo_font_options_copy(void *); | |
840 extern (C) void * cairo_font_options_create(); | |
841 extern (C) void cairo_rectangle_list_destroy(_cairo_rectangle_list *); | |
842 extern (C) _cairo_rectangle_list * cairo_copy_clip_rectangle_list(void *); | |
843 extern (C) void cairo_clip_extents(void *, double *, double *, double *, double *); | |
844 extern (C) void cairo_clip_preserve(void *); | |
845 extern (C) void cairo_clip(void *); | |
846 extern (C) void cairo_reset_clip(void *); | |
847 extern (C) void cairo_fill_extents(void *, double *, double *, double *, double *); | |
848 extern (C) void cairo_stroke_extents(void *, double *, double *, double *, double *); | |
849 extern (C) int cairo_in_fill(void *, double, double); | |
850 extern (C) int cairo_in_stroke(void *, double, double); | |
851 extern (C) void cairo_show_page(void *); | |
852 extern (C) void cairo_copy_page(void *); | |
853 extern (C) void cairo_fill_preserve(void *); | |
854 extern (C) void cairo_fill(void *); | |
855 extern (C) void cairo_stroke_preserve(void *); | |
856 extern (C) void cairo_stroke(void *); | |
857 extern (C) void cairo_mask_surface(void *, void *, double, double); | |
858 extern (C) void cairo_mask(void *, void *); | |
859 extern (C) void cairo_paint_with_alpha(void *, double); | |
860 extern (C) void cairo_paint(void *); | |
861 extern (C) void cairo_close_path(void *); | |
862 extern (C) void cairo_rectangle(void *, double, double, double, double); | |
863 extern (C) void cairo_rel_curve_to(void *, double, double, double, double, double, double); | |
864 extern (C) void cairo_rel_line_to(void *, double, double); | |
865 extern (C) void cairo_rel_move_to(void *, double, double); | |
866 extern (C) void cairo_arc_negative(void *, double, double, double, double, double); | |
867 extern (C) void cairo_arc(void *, double, double, double, double, double); | |
868 extern (C) void cairo_curve_to(void *, double, double, double, double, double, double); | |
869 extern (C) void cairo_line_to(void *, double, double); | |
870 extern (C) void cairo_new_sub_path(void *); | |
871 extern (C) void cairo_move_to(void *, double, double); | |
872 extern (C) void cairo_new_path(void *); | |
873 extern (C) void cairo_device_to_user_distance(void *, double *, double *); | |
874 extern (C) void cairo_device_to_user(void *, double *, double *); | |
875 extern (C) void cairo_user_to_device_distance(void *, double *, double *); | |
876 extern (C) void cairo_user_to_device(void *, double *, double *); | |
877 extern (C) void cairo_identity_matrix(void *); | |
878 extern (C) void cairo_set_matrix(void *, _cairo_matrix *); | |
879 extern (C) void cairo_transform(void *, _cairo_matrix *); | |
880 extern (C) void cairo_rotate(void *, double); | |
881 extern (C) void cairo_scale(void *, double, double); | |
882 extern (C) void cairo_translate(void *, double, double); | |
883 extern (C) void cairo_set_miter_limit(void *, double); | |
884 extern (C) void cairo_set_dash(void *, double *, int, double); | |
885 extern (C) void cairo_set_line_join(void *, int); | |
886 extern (C) void cairo_set_line_cap(void *, int); | |
887 extern (C) void cairo_set_line_width(void *, double); | |
888 extern (C) void cairo_set_fill_rule(void *, int); | |
889 extern (C) void cairo_set_antialias(void *, int); | |
890 extern (C) void cairo_set_tolerance(void *, double); | |
891 extern (C) void cairo_set_source_surface(void *, void *, double, double); | |
892 extern (C) void cairo_set_source_rgba(void *, double, double, double, double); | |
893 extern (C) void cairo_set_source_rgb(void *, double, double, double); | |
894 extern (C) void cairo_set_source(void *, void *); | |
895 extern (C) void cairo_set_operator(void *, int); | |
896 extern (C) void cairo_pop_group_to_source(void *); | |
897 extern (C) void * cairo_pop_group(void *); | |
898 extern (C) void cairo_push_group_with_content(void *, int); | |
899 extern (C) void cairo_push_group(void *); | |
900 extern (C) void cairo_restore(void *); | |
901 extern (C) void cairo_save(void *); | |
902 extern (C) int cairo_set_user_data(void *, _cairo_user_data_key *, void *, _BCD_func__481); | |
903 extern (C) void * cairo_get_user_data(void *, _cairo_user_data_key *); | |
904 extern (C) uint cairo_get_reference_count(void *); | |
905 extern (C) void cairo_destroy(void *); | |
906 extern (C) void * cairo_reference(void *); | |
907 extern (C) void * cairo_create(void *); | |
908 extern (C) char * cairo_version_string(); | |
909 extern (C) int cairo_version(); | |
910 } // version(DYNLINK) |