Matrix class done
[phpCairo.git] / phpCairo / php_phpCairo.h
bloba1151f8a0d85cde7a25fc98ff77e35371560c976
1 /*
2 +----------------------------------------------------------------------+
3 | This source file is subject to version 3.0 of the PHP license, |
4 | that is bundled with this package in the file LICENSE, and is |
5 | available through the world-wide-web at the following url: |
6 | http://www.php.net/license/3_0.txt. |
7 | If you did not receive a copy of the PHP license and are unable to |
8 | obtain it through the world-wide-web, please send a note to |
9 | license@php.net so we can mail you a copy immediately. |
10 +----------------------------------------------------------------------+
11 | Authors: Akshat Gupta <g.akshat@gmail.com> |
12 +----------------------------------------------------------------------+
15 /* $ Id: $ */
17 #ifndef PHP_PHPCAIRO_H
18 #define PHP_PHPCAIRO_H
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
24 #ifdef HAVE_CONFIG_H
25 #include "config.h"
26 #endif
28 #include <php.h>
30 #ifdef HAVE_PHPCAIRO
32 #include <php_ini.h>
33 #include <SAPI.h>
34 #include <ext/standard/info.h>
35 #include <Zend/zend_extensions.h>
36 #ifdef __cplusplus
37 } // extern "C"
38 #endif
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
43 extern zend_module_entry phpCairo_module_entry;
44 #define phpext_phpCairo_ptr &phpCairo_module_entry
46 #ifdef PHP_WIN32
47 #define PHP_PHPCAIRO_API __declspec(dllexport)
48 #else
49 #define PHP_PHPCAIRO_API
50 #endif
52 PHP_MINIT_FUNCTION(phpCairo);
53 PHP_MSHUTDOWN_FUNCTION(phpCairo);
54 PHP_RINIT_FUNCTION(phpCairo);
55 PHP_RSHUTDOWN_FUNCTION(phpCairo);
56 PHP_MINFO_FUNCTION(phpCairo);
58 #ifdef ZTS
59 #include "TSRM.h"
60 #endif
62 #define FREE_RESOURCE(resource) zend_list_delete(Z_LVAL_P(resource))
64 #define PROP_GET_LONG(name) Z_LVAL_P(zend_read_property(_this_ce, _this_zval, #name, strlen(#name), 1 TSRMLS_CC))
65 #define PROP_SET_LONG(name, l) zend_update_property_long(_this_ce, _this_zval, #name, strlen(#name), l TSRMLS_CC)
67 #define PROP_GET_DOUBLE(name) Z_DVAL_P(zend_read_property(_this_ce, _this_zval, #name, strlen(#name), 1 TSRMLS_CC))
68 #define PROP_SET_DOUBLE(name, d) zend_update_property_double(_this_ce, _this_zval, #name, strlen(#name), d TSRMLS_CC)
70 #define PROP_GET_STRING(name) Z_STRVAL_P(zend_read_property(_this_ce, _this_zval, #name, strlen(#name), 1 TSRMLS_CC))
71 #define PROP_GET_STRLEN(name) Z_STRLEN_P(zend_read_property(_this_ce, _this_zval, #name, strlen(#name), 1 TSRMLS_CC))
72 #define PROP_SET_STRING(name, s) zend_update_property_string(_this_ce, _this_zval, #name, strlen(#name), s TSRMLS_CC)
73 #define PROP_SET_STRINGL(name, s, l) zend_update_property_stringl(_this_ce, _this_zval, #name, strlen(#name), s, l TSRMLS_CC)
76 PHP_FUNCTION(cairo_version);
77 #if (PHP_MAJOR_VERSION >= 5)
78 ZEND_BEGIN_ARG_INFO_EX(cairo_version_arg_info, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
79 ZEND_END_ARG_INFO()
80 #else /* PHP 4.x */
81 #define cairo_version_arg_info NULL
82 #endif
84 PHP_FUNCTION(cairo_version_string);
85 #if (PHP_MAJOR_VERSION >= 5)
86 ZEND_BEGIN_ARG_INFO_EX(cairo_version_string_arg_info, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
87 ZEND_END_ARG_INFO()
88 #else /* PHP 4.x */
89 #define cairo_version_string_arg_info NULL
90 #endif
92 PHP_METHOD(CairoContext, append_path);
93 #if (PHP_MAJOR_VERSION >= 5)
94 ZEND_BEGIN_ARG_INFO_EX(CairoContext__append_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
95 ZEND_ARG_OBJ_INFO(0, p, , 1)
96 ZEND_END_ARG_INFO()
97 #else /* PHP 4.x */
98 #define CairoContext__append_path_args NULL
99 #endif
101 PHP_METHOD(CairoContext, arc);
102 #if (PHP_MAJOR_VERSION >= 5)
103 ZEND_BEGIN_ARG_INFO_EX(CairoContext__arc_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 5)
104 ZEND_ARG_INFO(0, xc)
105 ZEND_ARG_INFO(0, yc)
106 ZEND_ARG_INFO(0, radius)
107 ZEND_ARG_INFO(0, angle1)
108 ZEND_ARG_INFO(0, angle2)
109 ZEND_END_ARG_INFO()
110 #else /* PHP 4.x */
111 #define CairoContext__arc_args NULL
112 #endif
114 PHP_METHOD(CairoContext, arc_negative);
115 #if (PHP_MAJOR_VERSION >= 5)
116 ZEND_BEGIN_ARG_INFO_EX(CairoContext__arc_negative_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 5)
117 ZEND_ARG_INFO(0, xc)
118 ZEND_ARG_INFO(0, yc)
119 ZEND_ARG_INFO(0, radius)
120 ZEND_ARG_INFO(0, angle1)
121 ZEND_ARG_INFO(0, angle2)
122 ZEND_END_ARG_INFO()
123 #else /* PHP 4.x */
124 #define CairoContext__arc_negative_args NULL
125 #endif
127 PHP_METHOD(CairoContext, clip);
128 #if (PHP_MAJOR_VERSION >= 5)
129 ZEND_BEGIN_ARG_INFO_EX(CairoContext__clip_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
130 ZEND_END_ARG_INFO()
131 #else /* PHP 4.x */
132 #define CairoContext__clip_args NULL
133 #endif
135 PHP_METHOD(CairoContext, clip_extents);
136 #if (PHP_MAJOR_VERSION >= 5)
137 ZEND_BEGIN_ARG_INFO_EX(CairoContext__clip_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
138 ZEND_END_ARG_INFO()
139 #else /* PHP 4.x */
140 #define CairoContext__clip_extents_args NULL
141 #endif
143 PHP_METHOD(CairoContext, clip_preserve);
144 #if (PHP_MAJOR_VERSION >= 5)
145 ZEND_BEGIN_ARG_INFO_EX(CairoContext__clip_preserve_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
146 ZEND_END_ARG_INFO()
147 #else /* PHP 4.x */
148 #define CairoContext__clip_preserve_args NULL
149 #endif
151 PHP_METHOD(CairoContext, close_path);
152 #if (PHP_MAJOR_VERSION >= 5)
153 ZEND_BEGIN_ARG_INFO_EX(CairoContext__close_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
154 ZEND_END_ARG_INFO()
155 #else /* PHP 4.x */
156 #define CairoContext__close_path_args NULL
157 #endif
159 PHP_METHOD(CairoContext, copy_clip_rectangle_list);
160 #if (PHP_MAJOR_VERSION >= 5)
161 ZEND_BEGIN_ARG_INFO_EX(CairoContext__copy_clip_rectangle_list_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
162 ZEND_END_ARG_INFO()
163 #else /* PHP 4.x */
164 #define CairoContext__copy_clip_rectangle_list_args NULL
165 #endif
167 PHP_METHOD(CairoContext, copy_page);
168 #if (PHP_MAJOR_VERSION >= 5)
169 ZEND_BEGIN_ARG_INFO_EX(CairoContext__copy_page_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
170 ZEND_END_ARG_INFO()
171 #else /* PHP 4.x */
172 #define CairoContext__copy_page_args NULL
173 #endif
175 PHP_METHOD(CairoContext, copy_path);
176 #if (PHP_MAJOR_VERSION >= 5)
177 ZEND_BEGIN_ARG_INFO_EX(CairoContext__copy_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
178 ZEND_END_ARG_INFO()
179 #else /* PHP 4.x */
180 #define CairoContext__copy_path_args NULL
181 #endif
183 PHP_METHOD(CairoContext, copy_path_flat);
184 #if (PHP_MAJOR_VERSION >= 5)
185 ZEND_BEGIN_ARG_INFO_EX(CairoContext__copy_path_flat_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
186 ZEND_END_ARG_INFO()
187 #else /* PHP 4.x */
188 #define CairoContext__copy_path_flat_args NULL
189 #endif
191 PHP_METHOD(CairoContext, curve_to);
192 #if (PHP_MAJOR_VERSION >= 5)
193 ZEND_BEGIN_ARG_INFO_EX(CairoContext__curve_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 6)
194 ZEND_ARG_INFO(0, x1)
195 ZEND_ARG_INFO(0, y1)
196 ZEND_ARG_INFO(0, x2)
197 ZEND_ARG_INFO(0, y2)
198 ZEND_ARG_INFO(0, x3)
199 ZEND_ARG_INFO(0, y3)
200 ZEND_END_ARG_INFO()
201 #else /* PHP 4.x */
202 #define CairoContext__curve_to_args NULL
203 #endif
205 PHP_METHOD(CairoContext, device_to_user);
206 #if (PHP_MAJOR_VERSION >= 5)
207 ZEND_BEGIN_ARG_INFO_EX(CairoContext__device_to_user_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
208 ZEND_ARG_INFO(0, x)
209 ZEND_ARG_INFO(0, y)
210 ZEND_END_ARG_INFO()
211 #else /* PHP 4.x */
212 #define CairoContext__device_to_user_args NULL
213 #endif
215 PHP_METHOD(CairoContext, device_to_user_distance);
216 #if (PHP_MAJOR_VERSION >= 5)
217 ZEND_BEGIN_ARG_INFO_EX(CairoContext__device_to_user_distance_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
218 ZEND_ARG_INFO(0, x)
219 ZEND_ARG_INFO(0, y)
220 ZEND_END_ARG_INFO()
221 #else /* PHP 4.x */
222 #define CairoContext__device_to_user_distance_args NULL
223 #endif
225 PHP_METHOD(CairoContext, fill);
226 #if (PHP_MAJOR_VERSION >= 5)
227 ZEND_BEGIN_ARG_INFO_EX(CairoContext__fill_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
228 ZEND_END_ARG_INFO()
229 #else /* PHP 4.x */
230 #define CairoContext__fill_args NULL
231 #endif
233 PHP_METHOD(CairoContext, fill_extents);
234 #if (PHP_MAJOR_VERSION >= 5)
235 ZEND_BEGIN_ARG_INFO_EX(CairoContext__fill_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
236 ZEND_END_ARG_INFO()
237 #else /* PHP 4.x */
238 #define CairoContext__fill_extents_args NULL
239 #endif
241 PHP_METHOD(CairoContext, fill_preserve);
242 #if (PHP_MAJOR_VERSION >= 5)
243 ZEND_BEGIN_ARG_INFO_EX(CairoContext__fill_preserve_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
244 ZEND_END_ARG_INFO()
245 #else /* PHP 4.x */
246 #define CairoContext__fill_preserve_args NULL
247 #endif
249 PHP_METHOD(CairoContext, font_extents);
250 #if (PHP_MAJOR_VERSION >= 5)
251 ZEND_BEGIN_ARG_INFO_EX(CairoContext__font_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
252 ZEND_END_ARG_INFO()
253 #else /* PHP 4.x */
254 #define CairoContext__font_extents_args NULL
255 #endif
257 PHP_METHOD(CairoContext, get_antialias);
258 #if (PHP_MAJOR_VERSION >= 5)
259 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_antialias_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
260 ZEND_END_ARG_INFO()
261 #else /* PHP 4.x */
262 #define CairoContext__get_antialias_args NULL
263 #endif
265 PHP_METHOD(CairoContext, get_current_point);
266 #if (PHP_MAJOR_VERSION >= 5)
267 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_current_point_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
268 ZEND_END_ARG_INFO()
269 #else /* PHP 4.x */
270 #define CairoContext__get_current_point_args NULL
271 #endif
273 PHP_METHOD(CairoContext, get_dash);
274 #if (PHP_MAJOR_VERSION >= 5)
275 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_dash_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
276 ZEND_END_ARG_INFO()
277 #else /* PHP 4.x */
278 #define CairoContext__get_dash_args NULL
279 #endif
281 PHP_METHOD(CairoContext, get_dash_count);
282 #if (PHP_MAJOR_VERSION >= 5)
283 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_dash_count_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
284 ZEND_END_ARG_INFO()
285 #else /* PHP 4.x */
286 #define CairoContext__get_dash_count_args NULL
287 #endif
289 PHP_METHOD(CairoContext, get_fill_rule);
290 #if (PHP_MAJOR_VERSION >= 5)
291 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_fill_rule_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
292 ZEND_END_ARG_INFO()
293 #else /* PHP 4.x */
294 #define CairoContext__get_fill_rule_args NULL
295 #endif
297 PHP_METHOD(CairoContext, get_font_face);
298 #if (PHP_MAJOR_VERSION >= 5)
299 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_font_face_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
300 ZEND_END_ARG_INFO()
301 #else /* PHP 4.x */
302 #define CairoContext__get_font_face_args NULL
303 #endif
305 PHP_METHOD(CairoContext, get_font_matrix);
306 #if (PHP_MAJOR_VERSION >= 5)
307 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_font_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
308 ZEND_END_ARG_INFO()
309 #else /* PHP 4.x */
310 #define CairoContext__get_font_matrix_args NULL
311 #endif
313 PHP_METHOD(CairoContext, get_font_options);
314 #if (PHP_MAJOR_VERSION >= 5)
315 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_font_options_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
316 ZEND_END_ARG_INFO()
317 #else /* PHP 4.x */
318 #define CairoContext__get_font_options_args NULL
319 #endif
321 PHP_METHOD(CairoContext, get_group_target);
322 #if (PHP_MAJOR_VERSION >= 5)
323 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_group_target_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
324 ZEND_END_ARG_INFO()
325 #else /* PHP 4.x */
326 #define CairoContext__get_group_target_args NULL
327 #endif
329 PHP_METHOD(CairoContext, get_line_cap);
330 #if (PHP_MAJOR_VERSION >= 5)
331 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_line_cap_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
332 ZEND_END_ARG_INFO()
333 #else /* PHP 4.x */
334 #define CairoContext__get_line_cap_args NULL
335 #endif
337 PHP_METHOD(CairoContext, get_line_join);
338 #if (PHP_MAJOR_VERSION >= 5)
339 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_line_join_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
340 ZEND_END_ARG_INFO()
341 #else /* PHP 4.x */
342 #define CairoContext__get_line_join_args NULL
343 #endif
345 PHP_METHOD(CairoContext, get_line_width);
346 #if (PHP_MAJOR_VERSION >= 5)
347 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_line_width_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
348 ZEND_END_ARG_INFO()
349 #else /* PHP 4.x */
350 #define CairoContext__get_line_width_args NULL
351 #endif
353 PHP_METHOD(CairoContext, get_matrix);
354 #if (PHP_MAJOR_VERSION >= 5)
355 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
356 ZEND_END_ARG_INFO()
357 #else /* PHP 4.x */
358 #define CairoContext__get_matrix_args NULL
359 #endif
361 PHP_METHOD(CairoContext, get_matrix_limit);
362 #if (PHP_MAJOR_VERSION >= 5)
363 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_matrix_limit_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
364 ZEND_END_ARG_INFO()
365 #else /* PHP 4.x */
366 #define CairoContext__get_matrix_limit_args NULL
367 #endif
369 PHP_METHOD(CairoContext, get_operator);
370 #if (PHP_MAJOR_VERSION >= 5)
371 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_operator_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
372 ZEND_END_ARG_INFO()
373 #else /* PHP 4.x */
374 #define CairoContext__get_operator_args NULL
375 #endif
377 PHP_METHOD(CairoContext, get_scaled_font);
378 #if (PHP_MAJOR_VERSION >= 5)
379 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_scaled_font_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
380 ZEND_END_ARG_INFO()
381 #else /* PHP 4.x */
382 #define CairoContext__get_scaled_font_args NULL
383 #endif
385 PHP_METHOD(CairoContext, get_source);
386 #if (PHP_MAJOR_VERSION >= 5)
387 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_source_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
388 ZEND_END_ARG_INFO()
389 #else /* PHP 4.x */
390 #define CairoContext__get_source_args NULL
391 #endif
393 PHP_METHOD(CairoContext, get_target);
394 #if (PHP_MAJOR_VERSION >= 5)
395 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_target_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
396 ZEND_END_ARG_INFO()
397 #else /* PHP 4.x */
398 #define CairoContext__get_target_args NULL
399 #endif
401 PHP_METHOD(CairoContext, get_tolerance);
402 #if (PHP_MAJOR_VERSION >= 5)
403 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_tolerance_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
404 ZEND_END_ARG_INFO()
405 #else /* PHP 4.x */
406 #define CairoContext__get_tolerance_args NULL
407 #endif
409 PHP_METHOD(CairoContext, glyph_extents);
410 #if (PHP_MAJOR_VERSION >= 5)
411 ZEND_BEGIN_ARG_INFO_EX(CairoContext__glyph_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
412 ZEND_ARG_OBJ_INFO(0, obj, , 1)
413 ZEND_ARG_INFO(0, num)
414 ZEND_END_ARG_INFO()
415 #else /* PHP 4.x */
416 #define CairoContext__glyph_extents_args NULL
417 #endif
419 PHP_METHOD(CairoContext, glyph_path);
420 #if (PHP_MAJOR_VERSION >= 5)
421 ZEND_BEGIN_ARG_INFO_EX(CairoContext__glyph_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
422 ZEND_ARG_OBJ_INFO(0, obh, , 1)
423 ZEND_ARG_INFO(0, num)
424 ZEND_END_ARG_INFO()
425 #else /* PHP 4.x */
426 #define CairoContext__glyph_path_args NULL
427 #endif
429 PHP_METHOD(CairoContext, has_current_point);
430 #if (PHP_MAJOR_VERSION >= 5)
431 ZEND_BEGIN_ARG_INFO_EX(CairoContext__has_current_point_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
432 ZEND_END_ARG_INFO()
433 #else /* PHP 4.x */
434 #define CairoContext__has_current_point_args NULL
435 #endif
437 PHP_METHOD(CairoContext, identity_matrix);
438 #if (PHP_MAJOR_VERSION >= 5)
439 ZEND_BEGIN_ARG_INFO_EX(CairoContext__identity_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
440 ZEND_END_ARG_INFO()
441 #else /* PHP 4.x */
442 #define CairoContext__identity_matrix_args NULL
443 #endif
445 PHP_METHOD(CairoContext, in_fill);
446 #if (PHP_MAJOR_VERSION >= 5)
447 ZEND_BEGIN_ARG_INFO_EX(CairoContext__in_fill_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
448 ZEND_ARG_INFO(0, x)
449 ZEND_ARG_INFO(0, y)
450 ZEND_END_ARG_INFO()
451 #else /* PHP 4.x */
452 #define CairoContext__in_fill_args NULL
453 #endif
455 PHP_METHOD(CairoContext, in_stroke);
456 #if (PHP_MAJOR_VERSION >= 5)
457 ZEND_BEGIN_ARG_INFO_EX(CairoContext__in_stroke_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
458 ZEND_ARG_INFO(0, x)
459 ZEND_ARG_INFO(0, y)
460 ZEND_END_ARG_INFO()
461 #else /* PHP 4.x */
462 #define CairoContext__in_stroke_args NULL
463 #endif
465 PHP_METHOD(CairoContext, line_to);
466 #if (PHP_MAJOR_VERSION >= 5)
467 ZEND_BEGIN_ARG_INFO_EX(CairoContext__line_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
468 ZEND_ARG_INFO(0, x)
469 ZEND_ARG_INFO(0, y)
470 ZEND_END_ARG_INFO()
471 #else /* PHP 4.x */
472 #define CairoContext__line_to_args NULL
473 #endif
475 PHP_METHOD(CairoContext, mask);
476 #if (PHP_MAJOR_VERSION >= 5)
477 ZEND_BEGIN_ARG_INFO_EX(CairoContext__mask_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
478 ZEND_ARG_OBJ_INFO(0, p, , 1)
479 ZEND_END_ARG_INFO()
480 #else /* PHP 4.x */
481 #define CairoContext__mask_args NULL
482 #endif
484 PHP_METHOD(CairoContext, mask_surface);
485 #if (PHP_MAJOR_VERSION >= 5)
486 ZEND_BEGIN_ARG_INFO_EX(CairoContext__mask_surface_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
487 ZEND_ARG_OBJ_INFO(0, s, , 1)
488 ZEND_ARG_INFO(0, surface_x)
489 ZEND_ARG_INFO(0, surface_y)
490 ZEND_END_ARG_INFO()
491 #else /* PHP 4.x */
492 #define CairoContext__mask_surface_args NULL
493 #endif
495 PHP_METHOD(CairoContext, move_to);
496 #if (PHP_MAJOR_VERSION >= 5)
497 ZEND_BEGIN_ARG_INFO_EX(CairoContext__move_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
498 ZEND_ARG_INFO(0, x)
499 ZEND_ARG_INFO(0, y)
500 ZEND_END_ARG_INFO()
501 #else /* PHP 4.x */
502 #define CairoContext__move_to_args NULL
503 #endif
505 PHP_METHOD(CairoContext, new_path);
506 #if (PHP_MAJOR_VERSION >= 5)
507 ZEND_BEGIN_ARG_INFO_EX(CairoContext__new_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
508 ZEND_END_ARG_INFO()
509 #else /* PHP 4.x */
510 #define CairoContext__new_path_args NULL
511 #endif
513 PHP_METHOD(CairoContext, new_sub_path);
514 #if (PHP_MAJOR_VERSION >= 5)
515 ZEND_BEGIN_ARG_INFO_EX(CairoContext__new_sub_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
516 ZEND_END_ARG_INFO()
517 #else /* PHP 4.x */
518 #define CairoContext__new_sub_path_args NULL
519 #endif
521 PHP_METHOD(CairoContext, paint);
522 #if (PHP_MAJOR_VERSION >= 5)
523 ZEND_BEGIN_ARG_INFO_EX(CairoContext__paint_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
524 ZEND_END_ARG_INFO()
525 #else /* PHP 4.x */
526 #define CairoContext__paint_args NULL
527 #endif
529 PHP_METHOD(CairoContext, paint_with_alpha);
530 #if (PHP_MAJOR_VERSION >= 5)
531 ZEND_BEGIN_ARG_INFO_EX(CairoContext__paint_with_alpha_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
532 ZEND_ARG_INFO(0, alpha)
533 ZEND_END_ARG_INFO()
534 #else /* PHP 4.x */
535 #define CairoContext__paint_with_alpha_args NULL
536 #endif
538 PHP_METHOD(CairoContext, path_extents);
539 #if (PHP_MAJOR_VERSION >= 5)
540 ZEND_BEGIN_ARG_INFO_EX(CairoContext__path_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
541 ZEND_ARG_OBJ_INFO(0, path, , 1)
542 ZEND_END_ARG_INFO()
543 #else /* PHP 4.x */
544 #define CairoContext__path_extents_args NULL
545 #endif
547 PHP_METHOD(CairoContext, pop_group);
548 #if (PHP_MAJOR_VERSION >= 5)
549 ZEND_BEGIN_ARG_INFO_EX(CairoContext__pop_group_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
550 ZEND_END_ARG_INFO()
551 #else /* PHP 4.x */
552 #define CairoContext__pop_group_args NULL
553 #endif
555 PHP_METHOD(CairoContext, pop_group_to_source);
556 #if (PHP_MAJOR_VERSION >= 5)
557 ZEND_BEGIN_ARG_INFO_EX(CairoContext__pop_group_to_source_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
558 ZEND_END_ARG_INFO()
559 #else /* PHP 4.x */
560 #define CairoContext__pop_group_to_source_args NULL
561 #endif
563 PHP_METHOD(CairoContext, push_group);
564 #if (PHP_MAJOR_VERSION >= 5)
565 ZEND_BEGIN_ARG_INFO_EX(CairoContext__push_group_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
566 ZEND_END_ARG_INFO()
567 #else /* PHP 4.x */
568 #define CairoContext__push_group_args NULL
569 #endif
571 PHP_METHOD(CairoContext, push_group_with_content);
572 #if (PHP_MAJOR_VERSION >= 5)
573 ZEND_BEGIN_ARG_INFO_EX(CairoContext__push_group_with_content_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
574 ZEND_ARG_INFO(0, content)
575 ZEND_END_ARG_INFO()
576 #else /* PHP 4.x */
577 #define CairoContext__push_group_with_content_args NULL
578 #endif
580 PHP_METHOD(CairoContext, rectangle);
581 #if (PHP_MAJOR_VERSION >= 5)
582 ZEND_BEGIN_ARG_INFO_EX(CairoContext__rectangle_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 4)
583 ZEND_ARG_INFO(0, x)
584 ZEND_ARG_INFO(0, y)
585 ZEND_ARG_INFO(0, width)
586 ZEND_ARG_INFO(0, height)
587 ZEND_END_ARG_INFO()
588 #else /* PHP 4.x */
589 #define CairoContext__rectangle_args NULL
590 #endif
592 PHP_METHOD(CairoContext, rel_curve_to);
593 #if (PHP_MAJOR_VERSION >= 5)
594 ZEND_BEGIN_ARG_INFO_EX(CairoContext__rel_curve_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 6)
595 ZEND_ARG_INFO(0, x1)
596 ZEND_ARG_INFO(0, y1)
597 ZEND_ARG_INFO(0, x2)
598 ZEND_ARG_INFO(0, y2)
599 ZEND_ARG_INFO(0, x3)
600 ZEND_ARG_INFO(0, y3)
601 ZEND_END_ARG_INFO()
602 #else /* PHP 4.x */
603 #define CairoContext__rel_curve_to_args NULL
604 #endif
606 PHP_METHOD(CairoContext, rel_line_to);
607 #if (PHP_MAJOR_VERSION >= 5)
608 ZEND_BEGIN_ARG_INFO_EX(CairoContext__rel_line_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
609 ZEND_ARG_INFO(0, x)
610 ZEND_ARG_INFO(0, y)
611 ZEND_END_ARG_INFO()
612 #else /* PHP 4.x */
613 #define CairoContext__rel_line_to_args NULL
614 #endif
616 PHP_METHOD(CairoContext, rel_move_to);
617 #if (PHP_MAJOR_VERSION >= 5)
618 ZEND_BEGIN_ARG_INFO_EX(CairoContext__rel_move_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
619 ZEND_ARG_INFO(0, x)
620 ZEND_ARG_INFO(0, y)
621 ZEND_END_ARG_INFO()
622 #else /* PHP 4.x */
623 #define CairoContext__rel_move_to_args NULL
624 #endif
626 PHP_METHOD(CairoContext, reset_clip);
627 #if (PHP_MAJOR_VERSION >= 5)
628 ZEND_BEGIN_ARG_INFO_EX(CairoContext__reset_clip_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
629 ZEND_END_ARG_INFO()
630 #else /* PHP 4.x */
631 #define CairoContext__reset_clip_args NULL
632 #endif
634 PHP_METHOD(CairoContext, restore);
635 #if (PHP_MAJOR_VERSION >= 5)
636 ZEND_BEGIN_ARG_INFO_EX(CairoContext__restore_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
637 ZEND_END_ARG_INFO()
638 #else /* PHP 4.x */
639 #define CairoContext__restore_args NULL
640 #endif
642 PHP_METHOD(CairoContext, rotate);
643 #if (PHP_MAJOR_VERSION >= 5)
644 ZEND_BEGIN_ARG_INFO_EX(CairoContext__rotate_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
645 ZEND_ARG_INFO(0, angle)
646 ZEND_END_ARG_INFO()
647 #else /* PHP 4.x */
648 #define CairoContext__rotate_args NULL
649 #endif
651 PHP_METHOD(CairoContext, save);
652 #if (PHP_MAJOR_VERSION >= 5)
653 ZEND_BEGIN_ARG_INFO_EX(CairoContext__save_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
654 ZEND_END_ARG_INFO()
655 #else /* PHP 4.x */
656 #define CairoContext__save_args NULL
657 #endif
659 PHP_METHOD(CairoContext, scale);
660 #if (PHP_MAJOR_VERSION >= 5)
661 ZEND_BEGIN_ARG_INFO_EX(CairoContext__scale_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
662 ZEND_ARG_INFO(0, x)
663 ZEND_ARG_INFO(0, y)
664 ZEND_END_ARG_INFO()
665 #else /* PHP 4.x */
666 #define CairoContext__scale_args NULL
667 #endif
669 PHP_METHOD(CairoContext, select_font_face);
670 #if (PHP_MAJOR_VERSION >= 5)
671 ZEND_BEGIN_ARG_INFO_EX(CairoContext__select_font_face_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
672 ZEND_ARG_OBJ_INFO(0, obj, , 1)
673 ZEND_ARG_INFO(0, slant)
674 ZEND_ARG_INFO(0, weight)
675 ZEND_END_ARG_INFO()
676 #else /* PHP 4.x */
677 #define CairoContext__select_font_face_args NULL
678 #endif
680 PHP_METHOD(CairoContext, set_antialias);
681 #if (PHP_MAJOR_VERSION >= 5)
682 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_antialias_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
683 ZEND_ARG_INFO(0, antialias)
684 ZEND_END_ARG_INFO()
685 #else /* PHP 4.x */
686 #define CairoContext__set_antialias_args NULL
687 #endif
689 PHP_METHOD(CairoContext, set_dash);
690 #if (PHP_MAJOR_VERSION >= 5)
691 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_dash_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
692 ZEND_ARG_OBJ_INFO(0, dashes, , 1)
693 ZEND_ARG_INFO(0, offset)
694 ZEND_END_ARG_INFO()
695 #else /* PHP 4.x */
696 #define CairoContext__set_dash_args NULL
697 #endif
699 PHP_METHOD(CairoContext, set_fill_rule);
700 #if (PHP_MAJOR_VERSION >= 5)
701 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_fill_rule_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
702 ZEND_ARG_INFO(0, fill_rule)
703 ZEND_END_ARG_INFO()
704 #else /* PHP 4.x */
705 #define CairoContext__set_fill_rule_args NULL
706 #endif
708 PHP_METHOD(CairoContext, set_font_face);
709 #if (PHP_MAJOR_VERSION >= 5)
710 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_font_face_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
711 ZEND_ARG_OBJ_INFO(0, obj, , 1)
712 ZEND_END_ARG_INFO()
713 #else /* PHP 4.x */
714 #define CairoContext__set_font_face_args NULL
715 #endif
717 PHP_METHOD(CairoContext, set_font_matrix);
718 #if (PHP_MAJOR_VERSION >= 5)
719 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_font_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
720 ZEND_ARG_OBJ_INFO(0, matrix, , 1)
721 ZEND_END_ARG_INFO()
722 #else /* PHP 4.x */
723 #define CairoContext__set_font_matrix_args NULL
724 #endif
726 PHP_METHOD(CairoContext, set_font_options);
727 #if (PHP_MAJOR_VERSION >= 5)
728 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_font_options_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
729 ZEND_ARG_OBJ_INFO(0, options, , 1)
730 ZEND_END_ARG_INFO()
731 #else /* PHP 4.x */
732 #define CairoContext__set_font_options_args NULL
733 #endif
735 PHP_METHOD(CairoContext, set_font_size);
736 #if (PHP_MAJOR_VERSION >= 5)
737 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_font_size_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
738 ZEND_ARG_INFO(0, size)
739 ZEND_END_ARG_INFO()
740 #else /* PHP 4.x */
741 #define CairoContext__set_font_size_args NULL
742 #endif
744 PHP_METHOD(CairoContext, set_line_cap);
745 #if (PHP_MAJOR_VERSION >= 5)
746 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_line_cap_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
747 ZEND_ARG_INFO(0, line_cap)
748 ZEND_END_ARG_INFO()
749 #else /* PHP 4.x */
750 #define CairoContext__set_line_cap_args NULL
751 #endif
753 PHP_METHOD(CairoContext, set_line_join);
754 #if (PHP_MAJOR_VERSION >= 5)
755 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_line_join_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
756 ZEND_ARG_INFO(0, line_join)
757 ZEND_END_ARG_INFO()
758 #else /* PHP 4.x */
759 #define CairoContext__set_line_join_args NULL
760 #endif
762 PHP_METHOD(CairoContext, set_line_width);
763 #if (PHP_MAJOR_VERSION >= 5)
764 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_line_width_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
765 ZEND_ARG_INFO(0, width)
766 ZEND_END_ARG_INFO()
767 #else /* PHP 4.x */
768 #define CairoContext__set_line_width_args NULL
769 #endif
771 PHP_METHOD(CairoContext, set_matrix);
772 #if (PHP_MAJOR_VERSION >= 5)
773 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
774 ZEND_ARG_OBJ_INFO(0, matix, , 1)
775 ZEND_END_ARG_INFO()
776 #else /* PHP 4.x */
777 #define CairoContext__set_matrix_args NULL
778 #endif
780 PHP_METHOD(CairoContext, set_miter_limit);
781 #if (PHP_MAJOR_VERSION >= 5)
782 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_miter_limit_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
783 ZEND_ARG_INFO(0, limit)
784 ZEND_END_ARG_INFO()
785 #else /* PHP 4.x */
786 #define CairoContext__set_miter_limit_args NULL
787 #endif
789 PHP_METHOD(CairoContext, set_operator);
790 #if (PHP_MAJOR_VERSION >= 5)
791 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_operator_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
792 ZEND_ARG_INFO(0, op)
793 ZEND_END_ARG_INFO()
794 #else /* PHP 4.x */
795 #define CairoContext__set_operator_args NULL
796 #endif
798 PHP_METHOD(CairoContext, set_source);
799 #if (PHP_MAJOR_VERSION >= 5)
800 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_source_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
801 ZEND_ARG_OBJ_INFO(0, p, , 1)
802 ZEND_END_ARG_INFO()
803 #else /* PHP 4.x */
804 #define CairoContext__set_source_args NULL
805 #endif
807 PHP_METHOD(CairoContext, set_source_rgb);
808 #if (PHP_MAJOR_VERSION >= 5)
809 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_source_rgb_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 3)
810 ZEND_ARG_INFO(0, red)
811 ZEND_ARG_INFO(0, green)
812 ZEND_ARG_INFO(0, blue)
813 ZEND_END_ARG_INFO()
814 #else /* PHP 4.x */
815 #define CairoContext__set_source_rgb_args NULL
816 #endif
818 PHP_METHOD(CairoContext, set_source_rgba);
819 #if (PHP_MAJOR_VERSION >= 5)
820 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_source_rgba_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 3)
821 ZEND_ARG_INFO(0, red)
822 ZEND_ARG_INFO(0, green)
823 ZEND_ARG_INFO(0, blue)
824 ZEND_ARG_INFO(0, alpha)
825 ZEND_END_ARG_INFO()
826 #else /* PHP 4.x */
827 #define CairoContext__set_source_rgba_args NULL
828 #endif
830 PHP_METHOD(CairoContext, set_source_surface);
831 #if (PHP_MAJOR_VERSION >= 5)
832 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_source_surface_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
833 ZEND_ARG_OBJ_INFO(0, surface, , 1)
834 ZEND_ARG_INFO(0, x)
835 ZEND_ARG_INFO(0, y)
836 ZEND_END_ARG_INFO()
837 #else /* PHP 4.x */
838 #define CairoContext__set_source_surface_args NULL
839 #endif
841 PHP_METHOD(CairoContext, set_tolerance);
842 #if (PHP_MAJOR_VERSION >= 5)
843 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_tolerance_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
844 ZEND_ARG_INFO(0, tolerance)
845 ZEND_END_ARG_INFO()
846 #else /* PHP 4.x */
847 #define CairoContext__set_tolerance_args NULL
848 #endif
850 PHP_METHOD(CairoContext, show_glyphs);
851 #if (PHP_MAJOR_VERSION >= 5)
852 ZEND_BEGIN_ARG_INFO_EX(CairoContext__show_glyphs_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
853 ZEND_ARG_OBJ_INFO(0, glyphs, , 1)
854 ZEND_ARG_INFO(0, num_glyphs)
855 ZEND_END_ARG_INFO()
856 #else /* PHP 4.x */
857 #define CairoContext__show_glyphs_args NULL
858 #endif
860 PHP_METHOD(CairoContext, show_page);
861 #if (PHP_MAJOR_VERSION >= 5)
862 ZEND_BEGIN_ARG_INFO_EX(CairoContext__show_page_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
863 ZEND_END_ARG_INFO()
864 #else /* PHP 4.x */
865 #define CairoContext__show_page_args NULL
866 #endif
868 PHP_METHOD(CairoContext, show_text);
869 #if (PHP_MAJOR_VERSION >= 5)
870 ZEND_BEGIN_ARG_INFO_EX(CairoContext__show_text_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
871 ZEND_ARG_OBJ_INFO(0, obj, , 1)
872 ZEND_END_ARG_INFO()
873 #else /* PHP 4.x */
874 #define CairoContext__show_text_args NULL
875 #endif
877 PHP_METHOD(CairoContext, stroke);
878 #if (PHP_MAJOR_VERSION >= 5)
879 ZEND_BEGIN_ARG_INFO_EX(CairoContext__stroke_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
880 ZEND_END_ARG_INFO()
881 #else /* PHP 4.x */
882 #define CairoContext__stroke_args NULL
883 #endif
885 PHP_METHOD(CairoContext, stroke_extents);
886 #if (PHP_MAJOR_VERSION >= 5)
887 ZEND_BEGIN_ARG_INFO_EX(CairoContext__stroke_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
888 ZEND_END_ARG_INFO()
889 #else /* PHP 4.x */
890 #define CairoContext__stroke_extents_args NULL
891 #endif
893 PHP_METHOD(CairoContext, stroke_preserve);
894 #if (PHP_MAJOR_VERSION >= 5)
895 ZEND_BEGIN_ARG_INFO_EX(CairoContext__stroke_preserve_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
896 ZEND_END_ARG_INFO()
897 #else /* PHP 4.x */
898 #define CairoContext__stroke_preserve_args NULL
899 #endif
901 PHP_METHOD(CairoContext, text_extents);
902 #if (PHP_MAJOR_VERSION >= 5)
903 ZEND_BEGIN_ARG_INFO_EX(CairoContext__text_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
904 ZEND_ARG_OBJ_INFO(0, extents, , 1)
905 ZEND_END_ARG_INFO()
906 #else /* PHP 4.x */
907 #define CairoContext__text_extents_args NULL
908 #endif
910 PHP_METHOD(CairoContext, text_path);
911 #if (PHP_MAJOR_VERSION >= 5)
912 ZEND_BEGIN_ARG_INFO_EX(CairoContext__text_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
913 ZEND_ARG_OBJ_INFO(0, obj, , 1)
914 ZEND_END_ARG_INFO()
915 #else /* PHP 4.x */
916 #define CairoContext__text_path_args NULL
917 #endif
919 PHP_METHOD(CairoContext, transform);
920 #if (PHP_MAJOR_VERSION >= 5)
921 ZEND_BEGIN_ARG_INFO_EX(CairoContext__transform_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
922 ZEND_ARG_OBJ_INFO(0, matrix, , 1)
923 ZEND_END_ARG_INFO()
924 #else /* PHP 4.x */
925 #define CairoContext__transform_args NULL
926 #endif
928 PHP_METHOD(CairoContext, translate);
929 #if (PHP_MAJOR_VERSION >= 5)
930 ZEND_BEGIN_ARG_INFO_EX(CairoContext__translate_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
931 ZEND_ARG_INFO(0, tx)
932 ZEND_ARG_INFO(0, ty)
933 ZEND_END_ARG_INFO()
934 #else /* PHP 4.x */
935 #define CairoContext__translate_args NULL
936 #endif
938 PHP_METHOD(CairoContext, user_to_device);
939 #if (PHP_MAJOR_VERSION >= 5)
940 ZEND_BEGIN_ARG_INFO_EX(CairoContext__user_to_device_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
941 ZEND_ARG_INFO(0, x)
942 ZEND_ARG_INFO(0, y)
943 ZEND_END_ARG_INFO()
944 #else /* PHP 4.x */
945 #define CairoContext__user_to_device_args NULL
946 #endif
948 PHP_METHOD(CairoContext, user_to_device_distance);
949 #if (PHP_MAJOR_VERSION >= 5)
950 ZEND_BEGIN_ARG_INFO_EX(CairoContext__user_to_device_distance_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
951 ZEND_ARG_INFO(0, dx)
952 ZEND_ARG_INFO(0, dy)
953 ZEND_END_ARG_INFO()
954 #else /* PHP 4.x */
955 #define CairoContext__user_to_device_distance_args NULL
956 #endif
958 PHP_METHOD(CairoFontFace, __construct);
959 #if (PHP_MAJOR_VERSION >= 5)
960 ZEND_BEGIN_ARG_INFO_EX(CairoFontFace____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
961 ZEND_END_ARG_INFO()
962 #else /* PHP 4.x */
963 #define CairoFontFace____construct_args NULL
964 #endif
966 PHP_METHOD(CairoFontFace, __destruct);
967 #if (PHP_MAJOR_VERSION >= 5)
968 ZEND_BEGIN_ARG_INFO_EX(CairoFontFace____destruct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
969 ZEND_END_ARG_INFO()
970 #else /* PHP 4.x */
971 #define CairoFontFace____destruct_args NULL
972 #endif
974 PHP_METHOD(CairoFontOptions, __construct);
975 #if (PHP_MAJOR_VERSION >= 5)
976 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
977 ZEND_END_ARG_INFO()
978 #else /* PHP 4.x */
979 #define CairoFontOptions____construct_args NULL
980 #endif
982 PHP_METHOD(CairoFontOptions, get_antialias);
983 #if (PHP_MAJOR_VERSION >= 5)
984 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__get_antialias_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
985 ZEND_END_ARG_INFO()
986 #else /* PHP 4.x */
987 #define CairoFontOptions__get_antialias_args NULL
988 #endif
990 PHP_METHOD(CairoFontOptions, get_hint_metrics);
991 #if (PHP_MAJOR_VERSION >= 5)
992 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__get_hint_metrics_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
993 ZEND_END_ARG_INFO()
994 #else /* PHP 4.x */
995 #define CairoFontOptions__get_hint_metrics_args NULL
996 #endif
998 PHP_METHOD(CairoFontOptions, get_hint_style);
999 #if (PHP_MAJOR_VERSION >= 5)
1000 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__get_hint_style_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1001 ZEND_END_ARG_INFO()
1002 #else /* PHP 4.x */
1003 #define CairoFontOptions__get_hint_style_args NULL
1004 #endif
1006 PHP_METHOD(CairoFontOptions, get_subpixel_order);
1007 #if (PHP_MAJOR_VERSION >= 5)
1008 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__get_subpixel_order_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1009 ZEND_END_ARG_INFO()
1010 #else /* PHP 4.x */
1011 #define CairoFontOptions__get_subpixel_order_args NULL
1012 #endif
1014 PHP_METHOD(CairoFontOptions, set_antialias);
1015 #if (PHP_MAJOR_VERSION >= 5)
1016 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__set_antialias_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1017 ZEND_ARG_INFO(0, aa)
1018 ZEND_END_ARG_INFO()
1019 #else /* PHP 4.x */
1020 #define CairoFontOptions__set_antialias_args NULL
1021 #endif
1023 PHP_METHOD(CairoFontOptions, set_hint_metrics);
1024 #if (PHP_MAJOR_VERSION >= 5)
1025 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__set_hint_metrics_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1026 ZEND_ARG_INFO(0, hm)
1027 ZEND_END_ARG_INFO()
1028 #else /* PHP 4.x */
1029 #define CairoFontOptions__set_hint_metrics_args NULL
1030 #endif
1032 PHP_METHOD(CairoFontOptions, set_hint_style);
1033 #if (PHP_MAJOR_VERSION >= 5)
1034 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__set_hint_style_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1035 ZEND_ARG_INFO(0, hs)
1036 ZEND_END_ARG_INFO()
1037 #else /* PHP 4.x */
1038 #define CairoFontOptions__set_hint_style_args NULL
1039 #endif
1041 PHP_METHOD(CairoFontOptions, set_subpixel_order);
1042 #if (PHP_MAJOR_VERSION >= 5)
1043 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__set_subpixel_order_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1044 ZEND_ARG_INFO(0, so)
1045 ZEND_END_ARG_INFO()
1046 #else /* PHP 4.x */
1047 #define CairoFontOptions__set_subpixel_order_args NULL
1048 #endif
1050 PHP_METHOD(CairoMatrix, __construct);
1051 #if (PHP_MAJOR_VERSION >= 5)
1052 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 5)
1053 ZEND_ARG_INFO(0, yx)
1054 ZEND_ARG_INFO(0, xy)
1055 ZEND_ARG_INFO(0, yy)
1056 ZEND_ARG_INFO(0, x0)
1057 ZEND_ARG_INFO(0, y0)
1058 ZEND_END_ARG_INFO()
1059 #else /* PHP 4.x */
1060 #define CairoMatrix____construct_args NULL
1061 #endif
1063 PHP_METHOD(CairoMatrix, init_rotate);
1064 #if (PHP_MAJOR_VERSION >= 5)
1065 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__init_rotate_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1066 ZEND_ARG_INFO(0, radians)
1067 ZEND_END_ARG_INFO()
1068 #else /* PHP 4.x */
1069 #define CairoMatrix__init_rotate_args NULL
1070 #endif
1072 PHP_METHOD(CairoMatrix, invert);
1073 #if (PHP_MAJOR_VERSION >= 5)
1074 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__invert_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1075 ZEND_END_ARG_INFO()
1076 #else /* PHP 4.x */
1077 #define CairoMatrix__invert_args NULL
1078 #endif
1080 PHP_METHOD(CairoMatrix, multiply);
1081 #if (PHP_MAJOR_VERSION >= 5)
1082 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__multiply_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1083 ZEND_ARG_OBJ_INFO(0, o2, , 1)
1084 ZEND_END_ARG_INFO()
1085 #else /* PHP 4.x */
1086 #define CairoMatrix__multiply_args NULL
1087 #endif
1089 PHP_METHOD(CairoMatrix, rotate);
1090 #if (PHP_MAJOR_VERSION >= 5)
1091 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__rotate_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1092 ZEND_ARG_INFO(0, radians)
1093 ZEND_END_ARG_INFO()
1094 #else /* PHP 4.x */
1095 #define CairoMatrix__rotate_args NULL
1096 #endif
1098 PHP_METHOD(CairoMatrix, scale);
1099 #if (PHP_MAJOR_VERSION >= 5)
1100 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__scale_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1101 ZEND_ARG_INFO(0, sx)
1102 ZEND_ARG_INFO(0, xy)
1103 ZEND_END_ARG_INFO()
1104 #else /* PHP 4.x */
1105 #define CairoMatrix__scale_args NULL
1106 #endif
1108 PHP_METHOD(CairoMatrix, transform_distance);
1109 #if (PHP_MAJOR_VERSION >= 5)
1110 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__transform_distance_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1111 ZEND_ARG_INFO(0, dx)
1112 ZEND_ARG_INFO(0, dy)
1113 ZEND_END_ARG_INFO()
1114 #else /* PHP 4.x */
1115 #define CairoMatrix__transform_distance_args NULL
1116 #endif
1118 PHP_METHOD(CairoMatrix, transform_point);
1119 #if (PHP_MAJOR_VERSION >= 5)
1120 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__transform_point_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1121 ZEND_ARG_INFO(0, x)
1122 ZEND_ARG_INFO(0, y)
1123 ZEND_END_ARG_INFO()
1124 #else /* PHP 4.x */
1125 #define CairoMatrix__transform_point_args NULL
1126 #endif
1128 PHP_METHOD(CairoMatrix, translate);
1129 #if (PHP_MAJOR_VERSION >= 5)
1130 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__translate_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1131 ZEND_ARG_INFO(0, tx)
1132 ZEND_ARG_INFO(0, ty)
1133 ZEND_END_ARG_INFO()
1134 #else /* PHP 4.x */
1135 #define CairoMatrix__translate_args NULL
1136 #endif
1138 PHP_METHOD(CairoPattern, __construct);
1139 #if (PHP_MAJOR_VERSION >= 5)
1140 ZEND_BEGIN_ARG_INFO_EX(CairoPattern____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1141 ZEND_END_ARG_INFO()
1142 #else /* PHP 4.x */
1143 #define CairoPattern____construct_args NULL
1144 #endif
1146 PHP_METHOD(CairoPattern, get_matrix);
1147 #if (PHP_MAJOR_VERSION >= 5)
1148 ZEND_BEGIN_ARG_INFO_EX(CairoPattern__get_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1149 ZEND_END_ARG_INFO()
1150 #else /* PHP 4.x */
1151 #define CairoPattern__get_matrix_args NULL
1152 #endif
1154 PHP_METHOD(CairoPattern, set_matrix);
1155 #if (PHP_MAJOR_VERSION >= 5)
1156 ZEND_BEGIN_ARG_INFO_EX(CairoPattern__set_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1157 ZEND_ARG_OBJ_INFO(0, m, , 1)
1158 ZEND_END_ARG_INFO()
1159 #else /* PHP 4.x */
1160 #define CairoPattern__set_matrix_args NULL
1161 #endif
1163 PHP_METHOD(CairoGradient, __contruct);
1164 #if (PHP_MAJOR_VERSION >= 5)
1165 ZEND_BEGIN_ARG_INFO_EX(CairoGradient____contruct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1166 ZEND_END_ARG_INFO()
1167 #else /* PHP 4.x */
1168 #define CairoGradient____contruct_args NULL
1169 #endif
1171 PHP_METHOD(CairoGradient, add_color_stop_rgb);
1172 #if (PHP_MAJOR_VERSION >= 5)
1173 ZEND_BEGIN_ARG_INFO_EX(CairoGradient__add_color_stop_rgb_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 4)
1174 ZEND_ARG_INFO(0, offset)
1175 ZEND_ARG_INFO(0, red)
1176 ZEND_ARG_INFO(0, green)
1177 ZEND_ARG_INFO(0, blue)
1178 ZEND_END_ARG_INFO()
1179 #else /* PHP 4.x */
1180 #define CairoGradient__add_color_stop_rgb_args NULL
1181 #endif
1183 PHP_METHOD(CairoGradient, add_color_stop_rgba);
1184 #if (PHP_MAJOR_VERSION >= 5)
1185 ZEND_BEGIN_ARG_INFO_EX(CairoGradient__add_color_stop_rgba_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 5)
1186 ZEND_ARG_INFO(0, offset)
1187 ZEND_ARG_INFO(0, red)
1188 ZEND_ARG_INFO(0, green)
1189 ZEND_ARG_INFO(0, blue)
1190 ZEND_ARG_INFO(0, alpha)
1191 ZEND_END_ARG_INFO()
1192 #else /* PHP 4.x */
1193 #define CairoGradient__add_color_stop_rgba_args NULL
1194 #endif
1196 PHP_METHOD(CairoLinearGradient, __construct);
1197 #if (PHP_MAJOR_VERSION >= 5)
1198 ZEND_BEGIN_ARG_INFO_EX(CairoLinearGradient____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 3)
1199 ZEND_ARG_INFO(0, y0)
1200 ZEND_ARG_INFO(0, x1)
1201 ZEND_ARG_INFO(0, y1)
1202 ZEND_END_ARG_INFO()
1203 #else /* PHP 4.x */
1204 #define CairoLinearGradient____construct_args NULL
1205 #endif
1207 PHP_METHOD(CairoLinearGradient, get_linear_points);
1208 #if (PHP_MAJOR_VERSION >= 5)
1209 ZEND_BEGIN_ARG_INFO_EX(CairoLinearGradient__get_linear_points_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1210 ZEND_END_ARG_INFO()
1211 #else /* PHP 4.x */
1212 #define CairoLinearGradient__get_linear_points_args NULL
1213 #endif
1215 PHP_METHOD(CairoRadialGradient, __constuct);
1216 #if (PHP_MAJOR_VERSION >= 5)
1217 ZEND_BEGIN_ARG_INFO_EX(CairoRadialGradient____constuct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 6)
1218 ZEND_ARG_INFO(0, cx0)
1219 ZEND_ARG_INFO(0, cy0)
1220 ZEND_ARG_INFO(0, radius0)
1221 ZEND_ARG_INFO(0, cx1)
1222 ZEND_ARG_INFO(0, cy1)
1223 ZEND_ARG_INFO(0, radius1)
1224 ZEND_END_ARG_INFO()
1225 #else /* PHP 4.x */
1226 #define CairoRadialGradient____constuct_args NULL
1227 #endif
1229 PHP_METHOD(CairoRadialGradient, get_radial_circles);
1230 #if (PHP_MAJOR_VERSION >= 5)
1231 ZEND_BEGIN_ARG_INFO_EX(CairoRadialGradient__get_radial_circles_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1232 ZEND_END_ARG_INFO()
1233 #else /* PHP 4.x */
1234 #define CairoRadialGradient__get_radial_circles_args NULL
1235 #endif
1237 PHP_METHOD(CairoSolidPattern, __construct);
1238 #if (PHP_MAJOR_VERSION >= 5)
1239 ZEND_BEGIN_ARG_INFO_EX(CairoSolidPattern____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1240 ZEND_ARG_INFO(0, g)
1241 ZEND_ARG_INFO(0, b)
1242 ZEND_ARG_INFO(0, a)
1243 ZEND_END_ARG_INFO()
1244 #else /* PHP 4.x */
1245 #define CairoSolidPattern____construct_args NULL
1246 #endif
1248 PHP_METHOD(CairoSolidPattern, get_rgba);
1249 #if (PHP_MAJOR_VERSION >= 5)
1250 ZEND_BEGIN_ARG_INFO_EX(CairoSolidPattern__get_rgba_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1251 ZEND_END_ARG_INFO()
1252 #else /* PHP 4.x */
1253 #define CairoSolidPattern__get_rgba_args NULL
1254 #endif
1256 PHP_METHOD(CairoSurfacePattern, __construct);
1257 #if (PHP_MAJOR_VERSION >= 5)
1258 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1259 ZEND_END_ARG_INFO()
1260 #else /* PHP 4.x */
1261 #define CairoSurfacePattern____construct_args NULL
1262 #endif
1264 PHP_METHOD(CairoSurfacePattern, get_extend);
1265 #if (PHP_MAJOR_VERSION >= 5)
1266 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern__get_extend_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1267 ZEND_END_ARG_INFO()
1268 #else /* PHP 4.x */
1269 #define CairoSurfacePattern__get_extend_args NULL
1270 #endif
1272 PHP_METHOD(CairoSurfacePattern, get_filter);
1273 #if (PHP_MAJOR_VERSION >= 5)
1274 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern__get_filter_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1275 ZEND_END_ARG_INFO()
1276 #else /* PHP 4.x */
1277 #define CairoSurfacePattern__get_filter_args NULL
1278 #endif
1280 PHP_METHOD(CairoSurfacePattern, get_surface);
1281 #if (PHP_MAJOR_VERSION >= 5)
1282 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern__get_surface_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1283 ZEND_END_ARG_INFO()
1284 #else /* PHP 4.x */
1285 #define CairoSurfacePattern__get_surface_args NULL
1286 #endif
1288 PHP_METHOD(CairoSurfacePattern, set_extend);
1289 #if (PHP_MAJOR_VERSION >= 5)
1290 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern__set_extend_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1291 ZEND_ARG_INFO(0, extend)
1292 ZEND_END_ARG_INFO()
1293 #else /* PHP 4.x */
1294 #define CairoSurfacePattern__set_extend_args NULL
1295 #endif
1297 PHP_METHOD(CairoSurfacePattern, set_filter);
1298 #if (PHP_MAJOR_VERSION >= 5)
1299 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern__set_filter_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1300 ZEND_ARG_INFO(0, filter)
1301 ZEND_END_ARG_INFO()
1302 #else /* PHP 4.x */
1303 #define CairoSurfacePattern__set_filter_args NULL
1304 #endif
1306 PHP_METHOD(CairoScaledFont, __construct);
1307 #if (PHP_MAJOR_VERSION >= 5)
1308 ZEND_BEGIN_ARG_INFO_EX(CairoScaledFont____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 3)
1309 ZEND_ARG_OBJ_INFO(0, mx1, , 1)
1310 ZEND_ARG_OBJ_INFO(0, mx2, , 1)
1311 ZEND_ARG_OBJ_INFO(0, fo, , 1)
1312 ZEND_END_ARG_INFO()
1313 #else /* PHP 4.x */
1314 #define CairoScaledFont____construct_args NULL
1315 #endif
1317 PHP_METHOD(CairoScaledFont, extents);
1318 #if (PHP_MAJOR_VERSION >= 5)
1319 ZEND_BEGIN_ARG_INFO_EX(CairoScaledFont__extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1320 ZEND_END_ARG_INFO()
1321 #else /* PHP 4.x */
1322 #define CairoScaledFont__extents_args NULL
1323 #endif
1325 PHP_METHOD(CairoScaledFont, get_font_face);
1326 #if (PHP_MAJOR_VERSION >= 5)
1327 ZEND_BEGIN_ARG_INFO_EX(CairoScaledFont__get_font_face_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1328 ZEND_END_ARG_INFO()
1329 #else /* PHP 4.x */
1330 #define CairoScaledFont__get_font_face_args NULL
1331 #endif
1333 PHP_METHOD(CairoScaledFont, text_extents);
1334 #if (PHP_MAJOR_VERSION >= 5)
1335 ZEND_BEGIN_ARG_INFO_EX(CairoScaledFont__text_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1336 ZEND_ARG_INFO(0, str)
1337 ZEND_END_ARG_INFO()
1338 #else /* PHP 4.x */
1339 #define CairoScaledFont__text_extents_args NULL
1340 #endif
1342 PHP_METHOD(CairoSurface, __construct);
1343 #if (PHP_MAJOR_VERSION >= 5)
1344 ZEND_BEGIN_ARG_INFO_EX(CairoSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1345 ZEND_END_ARG_INFO()
1346 #else /* PHP 4.x */
1347 #define CairoSurface____construct_args NULL
1348 #endif
1350 PHP_METHOD(CairoSurface, create_similar);
1351 #if (PHP_MAJOR_VERSION >= 5)
1352 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__create_similar_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 3)
1353 ZEND_ARG_INFO(0, content)
1354 ZEND_ARG_INFO(0, width)
1355 ZEND_ARG_INFO(0, height)
1356 ZEND_END_ARG_INFO()
1357 #else /* PHP 4.x */
1358 #define CairoSurface__create_similar_args NULL
1359 #endif
1361 PHP_METHOD(CairoSurface, finish);
1362 #if (PHP_MAJOR_VERSION >= 5)
1363 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__finish_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1364 ZEND_END_ARG_INFO()
1365 #else /* PHP 4.x */
1366 #define CairoSurface__finish_args NULL
1367 #endif
1369 PHP_METHOD(CairoSurface, flush);
1370 #if (PHP_MAJOR_VERSION >= 5)
1371 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__flush_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1372 ZEND_END_ARG_INFO()
1373 #else /* PHP 4.x */
1374 #define CairoSurface__flush_args NULL
1375 #endif
1377 PHP_METHOD(CairoSurface, get_content);
1378 #if (PHP_MAJOR_VERSION >= 5)
1379 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__get_content_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1380 ZEND_END_ARG_INFO()
1381 #else /* PHP 4.x */
1382 #define CairoSurface__get_content_args NULL
1383 #endif
1385 PHP_METHOD(CairoSurface, get_device_offset);
1386 #if (PHP_MAJOR_VERSION >= 5)
1387 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__get_device_offset_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1388 ZEND_END_ARG_INFO()
1389 #else /* PHP 4.x */
1390 #define CairoSurface__get_device_offset_args NULL
1391 #endif
1393 PHP_METHOD(CairoSurface, get_font_options);
1394 #if (PHP_MAJOR_VERSION >= 5)
1395 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__get_font_options_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1396 ZEND_END_ARG_INFO()
1397 #else /* PHP 4.x */
1398 #define CairoSurface__get_font_options_args NULL
1399 #endif
1401 PHP_METHOD(CairoSurface, mark_dirty_rectangle);
1402 #if (PHP_MAJOR_VERSION >= 5)
1403 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__mark_dirty_rectangle_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1404 ZEND_ARG_INFO(0, x)
1405 ZEND_ARG_INFO(0, y)
1406 ZEND_ARG_INFO(0, width)
1407 ZEND_ARG_INFO(0, height)
1408 ZEND_END_ARG_INFO()
1409 #else /* PHP 4.x */
1410 #define CairoSurface__mark_dirty_rectangle_args NULL
1411 #endif
1413 PHP_METHOD(CairoSurface, set_device_offset);
1414 #if (PHP_MAJOR_VERSION >= 5)
1415 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__set_device_offset_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1416 ZEND_ARG_INFO(0, x_offset)
1417 ZEND_ARG_INFO(0, y_offset)
1418 ZEND_END_ARG_INFO()
1419 #else /* PHP 4.x */
1420 #define CairoSurface__set_device_offset_args NULL
1421 #endif
1423 PHP_METHOD(CairoSurface, set_fallback_resolution);
1424 #if (PHP_MAJOR_VERSION >= 5)
1425 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__set_fallback_resolution_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1426 ZEND_ARG_INFO(0, x_ppi)
1427 ZEND_ARG_INFO(0, y_ppi)
1428 ZEND_END_ARG_INFO()
1429 #else /* PHP 4.x */
1430 #define CairoSurface__set_fallback_resolution_args NULL
1431 #endif
1433 PHP_METHOD(CairoSurface, write_to_png);
1434 #if (PHP_MAJOR_VERSION >= 5)
1435 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__write_to_png_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1436 ZEND_ARG_INFO(0, file)
1437 ZEND_END_ARG_INFO()
1438 #else /* PHP 4.x */
1439 #define CairoSurface__write_to_png_args NULL
1440 #endif
1442 PHP_METHOD(CairoImageSurface, __construct);
1443 #if (PHP_MAJOR_VERSION >= 5)
1444 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1445 ZEND_ARG_INFO(0, widthm)
1446 ZEND_ARG_INFO(0, height)
1447 ZEND_END_ARG_INFO()
1448 #else /* PHP 4.x */
1449 #define CairoImageSurface____construct_args NULL
1450 #endif
1452 PHP_METHOD(CairoImageSurface, create_from_data);
1453 #if (PHP_MAJOR_VERSION >= 5)
1454 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__create_from_data_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 4)
1455 ZEND_ARG_OBJ_INFO(0, obj, , 1)
1456 ZEND_ARG_INFO(0, format)
1457 ZEND_ARG_INFO(0, width)
1458 ZEND_ARG_INFO(0, height)
1459 ZEND_ARG_INFO(0, stride)
1460 ZEND_END_ARG_INFO()
1461 #else /* PHP 4.x */
1462 #define CairoImageSurface__create_from_data_args NULL
1463 #endif
1465 PHP_METHOD(CairoImageSurface, create_from_png);
1466 #if (PHP_MAJOR_VERSION >= 5)
1467 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__create_from_png_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1468 ZEND_ARG_INFO(0, file)
1469 ZEND_END_ARG_INFO()
1470 #else /* PHP 4.x */
1471 #define CairoImageSurface__create_from_png_args NULL
1472 #endif
1474 PHP_METHOD(CairoImageSurface, get_data);
1475 #if (PHP_MAJOR_VERSION >= 5)
1476 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_data_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1477 ZEND_END_ARG_INFO()
1478 #else /* PHP 4.x */
1479 #define CairoImageSurface__get_data_args NULL
1480 #endif
1482 PHP_METHOD(CairoImageSurface, get_format);
1483 #if (PHP_MAJOR_VERSION >= 5)
1484 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_format_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1485 ZEND_END_ARG_INFO()
1486 #else /* PHP 4.x */
1487 #define CairoImageSurface__get_format_args NULL
1488 #endif
1490 PHP_METHOD(CairoImageSurface, get_height);
1491 #if (PHP_MAJOR_VERSION >= 5)
1492 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_height_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1493 ZEND_END_ARG_INFO()
1494 #else /* PHP 4.x */
1495 #define CairoImageSurface__get_height_args NULL
1496 #endif
1498 PHP_METHOD(CairoImageSurface, get_stride);
1499 #if (PHP_MAJOR_VERSION >= 5)
1500 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_stride_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1501 ZEND_END_ARG_INFO()
1502 #else /* PHP 4.x */
1503 #define CairoImageSurface__get_stride_args NULL
1504 #endif
1506 PHP_METHOD(CairoImageSurface, get_width);
1507 #if (PHP_MAJOR_VERSION >= 5)
1508 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_width_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1509 ZEND_END_ARG_INFO()
1510 #else /* PHP 4.x */
1511 #define CairoImageSurface__get_width_args NULL
1512 #endif
1514 PHP_METHOD(CairoPDFSurface, __construct);
1515 #if (PHP_MAJOR_VERSION >= 5)
1516 ZEND_BEGIN_ARG_INFO_EX(CairoPDFSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1517 ZEND_ARG_INFO(0, wpts)
1518 ZEND_ARG_INFO(0, hpts)
1519 ZEND_END_ARG_INFO()
1520 #else /* PHP 4.x */
1521 #define CairoPDFSurface____construct_args NULL
1522 #endif
1524 PHP_METHOD(CairoPDFSurface, set_size);
1525 #if (PHP_MAJOR_VERSION >= 5)
1526 ZEND_BEGIN_ARG_INFO_EX(CairoPDFSurface__set_size_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1527 ZEND_ARG_INFO(0, wptd)
1528 ZEND_ARG_INFO(0, hpts)
1529 ZEND_END_ARG_INFO()
1530 #else /* PHP 4.x */
1531 #define CairoPDFSurface__set_size_args NULL
1532 #endif
1534 PHP_METHOD(CairoPSSurface, __construct);
1535 #if (PHP_MAJOR_VERSION >= 5)
1536 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1537 ZEND_ARG_INFO(0, wpts)
1538 ZEND_ARG_INFO(0, hpts)
1539 ZEND_END_ARG_INFO()
1540 #else /* PHP 4.x */
1541 #define CairoPSSurface____construct_args NULL
1542 #endif
1544 PHP_METHOD(CairoPSSurface, dsc_begin_page_setup);
1545 #if (PHP_MAJOR_VERSION >= 5)
1546 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__dsc_begin_page_setup_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1547 ZEND_END_ARG_INFO()
1548 #else /* PHP 4.x */
1549 #define CairoPSSurface__dsc_begin_page_setup_args NULL
1550 #endif
1552 PHP_METHOD(CairoPSSurface, dsc_begin_setup);
1553 #if (PHP_MAJOR_VERSION >= 5)
1554 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__dsc_begin_setup_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1555 ZEND_END_ARG_INFO()
1556 #else /* PHP 4.x */
1557 #define CairoPSSurface__dsc_begin_setup_args NULL
1558 #endif
1560 PHP_METHOD(CairoPSSurface, dsc_comment);
1561 #if (PHP_MAJOR_VERSION >= 5)
1562 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__dsc_comment_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1563 ZEND_END_ARG_INFO()
1564 #else /* PHP 4.x */
1565 #define CairoPSSurface__dsc_comment_args NULL
1566 #endif
1568 PHP_METHOD(CairoPSSurface, get_levels);
1569 #if (PHP_MAJOR_VERSION >= 5)
1570 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__get_levels_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1571 ZEND_END_ARG_INFO()
1572 #else /* PHP 4.x */
1573 #define CairoPSSurface__get_levels_args NULL
1574 #endif
1576 PHP_METHOD(CairoPSSurface, get_level_string);
1577 #if (PHP_MAJOR_VERSION >= 5)
1578 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__get_level_string_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1579 ZEND_END_ARG_INFO()
1580 #else /* PHP 4.x */
1581 #define CairoPSSurface__get_level_string_args NULL
1582 #endif
1584 PHP_METHOD(CairoPSSurface, restrict_to_level);
1585 #if (PHP_MAJOR_VERSION >= 5)
1586 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__restrict_to_level_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1587 ZEND_ARG_INFO(0, level)
1588 ZEND_END_ARG_INFO()
1589 #else /* PHP 4.x */
1590 #define CairoPSSurface__restrict_to_level_args NULL
1591 #endif
1593 PHP_METHOD(CairoPSSurface, set_eps);
1594 #if (PHP_MAJOR_VERSION >= 5)
1595 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__set_eps_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1596 ZEND_END_ARG_INFO()
1597 #else /* PHP 4.x */
1598 #define CairoPSSurface__set_eps_args NULL
1599 #endif
1601 PHP_METHOD(CairoPSSurface, set_size);
1602 #if (PHP_MAJOR_VERSION >= 5)
1603 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__set_size_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1604 ZEND_ARG_INFO(0, wpts)
1605 ZEND_ARG_INFO(0, hpts)
1606 ZEND_END_ARG_INFO()
1607 #else /* PHP 4.x */
1608 #define CairoPSSurface__set_size_args NULL
1609 #endif
1611 PHP_METHOD(CairoQuartzSurface, __construct);
1612 #if (PHP_MAJOR_VERSION >= 5)
1613 ZEND_BEGIN_ARG_INFO_EX(CairoQuartzSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1614 ZEND_ARG_INFO(0, hpixels)
1615 ZEND_ARG_INFO(0, format)
1616 ZEND_END_ARG_INFO()
1617 #else /* PHP 4.x */
1618 #define CairoQuartzSurface____construct_args NULL
1619 #endif
1621 PHP_METHOD(CairoSVGSurface, __construct);
1622 #if (PHP_MAJOR_VERSION >= 5)
1623 ZEND_BEGIN_ARG_INFO_EX(CairoSVGSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1624 ZEND_ARG_INFO(0, wpts)
1625 ZEND_ARG_INFO(0, hpts)
1626 ZEND_END_ARG_INFO()
1627 #else /* PHP 4.x */
1628 #define CairoSVGSurface____construct_args NULL
1629 #endif
1631 PHP_METHOD(CairoWin32Surface, __construct);
1632 #if (PHP_MAJOR_VERSION >= 5)
1633 ZEND_BEGIN_ARG_INFO_EX(CairoWin32Surface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1634 ZEND_END_ARG_INFO()
1635 #else /* PHP 4.x */
1636 #define CairoWin32Surface____construct_args NULL
1637 #endif
1639 PHP_METHOD(CairoXlibSurface, __construct);
1640 #if (PHP_MAJOR_VERSION >= 5)
1641 ZEND_BEGIN_ARG_INFO_EX(CairoXlibSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1642 ZEND_END_ARG_INFO()
1643 #else /* PHP 4.x */
1644 #define CairoXlibSurface____construct_args NULL
1645 #endif
1647 PHP_METHOD(CairoXlibSurface, get_depth);
1648 #if (PHP_MAJOR_VERSION >= 5)
1649 ZEND_BEGIN_ARG_INFO_EX(CairoXlibSurface__get_depth_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1650 ZEND_END_ARG_INFO()
1651 #else /* PHP 4.x */
1652 #define CairoXlibSurface__get_depth_args NULL
1653 #endif
1655 PHP_METHOD(CairoXlibSurface, get_height);
1656 #if (PHP_MAJOR_VERSION >= 5)
1657 ZEND_BEGIN_ARG_INFO_EX(CairoXlibSurface__get_height_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1658 ZEND_END_ARG_INFO()
1659 #else /* PHP 4.x */
1660 #define CairoXlibSurface__get_height_args NULL
1661 #endif
1663 PHP_METHOD(CairoXlibSurface, get_width);
1664 #if (PHP_MAJOR_VERSION >= 5)
1665 ZEND_BEGIN_ARG_INFO_EX(CairoXlibSurface__get_width_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1666 ZEND_END_ARG_INFO()
1667 #else /* PHP 4.x */
1668 #define CairoXlibSurface__get_width_args NULL
1669 #endif
1671 #ifdef __cplusplus
1672 } // extern "C"
1673 #endif
1675 #endif /* PHP_HAVE_PHPCAIRO */
1677 #endif /* PHP_PHPCAIRO_H */
1681 * Local variables:
1682 * tab-width: 4
1683 * c-basic-offset: 4
1684 * End:
1685 * vim600: noet sw=4 ts=4 fdm=marker
1686 * vim<600: noet sw=4 ts=4