Added some more functions - reached miter_limit
[phpCairo.git] / individual_files / php_phpCairo.h
blob1c9b4cb395b8d2a649dfd19d55cc061c023e2631
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
45 #include <cairo.h>
47 typedef struct _context_object {
48 zend_object std;
49 cairo_t *context;
50 } context_object;
52 typedef struct _surface_object {
53 zend_object std;
54 cairo_surface_t *surface;
55 } surface_object;
57 typedef struct _path_object {
58 zend_object std;
59 cairo_path_t *path;
60 } path_object;
62 typedef struct _fontoptions_object {
63 zend_object std;
64 cairo_font_options_t *fontoptions;
65 } fontoptions_object;
67 typedef struct _fontface_object {
68 zend_object std;
69 cairo_font_face_t *fontface;
70 } fontface_object;
72 typedef struct _matrix_object {
73 zend_object std;
74 cairo_matrix_t *matrix;
75 } matrix_object;
77 typedef struct _pattern_object {
78 zend_object std;
79 cairo_pattern_t *pattern;
80 } pattern_object;
83 #ifdef PHP_WIN32
84 #define PHP_PHPCAIRO_API __declspec(dllexport)
85 #else
86 #define PHP_PHPCAIRO_API
87 #endif
89 PHP_MINIT_FUNCTION(phpCairo);
90 PHP_MSHUTDOWN_FUNCTION(phpCairo);
91 PHP_RINIT_FUNCTION(phpCairo);
92 PHP_RSHUTDOWN_FUNCTION(phpCairo);
93 PHP_MINFO_FUNCTION(phpCairo);
95 #ifdef ZTS
96 #include "TSRM.h"
97 #endif
99 #define FREE_RESOURCE(resource) zend_list_delete(Z_LVAL_P(resource))
101 #define PROP_GET_LONG(name) Z_LVAL_P(zend_read_property(_this_ce, _this_zval, #name, strlen(#name), 1 TSRMLS_CC))
102 #define PROP_SET_LONG(name, l) zend_update_property_long(_this_ce, _this_zval, #name, strlen(#name), l TSRMLS_CC)
104 #define PROP_GET_DOUBLE(name) Z_DVAL_P(zend_read_property(_this_ce, _this_zval, #name, strlen(#name), 1 TSRMLS_CC))
105 #define PROP_SET_DOUBLE(name, d) zend_update_property_double(_this_ce, _this_zval, #name, strlen(#name), d TSRMLS_CC)
107 #define PROP_GET_STRING(name) Z_STRVAL_P(zend_read_property(_this_ce, _this_zval, #name, strlen(#name), 1 TSRMLS_CC))
108 #define PROP_GET_STRLEN(name) Z_STRLEN_P(zend_read_property(_this_ce, _this_zval, #name, strlen(#name), 1 TSRMLS_CC))
109 #define PROP_SET_STRING(name, s) zend_update_property_string(_this_ce, _this_zval, #name, strlen(#name), s TSRMLS_CC)
110 #define PROP_SET_STRINGL(name, s, l) zend_update_property_stringl(_this_ce, _this_zval, #name, strlen(#name), s, l TSRMLS_CC)
113 PHP_FUNCTION(cairo_version);
114 #if (PHP_MAJOR_VERSION >= 5)
115 ZEND_BEGIN_ARG_INFO_EX(cairo_version_arg_info, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
116 ZEND_END_ARG_INFO()
117 #else /* PHP 4.x */
118 #define cairo_version_arg_info NULL
119 #endif
121 PHP_FUNCTION(cairo_version_string);
122 #if (PHP_MAJOR_VERSION >= 5)
123 ZEND_BEGIN_ARG_INFO_EX(cairo_version_string_arg_info, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
124 ZEND_END_ARG_INFO()
125 #else /* PHP 4.x */
126 #define cairo_version_string_arg_info NULL
127 #endif
129 PHP_METHOD(CairoContext, __construct);
130 #if (PHP_MAJOR_VERSION >= 5)
131 ZEND_BEGIN_ARG_INFO_EX(CairoContext____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
132 ZEND_ARG_OBJ_INFO(0, obj, , 1)
133 ZEND_END_ARG_INFO()
134 #else /* PHP 4.x */
135 #define CairoContext____construct_args NULL
136 #endif
138 PHP_METHOD(CairoContext, append_path);
139 #if (PHP_MAJOR_VERSION >= 5)
140 ZEND_BEGIN_ARG_INFO_EX(CairoContext__append_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
141 ZEND_ARG_OBJ_INFO(0, p, , 1)
142 ZEND_END_ARG_INFO()
143 #else /* PHP 4.x */
144 #define CairoContext__append_path_args NULL
145 #endif
147 PHP_METHOD(CairoContext, arc);
148 #if (PHP_MAJOR_VERSION >= 5)
149 ZEND_BEGIN_ARG_INFO_EX(CairoContext__arc_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 5)
150 ZEND_ARG_INFO(0, xc)
151 ZEND_ARG_INFO(0, yc)
152 ZEND_ARG_INFO(0, radius)
153 ZEND_ARG_INFO(0, angle1)
154 ZEND_ARG_INFO(0, angle2)
155 ZEND_END_ARG_INFO()
156 #else /* PHP 4.x */
157 #define CairoContext__arc_args NULL
158 #endif
160 PHP_METHOD(CairoContext, arc_negative);
161 #if (PHP_MAJOR_VERSION >= 5)
162 ZEND_BEGIN_ARG_INFO_EX(CairoContext__arc_negative_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 5)
163 ZEND_ARG_INFO(0, xc)
164 ZEND_ARG_INFO(0, yc)
165 ZEND_ARG_INFO(0, radius)
166 ZEND_ARG_INFO(0, angle1)
167 ZEND_ARG_INFO(0, angle2)
168 ZEND_END_ARG_INFO()
169 #else /* PHP 4.x */
170 #define CairoContext__arc_negative_args NULL
171 #endif
173 PHP_METHOD(CairoContext, clip);
174 #if (PHP_MAJOR_VERSION >= 5)
175 ZEND_BEGIN_ARG_INFO_EX(CairoContext__clip_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
176 ZEND_END_ARG_INFO()
177 #else /* PHP 4.x */
178 #define CairoContext__clip_args NULL
179 #endif
181 PHP_METHOD(CairoContext, clip_extents);
182 #if (PHP_MAJOR_VERSION >= 5)
183 ZEND_BEGIN_ARG_INFO_EX(CairoContext__clip_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
184 ZEND_END_ARG_INFO()
185 #else /* PHP 4.x */
186 #define CairoContext__clip_extents_args NULL
187 #endif
189 PHP_METHOD(CairoContext, clip_preserve);
190 #if (PHP_MAJOR_VERSION >= 5)
191 ZEND_BEGIN_ARG_INFO_EX(CairoContext__clip_preserve_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
192 ZEND_END_ARG_INFO()
193 #else /* PHP 4.x */
194 #define CairoContext__clip_preserve_args NULL
195 #endif
197 PHP_METHOD(CairoContext, close_path);
198 #if (PHP_MAJOR_VERSION >= 5)
199 ZEND_BEGIN_ARG_INFO_EX(CairoContext__close_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
200 ZEND_END_ARG_INFO()
201 #else /* PHP 4.x */
202 #define CairoContext__close_path_args NULL
203 #endif
205 PHP_METHOD(CairoContext, copy_clip_rectangle_list);
206 #if (PHP_MAJOR_VERSION >= 5)
207 ZEND_BEGIN_ARG_INFO_EX(CairoContext__copy_clip_rectangle_list_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
208 ZEND_END_ARG_INFO()
209 #else /* PHP 4.x */
210 #define CairoContext__copy_clip_rectangle_list_args NULL
211 #endif
213 PHP_METHOD(CairoContext, copy_page);
214 #if (PHP_MAJOR_VERSION >= 5)
215 ZEND_BEGIN_ARG_INFO_EX(CairoContext__copy_page_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
216 ZEND_END_ARG_INFO()
217 #else /* PHP 4.x */
218 #define CairoContext__copy_page_args NULL
219 #endif
221 PHP_METHOD(CairoContext, copy_path);
222 #if (PHP_MAJOR_VERSION >= 5)
223 ZEND_BEGIN_ARG_INFO_EX(CairoContext__copy_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
224 ZEND_END_ARG_INFO()
225 #else /* PHP 4.x */
226 #define CairoContext__copy_path_args NULL
227 #endif
229 PHP_METHOD(CairoContext, copy_path_flat);
230 #if (PHP_MAJOR_VERSION >= 5)
231 ZEND_BEGIN_ARG_INFO_EX(CairoContext__copy_path_flat_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
232 ZEND_END_ARG_INFO()
233 #else /* PHP 4.x */
234 #define CairoContext__copy_path_flat_args NULL
235 #endif
237 PHP_METHOD(CairoContext, curve_to);
238 #if (PHP_MAJOR_VERSION >= 5)
239 ZEND_BEGIN_ARG_INFO_EX(CairoContext__curve_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 6)
240 ZEND_ARG_INFO(0, x1)
241 ZEND_ARG_INFO(0, y1)
242 ZEND_ARG_INFO(0, x2)
243 ZEND_ARG_INFO(0, y2)
244 ZEND_ARG_INFO(0, x3)
245 ZEND_ARG_INFO(0, y3)
246 ZEND_END_ARG_INFO()
247 #else /* PHP 4.x */
248 #define CairoContext__curve_to_args NULL
249 #endif
251 PHP_METHOD(CairoContext, device_to_user);
252 #if (PHP_MAJOR_VERSION >= 5)
253 ZEND_BEGIN_ARG_INFO_EX(CairoContext__device_to_user_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
254 ZEND_ARG_INFO(0, x)
255 ZEND_ARG_INFO(0, y)
256 ZEND_END_ARG_INFO()
257 #else /* PHP 4.x */
258 #define CairoContext__device_to_user_args NULL
259 #endif
261 PHP_METHOD(CairoContext, device_to_user_distance);
262 #if (PHP_MAJOR_VERSION >= 5)
263 ZEND_BEGIN_ARG_INFO_EX(CairoContext__device_to_user_distance_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
264 ZEND_ARG_INFO(0, x)
265 ZEND_ARG_INFO(0, y)
266 ZEND_END_ARG_INFO()
267 #else /* PHP 4.x */
268 #define CairoContext__device_to_user_distance_args NULL
269 #endif
271 PHP_METHOD(CairoContext, fill);
272 #if (PHP_MAJOR_VERSION >= 5)
273 ZEND_BEGIN_ARG_INFO_EX(CairoContext__fill_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
274 ZEND_END_ARG_INFO()
275 #else /* PHP 4.x */
276 #define CairoContext__fill_args NULL
277 #endif
279 PHP_METHOD(CairoContext, fill_extents);
280 #if (PHP_MAJOR_VERSION >= 5)
281 ZEND_BEGIN_ARG_INFO_EX(CairoContext__fill_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
282 ZEND_END_ARG_INFO()
283 #else /* PHP 4.x */
284 #define CairoContext__fill_extents_args NULL
285 #endif
287 PHP_METHOD(CairoContext, fill_preserve);
288 #if (PHP_MAJOR_VERSION >= 5)
289 ZEND_BEGIN_ARG_INFO_EX(CairoContext__fill_preserve_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
290 ZEND_END_ARG_INFO()
291 #else /* PHP 4.x */
292 #define CairoContext__fill_preserve_args NULL
293 #endif
295 PHP_METHOD(CairoContext, font_extents);
296 #if (PHP_MAJOR_VERSION >= 5)
297 ZEND_BEGIN_ARG_INFO_EX(CairoContext__font_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
298 ZEND_END_ARG_INFO()
299 #else /* PHP 4.x */
300 #define CairoContext__font_extents_args NULL
301 #endif
303 PHP_METHOD(CairoContext, get_antialias);
304 #if (PHP_MAJOR_VERSION >= 5)
305 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_antialias_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
306 ZEND_END_ARG_INFO()
307 #else /* PHP 4.x */
308 #define CairoContext__get_antialias_args NULL
309 #endif
311 PHP_METHOD(CairoContext, get_current_point);
312 #if (PHP_MAJOR_VERSION >= 5)
313 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_current_point_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
314 ZEND_END_ARG_INFO()
315 #else /* PHP 4.x */
316 #define CairoContext__get_current_point_args NULL
317 #endif
319 PHP_METHOD(CairoContext, get_dash);
320 #if (PHP_MAJOR_VERSION >= 5)
321 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_dash_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
322 ZEND_END_ARG_INFO()
323 #else /* PHP 4.x */
324 #define CairoContext__get_dash_args NULL
325 #endif
327 PHP_METHOD(CairoContext, get_dash_count);
328 #if (PHP_MAJOR_VERSION >= 5)
329 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_dash_count_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
330 ZEND_END_ARG_INFO()
331 #else /* PHP 4.x */
332 #define CairoContext__get_dash_count_args NULL
333 #endif
335 PHP_METHOD(CairoContext, get_fill_rule);
336 #if (PHP_MAJOR_VERSION >= 5)
337 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_fill_rule_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
338 ZEND_END_ARG_INFO()
339 #else /* PHP 4.x */
340 #define CairoContext__get_fill_rule_args NULL
341 #endif
343 PHP_METHOD(CairoContext, get_font_face);
344 #if (PHP_MAJOR_VERSION >= 5)
345 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_font_face_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
346 ZEND_END_ARG_INFO()
347 #else /* PHP 4.x */
348 #define CairoContext__get_font_face_args NULL
349 #endif
351 PHP_METHOD(CairoContext, get_font_matrix);
352 #if (PHP_MAJOR_VERSION >= 5)
353 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_font_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
354 ZEND_END_ARG_INFO()
355 #else /* PHP 4.x */
356 #define CairoContext__get_font_matrix_args NULL
357 #endif
359 PHP_METHOD(CairoContext, get_font_options);
360 #if (PHP_MAJOR_VERSION >= 5)
361 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_font_options_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
362 ZEND_END_ARG_INFO()
363 #else /* PHP 4.x */
364 #define CairoContext__get_font_options_args NULL
365 #endif
367 PHP_METHOD(CairoContext, get_group_target);
368 #if (PHP_MAJOR_VERSION >= 5)
369 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_group_target_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
370 ZEND_END_ARG_INFO()
371 #else /* PHP 4.x */
372 #define CairoContext__get_group_target_args NULL
373 #endif
375 PHP_METHOD(CairoContext, get_line_cap);
376 #if (PHP_MAJOR_VERSION >= 5)
377 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_line_cap_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
378 ZEND_END_ARG_INFO()
379 #else /* PHP 4.x */
380 #define CairoContext__get_line_cap_args NULL
381 #endif
383 PHP_METHOD(CairoContext, get_line_join);
384 #if (PHP_MAJOR_VERSION >= 5)
385 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_line_join_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
386 ZEND_END_ARG_INFO()
387 #else /* PHP 4.x */
388 #define CairoContext__get_line_join_args NULL
389 #endif
391 PHP_METHOD(CairoContext, get_line_width);
392 #if (PHP_MAJOR_VERSION >= 5)
393 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_line_width_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
394 ZEND_END_ARG_INFO()
395 #else /* PHP 4.x */
396 #define CairoContext__get_line_width_args NULL
397 #endif
399 PHP_METHOD(CairoContext, get_matrix);
400 #if (PHP_MAJOR_VERSION >= 5)
401 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
402 ZEND_END_ARG_INFO()
403 #else /* PHP 4.x */
404 #define CairoContext__get_matrix_args NULL
405 #endif
407 PHP_METHOD(CairoContext, get_miter_limit);
408 #if (PHP_MAJOR_VERSION >= 5)
409 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_miter_limit_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
410 ZEND_END_ARG_INFO()
411 #else /* PHP 4.x */
412 #define CairoContext__get_miter_limit_args NULL
413 #endif
415 PHP_METHOD(CairoContext, get_operator);
416 #if (PHP_MAJOR_VERSION >= 5)
417 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_operator_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
418 ZEND_END_ARG_INFO()
419 #else /* PHP 4.x */
420 #define CairoContext__get_operator_args NULL
421 #endif
423 PHP_METHOD(CairoContext, get_scaled_font);
424 #if (PHP_MAJOR_VERSION >= 5)
425 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_scaled_font_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
426 ZEND_END_ARG_INFO()
427 #else /* PHP 4.x */
428 #define CairoContext__get_scaled_font_args NULL
429 #endif
431 PHP_METHOD(CairoContext, get_source);
432 #if (PHP_MAJOR_VERSION >= 5)
433 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_source_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
434 ZEND_END_ARG_INFO()
435 #else /* PHP 4.x */
436 #define CairoContext__get_source_args NULL
437 #endif
439 PHP_METHOD(CairoContext, get_target);
440 #if (PHP_MAJOR_VERSION >= 5)
441 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_target_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
442 ZEND_END_ARG_INFO()
443 #else /* PHP 4.x */
444 #define CairoContext__get_target_args NULL
445 #endif
447 PHP_METHOD(CairoContext, get_tolerance);
448 #if (PHP_MAJOR_VERSION >= 5)
449 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_tolerance_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
450 ZEND_END_ARG_INFO()
451 #else /* PHP 4.x */
452 #define CairoContext__get_tolerance_args NULL
453 #endif
455 PHP_METHOD(CairoContext, glyph_extents);
456 #if (PHP_MAJOR_VERSION >= 5)
457 ZEND_BEGIN_ARG_INFO_EX(CairoContext__glyph_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
458 ZEND_ARG_OBJ_INFO(0, obj, , 1)
459 ZEND_ARG_INFO(0, num)
460 ZEND_END_ARG_INFO()
461 #else /* PHP 4.x */
462 #define CairoContext__glyph_extents_args NULL
463 #endif
465 PHP_METHOD(CairoContext, glyph_path);
466 #if (PHP_MAJOR_VERSION >= 5)
467 ZEND_BEGIN_ARG_INFO_EX(CairoContext__glyph_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
468 ZEND_ARG_OBJ_INFO(0, obh, , 1)
469 ZEND_ARG_INFO(0, num)
470 ZEND_END_ARG_INFO()
471 #else /* PHP 4.x */
472 #define CairoContext__glyph_path_args NULL
473 #endif
475 PHP_METHOD(CairoContext, has_current_point);
476 #if (PHP_MAJOR_VERSION >= 5)
477 ZEND_BEGIN_ARG_INFO_EX(CairoContext__has_current_point_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
478 ZEND_END_ARG_INFO()
479 #else /* PHP 4.x */
480 #define CairoContext__has_current_point_args NULL
481 #endif
483 PHP_METHOD(CairoContext, identity_matrix);
484 #if (PHP_MAJOR_VERSION >= 5)
485 ZEND_BEGIN_ARG_INFO_EX(CairoContext__identity_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
486 ZEND_END_ARG_INFO()
487 #else /* PHP 4.x */
488 #define CairoContext__identity_matrix_args NULL
489 #endif
491 PHP_METHOD(CairoContext, in_fill);
492 #if (PHP_MAJOR_VERSION >= 5)
493 ZEND_BEGIN_ARG_INFO_EX(CairoContext__in_fill_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
494 ZEND_ARG_INFO(0, x)
495 ZEND_ARG_INFO(0, y)
496 ZEND_END_ARG_INFO()
497 #else /* PHP 4.x */
498 #define CairoContext__in_fill_args NULL
499 #endif
501 PHP_METHOD(CairoContext, in_stroke);
502 #if (PHP_MAJOR_VERSION >= 5)
503 ZEND_BEGIN_ARG_INFO_EX(CairoContext__in_stroke_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
504 ZEND_ARG_INFO(0, x)
505 ZEND_ARG_INFO(0, y)
506 ZEND_END_ARG_INFO()
507 #else /* PHP 4.x */
508 #define CairoContext__in_stroke_args NULL
509 #endif
511 PHP_METHOD(CairoContext, line_to);
512 #if (PHP_MAJOR_VERSION >= 5)
513 ZEND_BEGIN_ARG_INFO_EX(CairoContext__line_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
514 ZEND_ARG_INFO(0, x)
515 ZEND_ARG_INFO(0, y)
516 ZEND_END_ARG_INFO()
517 #else /* PHP 4.x */
518 #define CairoContext__line_to_args NULL
519 #endif
521 PHP_METHOD(CairoContext, mask);
522 #if (PHP_MAJOR_VERSION >= 5)
523 ZEND_BEGIN_ARG_INFO_EX(CairoContext__mask_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
524 ZEND_ARG_OBJ_INFO(0, p, , 1)
525 ZEND_END_ARG_INFO()
526 #else /* PHP 4.x */
527 #define CairoContext__mask_args NULL
528 #endif
530 PHP_METHOD(CairoContext, mask_surface);
531 #if (PHP_MAJOR_VERSION >= 5)
532 ZEND_BEGIN_ARG_INFO_EX(CairoContext__mask_surface_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
533 ZEND_ARG_OBJ_INFO(0, s, , 1)
534 ZEND_ARG_INFO(0, surface_x)
535 ZEND_ARG_INFO(0, surface_y)
536 ZEND_END_ARG_INFO()
537 #else /* PHP 4.x */
538 #define CairoContext__mask_surface_args NULL
539 #endif
541 PHP_METHOD(CairoContext, move_to);
542 #if (PHP_MAJOR_VERSION >= 5)
543 ZEND_BEGIN_ARG_INFO_EX(CairoContext__move_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
544 ZEND_ARG_INFO(0, x)
545 ZEND_ARG_INFO(0, y)
546 ZEND_END_ARG_INFO()
547 #else /* PHP 4.x */
548 #define CairoContext__move_to_args NULL
549 #endif
551 PHP_METHOD(CairoContext, new_path);
552 #if (PHP_MAJOR_VERSION >= 5)
553 ZEND_BEGIN_ARG_INFO_EX(CairoContext__new_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
554 ZEND_END_ARG_INFO()
555 #else /* PHP 4.x */
556 #define CairoContext__new_path_args NULL
557 #endif
559 PHP_METHOD(CairoContext, new_sub_path);
560 #if (PHP_MAJOR_VERSION >= 5)
561 ZEND_BEGIN_ARG_INFO_EX(CairoContext__new_sub_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
562 ZEND_END_ARG_INFO()
563 #else /* PHP 4.x */
564 #define CairoContext__new_sub_path_args NULL
565 #endif
567 PHP_METHOD(CairoContext, paint);
568 #if (PHP_MAJOR_VERSION >= 5)
569 ZEND_BEGIN_ARG_INFO_EX(CairoContext__paint_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
570 ZEND_END_ARG_INFO()
571 #else /* PHP 4.x */
572 #define CairoContext__paint_args NULL
573 #endif
575 PHP_METHOD(CairoContext, paint_with_alpha);
576 #if (PHP_MAJOR_VERSION >= 5)
577 ZEND_BEGIN_ARG_INFO_EX(CairoContext__paint_with_alpha_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
578 ZEND_ARG_INFO(0, alpha)
579 ZEND_END_ARG_INFO()
580 #else /* PHP 4.x */
581 #define CairoContext__paint_with_alpha_args NULL
582 #endif
584 PHP_METHOD(CairoContext, path_extents);
585 #if (PHP_MAJOR_VERSION >= 5)
586 ZEND_BEGIN_ARG_INFO_EX(CairoContext__path_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
587 ZEND_ARG_OBJ_INFO(0, path, , 1)
588 ZEND_END_ARG_INFO()
589 #else /* PHP 4.x */
590 #define CairoContext__path_extents_args NULL
591 #endif
593 PHP_METHOD(CairoContext, pop_group);
594 #if (PHP_MAJOR_VERSION >= 5)
595 ZEND_BEGIN_ARG_INFO_EX(CairoContext__pop_group_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
596 ZEND_END_ARG_INFO()
597 #else /* PHP 4.x */
598 #define CairoContext__pop_group_args NULL
599 #endif
601 PHP_METHOD(CairoContext, pop_group_to_source);
602 #if (PHP_MAJOR_VERSION >= 5)
603 ZEND_BEGIN_ARG_INFO_EX(CairoContext__pop_group_to_source_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
604 ZEND_END_ARG_INFO()
605 #else /* PHP 4.x */
606 #define CairoContext__pop_group_to_source_args NULL
607 #endif
609 PHP_METHOD(CairoContext, push_group);
610 #if (PHP_MAJOR_VERSION >= 5)
611 ZEND_BEGIN_ARG_INFO_EX(CairoContext__push_group_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
612 ZEND_END_ARG_INFO()
613 #else /* PHP 4.x */
614 #define CairoContext__push_group_args NULL
615 #endif
617 PHP_METHOD(CairoContext, push_group_with_content);
618 #if (PHP_MAJOR_VERSION >= 5)
619 ZEND_BEGIN_ARG_INFO_EX(CairoContext__push_group_with_content_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
620 ZEND_ARG_INFO(0, content)
621 ZEND_END_ARG_INFO()
622 #else /* PHP 4.x */
623 #define CairoContext__push_group_with_content_args NULL
624 #endif
626 PHP_METHOD(CairoContext, rectangle);
627 #if (PHP_MAJOR_VERSION >= 5)
628 ZEND_BEGIN_ARG_INFO_EX(CairoContext__rectangle_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 4)
629 ZEND_ARG_INFO(0, x)
630 ZEND_ARG_INFO(0, y)
631 ZEND_ARG_INFO(0, width)
632 ZEND_ARG_INFO(0, height)
633 ZEND_END_ARG_INFO()
634 #else /* PHP 4.x */
635 #define CairoContext__rectangle_args NULL
636 #endif
638 PHP_METHOD(CairoContext, rel_curve_to);
639 #if (PHP_MAJOR_VERSION >= 5)
640 ZEND_BEGIN_ARG_INFO_EX(CairoContext__rel_curve_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 6)
641 ZEND_ARG_INFO(0, x1)
642 ZEND_ARG_INFO(0, y1)
643 ZEND_ARG_INFO(0, x2)
644 ZEND_ARG_INFO(0, y2)
645 ZEND_ARG_INFO(0, x3)
646 ZEND_ARG_INFO(0, y3)
647 ZEND_END_ARG_INFO()
648 #else /* PHP 4.x */
649 #define CairoContext__rel_curve_to_args NULL
650 #endif
652 PHP_METHOD(CairoContext, rel_line_to);
653 #if (PHP_MAJOR_VERSION >= 5)
654 ZEND_BEGIN_ARG_INFO_EX(CairoContext__rel_line_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
655 ZEND_ARG_INFO(0, x)
656 ZEND_ARG_INFO(0, y)
657 ZEND_END_ARG_INFO()
658 #else /* PHP 4.x */
659 #define CairoContext__rel_line_to_args NULL
660 #endif
662 PHP_METHOD(CairoContext, rel_move_to);
663 #if (PHP_MAJOR_VERSION >= 5)
664 ZEND_BEGIN_ARG_INFO_EX(CairoContext__rel_move_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
665 ZEND_ARG_INFO(0, x)
666 ZEND_ARG_INFO(0, y)
667 ZEND_END_ARG_INFO()
668 #else /* PHP 4.x */
669 #define CairoContext__rel_move_to_args NULL
670 #endif
672 PHP_METHOD(CairoContext, reset_clip);
673 #if (PHP_MAJOR_VERSION >= 5)
674 ZEND_BEGIN_ARG_INFO_EX(CairoContext__reset_clip_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
675 ZEND_END_ARG_INFO()
676 #else /* PHP 4.x */
677 #define CairoContext__reset_clip_args NULL
678 #endif
680 PHP_METHOD(CairoContext, restore);
681 #if (PHP_MAJOR_VERSION >= 5)
682 ZEND_BEGIN_ARG_INFO_EX(CairoContext__restore_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
683 ZEND_END_ARG_INFO()
684 #else /* PHP 4.x */
685 #define CairoContext__restore_args NULL
686 #endif
688 PHP_METHOD(CairoContext, rotate);
689 #if (PHP_MAJOR_VERSION >= 5)
690 ZEND_BEGIN_ARG_INFO_EX(CairoContext__rotate_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
691 ZEND_ARG_INFO(0, angle)
692 ZEND_END_ARG_INFO()
693 #else /* PHP 4.x */
694 #define CairoContext__rotate_args NULL
695 #endif
697 PHP_METHOD(CairoContext, save);
698 #if (PHP_MAJOR_VERSION >= 5)
699 ZEND_BEGIN_ARG_INFO_EX(CairoContext__save_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
700 ZEND_END_ARG_INFO()
701 #else /* PHP 4.x */
702 #define CairoContext__save_args NULL
703 #endif
705 PHP_METHOD(CairoContext, scale);
706 #if (PHP_MAJOR_VERSION >= 5)
707 ZEND_BEGIN_ARG_INFO_EX(CairoContext__scale_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
708 ZEND_ARG_INFO(0, x)
709 ZEND_ARG_INFO(0, y)
710 ZEND_END_ARG_INFO()
711 #else /* PHP 4.x */
712 #define CairoContext__scale_args NULL
713 #endif
715 PHP_METHOD(CairoContext, select_font_face);
716 #if (PHP_MAJOR_VERSION >= 5)
717 ZEND_BEGIN_ARG_INFO_EX(CairoContext__select_font_face_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
718 ZEND_ARG_OBJ_INFO(0, obj, , 1)
719 ZEND_ARG_INFO(0, slant)
720 ZEND_ARG_INFO(0, weight)
721 ZEND_END_ARG_INFO()
722 #else /* PHP 4.x */
723 #define CairoContext__select_font_face_args NULL
724 #endif
726 PHP_METHOD(CairoContext, set_antialias);
727 #if (PHP_MAJOR_VERSION >= 5)
728 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_antialias_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
729 ZEND_ARG_INFO(0, antialias)
730 ZEND_END_ARG_INFO()
731 #else /* PHP 4.x */
732 #define CairoContext__set_antialias_args NULL
733 #endif
735 PHP_METHOD(CairoContext, set_dash);
736 #if (PHP_MAJOR_VERSION >= 5)
737 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_dash_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
738 ZEND_ARG_OBJ_INFO(0, dashes, , 1)
739 ZEND_ARG_INFO(0, offset)
740 ZEND_END_ARG_INFO()
741 #else /* PHP 4.x */
742 #define CairoContext__set_dash_args NULL
743 #endif
745 PHP_METHOD(CairoContext, set_fill_rule);
746 #if (PHP_MAJOR_VERSION >= 5)
747 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_fill_rule_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
748 ZEND_ARG_INFO(0, fill_rule)
749 ZEND_END_ARG_INFO()
750 #else /* PHP 4.x */
751 #define CairoContext__set_fill_rule_args NULL
752 #endif
754 PHP_METHOD(CairoContext, set_font_face);
755 #if (PHP_MAJOR_VERSION >= 5)
756 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_font_face_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
757 ZEND_ARG_OBJ_INFO(0, obj, , 1)
758 ZEND_END_ARG_INFO()
759 #else /* PHP 4.x */
760 #define CairoContext__set_font_face_args NULL
761 #endif
763 PHP_METHOD(CairoContext, set_font_matrix);
764 #if (PHP_MAJOR_VERSION >= 5)
765 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_font_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
766 ZEND_ARG_OBJ_INFO(0, matrix, , 1)
767 ZEND_END_ARG_INFO()
768 #else /* PHP 4.x */
769 #define CairoContext__set_font_matrix_args NULL
770 #endif
772 PHP_METHOD(CairoContext, set_font_options);
773 #if (PHP_MAJOR_VERSION >= 5)
774 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_font_options_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
775 ZEND_ARG_OBJ_INFO(0, options, , 1)
776 ZEND_END_ARG_INFO()
777 #else /* PHP 4.x */
778 #define CairoContext__set_font_options_args NULL
779 #endif
781 PHP_METHOD(CairoContext, set_font_size);
782 #if (PHP_MAJOR_VERSION >= 5)
783 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_font_size_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
784 ZEND_ARG_INFO(0, size)
785 ZEND_END_ARG_INFO()
786 #else /* PHP 4.x */
787 #define CairoContext__set_font_size_args NULL
788 #endif
790 PHP_METHOD(CairoContext, set_line_cap);
791 #if (PHP_MAJOR_VERSION >= 5)
792 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_line_cap_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
793 ZEND_ARG_INFO(0, line_cap)
794 ZEND_END_ARG_INFO()
795 #else /* PHP 4.x */
796 #define CairoContext__set_line_cap_args NULL
797 #endif
799 PHP_METHOD(CairoContext, set_line_join);
800 #if (PHP_MAJOR_VERSION >= 5)
801 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_line_join_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
802 ZEND_ARG_INFO(0, line_join)
803 ZEND_END_ARG_INFO()
804 #else /* PHP 4.x */
805 #define CairoContext__set_line_join_args NULL
806 #endif
808 PHP_METHOD(CairoContext, set_line_width);
809 #if (PHP_MAJOR_VERSION >= 5)
810 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_line_width_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
811 ZEND_ARG_INFO(0, width)
812 ZEND_END_ARG_INFO()
813 #else /* PHP 4.x */
814 #define CairoContext__set_line_width_args NULL
815 #endif
817 PHP_METHOD(CairoContext, set_matrix);
818 #if (PHP_MAJOR_VERSION >= 5)
819 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
820 ZEND_ARG_OBJ_INFO(0, matix, , 1)
821 ZEND_END_ARG_INFO()
822 #else /* PHP 4.x */
823 #define CairoContext__set_matrix_args NULL
824 #endif
826 PHP_METHOD(CairoContext, set_miter_limit);
827 #if (PHP_MAJOR_VERSION >= 5)
828 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_miter_limit_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
829 ZEND_ARG_INFO(0, limit)
830 ZEND_END_ARG_INFO()
831 #else /* PHP 4.x */
832 #define CairoContext__set_miter_limit_args NULL
833 #endif
835 PHP_METHOD(CairoContext, set_operator);
836 #if (PHP_MAJOR_VERSION >= 5)
837 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_operator_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
838 ZEND_ARG_INFO(0, op)
839 ZEND_END_ARG_INFO()
840 #else /* PHP 4.x */
841 #define CairoContext__set_operator_args NULL
842 #endif
844 PHP_METHOD(CairoContext, set_source);
845 #if (PHP_MAJOR_VERSION >= 5)
846 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_source_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
847 ZEND_ARG_OBJ_INFO(0, p, , 1)
848 ZEND_END_ARG_INFO()
849 #else /* PHP 4.x */
850 #define CairoContext__set_source_args NULL
851 #endif
853 PHP_METHOD(CairoContext, set_source_rgb);
854 #if (PHP_MAJOR_VERSION >= 5)
855 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_source_rgb_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 3)
856 ZEND_ARG_INFO(0, red)
857 ZEND_ARG_INFO(0, green)
858 ZEND_ARG_INFO(0, blue)
859 ZEND_END_ARG_INFO()
860 #else /* PHP 4.x */
861 #define CairoContext__set_source_rgb_args NULL
862 #endif
864 PHP_METHOD(CairoContext, set_source_rgba);
865 #if (PHP_MAJOR_VERSION >= 5)
866 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_source_rgba_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 3)
867 ZEND_ARG_INFO(0, red)
868 ZEND_ARG_INFO(0, green)
869 ZEND_ARG_INFO(0, blue)
870 ZEND_ARG_INFO(0, alpha)
871 ZEND_END_ARG_INFO()
872 #else /* PHP 4.x */
873 #define CairoContext__set_source_rgba_args NULL
874 #endif
876 PHP_METHOD(CairoContext, set_source_surface);
877 #if (PHP_MAJOR_VERSION >= 5)
878 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_source_surface_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
879 ZEND_ARG_OBJ_INFO(0, surface, , 1)
880 ZEND_ARG_INFO(0, x)
881 ZEND_ARG_INFO(0, y)
882 ZEND_END_ARG_INFO()
883 #else /* PHP 4.x */
884 #define CairoContext__set_source_surface_args NULL
885 #endif
887 PHP_METHOD(CairoContext, set_tolerance);
888 #if (PHP_MAJOR_VERSION >= 5)
889 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_tolerance_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
890 ZEND_ARG_INFO(0, tolerance)
891 ZEND_END_ARG_INFO()
892 #else /* PHP 4.x */
893 #define CairoContext__set_tolerance_args NULL
894 #endif
896 PHP_METHOD(CairoContext, show_glyphs);
897 #if (PHP_MAJOR_VERSION >= 5)
898 ZEND_BEGIN_ARG_INFO_EX(CairoContext__show_glyphs_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
899 ZEND_ARG_OBJ_INFO(0, glyphs, , 1)
900 ZEND_ARG_INFO(0, num_glyphs)
901 ZEND_END_ARG_INFO()
902 #else /* PHP 4.x */
903 #define CairoContext__show_glyphs_args NULL
904 #endif
906 PHP_METHOD(CairoContext, show_page);
907 #if (PHP_MAJOR_VERSION >= 5)
908 ZEND_BEGIN_ARG_INFO_EX(CairoContext__show_page_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
909 ZEND_END_ARG_INFO()
910 #else /* PHP 4.x */
911 #define CairoContext__show_page_args NULL
912 #endif
914 PHP_METHOD(CairoContext, show_text);
915 #if (PHP_MAJOR_VERSION >= 5)
916 ZEND_BEGIN_ARG_INFO_EX(CairoContext__show_text_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
917 ZEND_ARG_OBJ_INFO(0, obj, , 1)
918 ZEND_END_ARG_INFO()
919 #else /* PHP 4.x */
920 #define CairoContext__show_text_args NULL
921 #endif
923 PHP_METHOD(CairoContext, stroke);
924 #if (PHP_MAJOR_VERSION >= 5)
925 ZEND_BEGIN_ARG_INFO_EX(CairoContext__stroke_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
926 ZEND_END_ARG_INFO()
927 #else /* PHP 4.x */
928 #define CairoContext__stroke_args NULL
929 #endif
931 PHP_METHOD(CairoContext, stroke_extents);
932 #if (PHP_MAJOR_VERSION >= 5)
933 ZEND_BEGIN_ARG_INFO_EX(CairoContext__stroke_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
934 ZEND_END_ARG_INFO()
935 #else /* PHP 4.x */
936 #define CairoContext__stroke_extents_args NULL
937 #endif
939 PHP_METHOD(CairoContext, stroke_preserve);
940 #if (PHP_MAJOR_VERSION >= 5)
941 ZEND_BEGIN_ARG_INFO_EX(CairoContext__stroke_preserve_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
942 ZEND_END_ARG_INFO()
943 #else /* PHP 4.x */
944 #define CairoContext__stroke_preserve_args NULL
945 #endif
947 PHP_METHOD(CairoContext, text_extents);
948 #if (PHP_MAJOR_VERSION >= 5)
949 ZEND_BEGIN_ARG_INFO_EX(CairoContext__text_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
950 ZEND_ARG_OBJ_INFO(0, extents, , 1)
951 ZEND_END_ARG_INFO()
952 #else /* PHP 4.x */
953 #define CairoContext__text_extents_args NULL
954 #endif
956 PHP_METHOD(CairoContext, text_path);
957 #if (PHP_MAJOR_VERSION >= 5)
958 ZEND_BEGIN_ARG_INFO_EX(CairoContext__text_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
959 ZEND_ARG_OBJ_INFO(0, obj, , 1)
960 ZEND_END_ARG_INFO()
961 #else /* PHP 4.x */
962 #define CairoContext__text_path_args NULL
963 #endif
965 PHP_METHOD(CairoContext, transform);
966 #if (PHP_MAJOR_VERSION >= 5)
967 ZEND_BEGIN_ARG_INFO_EX(CairoContext__transform_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
968 ZEND_ARG_OBJ_INFO(0, matrix, , 1)
969 ZEND_END_ARG_INFO()
970 #else /* PHP 4.x */
971 #define CairoContext__transform_args NULL
972 #endif
974 PHP_METHOD(CairoContext, translate);
975 #if (PHP_MAJOR_VERSION >= 5)
976 ZEND_BEGIN_ARG_INFO_EX(CairoContext__translate_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
977 ZEND_ARG_INFO(0, tx)
978 ZEND_ARG_INFO(0, ty)
979 ZEND_END_ARG_INFO()
980 #else /* PHP 4.x */
981 #define CairoContext__translate_args NULL
982 #endif
984 PHP_METHOD(CairoContext, user_to_device);
985 #if (PHP_MAJOR_VERSION >= 5)
986 ZEND_BEGIN_ARG_INFO_EX(CairoContext__user_to_device_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
987 ZEND_ARG_INFO(0, x)
988 ZEND_ARG_INFO(0, y)
989 ZEND_END_ARG_INFO()
990 #else /* PHP 4.x */
991 #define CairoContext__user_to_device_args NULL
992 #endif
994 PHP_METHOD(CairoContext, user_to_device_distance);
995 #if (PHP_MAJOR_VERSION >= 5)
996 ZEND_BEGIN_ARG_INFO_EX(CairoContext__user_to_device_distance_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
997 ZEND_ARG_INFO(0, dx)
998 ZEND_ARG_INFO(0, dy)
999 ZEND_END_ARG_INFO()
1000 #else /* PHP 4.x */
1001 #define CairoContext__user_to_device_distance_args NULL
1002 #endif
1004 PHP_METHOD(CairoFontFace, __construct);
1005 #if (PHP_MAJOR_VERSION >= 5)
1006 ZEND_BEGIN_ARG_INFO_EX(CairoFontFace____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1007 ZEND_END_ARG_INFO()
1008 #else /* PHP 4.x */
1009 #define CairoFontFace____construct_args NULL
1010 #endif
1012 PHP_METHOD(CairoFontFace, __destruct);
1013 #if (PHP_MAJOR_VERSION >= 5)
1014 ZEND_BEGIN_ARG_INFO_EX(CairoFontFace____destruct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1015 ZEND_END_ARG_INFO()
1016 #else /* PHP 4.x */
1017 #define CairoFontFace____destruct_args NULL
1018 #endif
1020 PHP_METHOD(CairoFontOptions, __construct);
1021 #if (PHP_MAJOR_VERSION >= 5)
1022 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1023 ZEND_END_ARG_INFO()
1024 #else /* PHP 4.x */
1025 #define CairoFontOptions____construct_args NULL
1026 #endif
1028 PHP_METHOD(CairoFontOptions, get_antialias);
1029 #if (PHP_MAJOR_VERSION >= 5)
1030 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__get_antialias_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1031 ZEND_END_ARG_INFO()
1032 #else /* PHP 4.x */
1033 #define CairoFontOptions__get_antialias_args NULL
1034 #endif
1036 PHP_METHOD(CairoFontOptions, get_hint_metrics);
1037 #if (PHP_MAJOR_VERSION >= 5)
1038 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__get_hint_metrics_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1039 ZEND_END_ARG_INFO()
1040 #else /* PHP 4.x */
1041 #define CairoFontOptions__get_hint_metrics_args NULL
1042 #endif
1044 PHP_METHOD(CairoFontOptions, get_hint_style);
1045 #if (PHP_MAJOR_VERSION >= 5)
1046 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__get_hint_style_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1047 ZEND_END_ARG_INFO()
1048 #else /* PHP 4.x */
1049 #define CairoFontOptions__get_hint_style_args NULL
1050 #endif
1052 PHP_METHOD(CairoFontOptions, get_subpixel_order);
1053 #if (PHP_MAJOR_VERSION >= 5)
1054 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__get_subpixel_order_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1055 ZEND_END_ARG_INFO()
1056 #else /* PHP 4.x */
1057 #define CairoFontOptions__get_subpixel_order_args NULL
1058 #endif
1060 PHP_METHOD(CairoFontOptions, set_antialias);
1061 #if (PHP_MAJOR_VERSION >= 5)
1062 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__set_antialias_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1063 ZEND_ARG_INFO(0, aa)
1064 ZEND_END_ARG_INFO()
1065 #else /* PHP 4.x */
1066 #define CairoFontOptions__set_antialias_args NULL
1067 #endif
1069 PHP_METHOD(CairoFontOptions, set_hint_metrics);
1070 #if (PHP_MAJOR_VERSION >= 5)
1071 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__set_hint_metrics_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1072 ZEND_ARG_INFO(0, hm)
1073 ZEND_END_ARG_INFO()
1074 #else /* PHP 4.x */
1075 #define CairoFontOptions__set_hint_metrics_args NULL
1076 #endif
1078 PHP_METHOD(CairoFontOptions, set_hint_style);
1079 #if (PHP_MAJOR_VERSION >= 5)
1080 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__set_hint_style_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1081 ZEND_ARG_INFO(0, hs)
1082 ZEND_END_ARG_INFO()
1083 #else /* PHP 4.x */
1084 #define CairoFontOptions__set_hint_style_args NULL
1085 #endif
1087 PHP_METHOD(CairoFontOptions, set_subpixel_order);
1088 #if (PHP_MAJOR_VERSION >= 5)
1089 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__set_subpixel_order_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1090 ZEND_ARG_INFO(0, so)
1091 ZEND_END_ARG_INFO()
1092 #else /* PHP 4.x */
1093 #define CairoFontOptions__set_subpixel_order_args NULL
1094 #endif
1096 PHP_METHOD(CairoMatrix, __construct);
1097 #if (PHP_MAJOR_VERSION >= 5)
1098 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 5)
1099 ZEND_ARG_INFO(0, yx)
1100 ZEND_ARG_INFO(0, xy)
1101 ZEND_ARG_INFO(0, yy)
1102 ZEND_ARG_INFO(0, x0)
1103 ZEND_ARG_INFO(0, y0)
1104 ZEND_END_ARG_INFO()
1105 #else /* PHP 4.x */
1106 #define CairoMatrix____construct_args NULL
1107 #endif
1109 PHP_METHOD(CairoMatrix, init_rotate);
1110 #if (PHP_MAJOR_VERSION >= 5)
1111 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__init_rotate_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1112 ZEND_ARG_INFO(0, radians)
1113 ZEND_END_ARG_INFO()
1114 #else /* PHP 4.x */
1115 #define CairoMatrix__init_rotate_args NULL
1116 #endif
1118 PHP_METHOD(CairoMatrix, invert);
1119 #if (PHP_MAJOR_VERSION >= 5)
1120 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__invert_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1121 ZEND_END_ARG_INFO()
1122 #else /* PHP 4.x */
1123 #define CairoMatrix__invert_args NULL
1124 #endif
1126 PHP_METHOD(CairoMatrix, multiply);
1127 #if (PHP_MAJOR_VERSION >= 5)
1128 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__multiply_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1129 ZEND_ARG_OBJ_INFO(0, o2, , 1)
1130 ZEND_END_ARG_INFO()
1131 #else /* PHP 4.x */
1132 #define CairoMatrix__multiply_args NULL
1133 #endif
1135 PHP_METHOD(CairoMatrix, rotate);
1136 #if (PHP_MAJOR_VERSION >= 5)
1137 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__rotate_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1138 ZEND_ARG_INFO(0, radians)
1139 ZEND_END_ARG_INFO()
1140 #else /* PHP 4.x */
1141 #define CairoMatrix__rotate_args NULL
1142 #endif
1144 PHP_METHOD(CairoMatrix, scale);
1145 #if (PHP_MAJOR_VERSION >= 5)
1146 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__scale_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1147 ZEND_ARG_INFO(0, sx)
1148 ZEND_ARG_INFO(0, xy)
1149 ZEND_END_ARG_INFO()
1150 #else /* PHP 4.x */
1151 #define CairoMatrix__scale_args NULL
1152 #endif
1154 PHP_METHOD(CairoMatrix, transform_distance);
1155 #if (PHP_MAJOR_VERSION >= 5)
1156 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__transform_distance_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1157 ZEND_ARG_INFO(0, dx)
1158 ZEND_ARG_INFO(0, dy)
1159 ZEND_END_ARG_INFO()
1160 #else /* PHP 4.x */
1161 #define CairoMatrix__transform_distance_args NULL
1162 #endif
1164 PHP_METHOD(CairoMatrix, transform_point);
1165 #if (PHP_MAJOR_VERSION >= 5)
1166 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__transform_point_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1167 ZEND_ARG_INFO(0, x)
1168 ZEND_ARG_INFO(0, y)
1169 ZEND_END_ARG_INFO()
1170 #else /* PHP 4.x */
1171 #define CairoMatrix__transform_point_args NULL
1172 #endif
1174 PHP_METHOD(CairoMatrix, translate);
1175 #if (PHP_MAJOR_VERSION >= 5)
1176 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__translate_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1177 ZEND_ARG_INFO(0, tx)
1178 ZEND_ARG_INFO(0, ty)
1179 ZEND_END_ARG_INFO()
1180 #else /* PHP 4.x */
1181 #define CairoMatrix__translate_args NULL
1182 #endif
1184 PHP_METHOD(CairoPath, __construct);
1185 #if (PHP_MAJOR_VERSION >= 5)
1186 ZEND_BEGIN_ARG_INFO_EX(CairoPath____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1187 ZEND_END_ARG_INFO()
1188 #else /* PHP 4.x */
1189 #define CairoPath____construct_args NULL
1190 #endif
1192 PHP_METHOD(CairoPath, str);
1193 #if (PHP_MAJOR_VERSION >= 5)
1194 ZEND_BEGIN_ARG_INFO_EX(CairoPath__str_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1195 ZEND_END_ARG_INFO()
1196 #else /* PHP 4.x */
1197 #define CairoPath__str_args NULL
1198 #endif
1200 PHP_METHOD(CairoPattern, __construct);
1201 #if (PHP_MAJOR_VERSION >= 5)
1202 ZEND_BEGIN_ARG_INFO_EX(CairoPattern____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1203 ZEND_END_ARG_INFO()
1204 #else /* PHP 4.x */
1205 #define CairoPattern____construct_args NULL
1206 #endif
1208 PHP_METHOD(CairoPattern, get_matrix);
1209 #if (PHP_MAJOR_VERSION >= 5)
1210 ZEND_BEGIN_ARG_INFO_EX(CairoPattern__get_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1211 ZEND_END_ARG_INFO()
1212 #else /* PHP 4.x */
1213 #define CairoPattern__get_matrix_args NULL
1214 #endif
1216 PHP_METHOD(CairoPattern, set_matrix);
1217 #if (PHP_MAJOR_VERSION >= 5)
1218 ZEND_BEGIN_ARG_INFO_EX(CairoPattern__set_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1219 ZEND_ARG_OBJ_INFO(0, m, , 1)
1220 ZEND_END_ARG_INFO()
1221 #else /* PHP 4.x */
1222 #define CairoPattern__set_matrix_args NULL
1223 #endif
1225 PHP_METHOD(CairoGradient, __contruct);
1226 #if (PHP_MAJOR_VERSION >= 5)
1227 ZEND_BEGIN_ARG_INFO_EX(CairoGradient____contruct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1228 ZEND_END_ARG_INFO()
1229 #else /* PHP 4.x */
1230 #define CairoGradient____contruct_args NULL
1231 #endif
1233 PHP_METHOD(CairoGradient, add_color_stop_rgb);
1234 #if (PHP_MAJOR_VERSION >= 5)
1235 ZEND_BEGIN_ARG_INFO_EX(CairoGradient__add_color_stop_rgb_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 4)
1236 ZEND_ARG_INFO(0, offset)
1237 ZEND_ARG_INFO(0, red)
1238 ZEND_ARG_INFO(0, green)
1239 ZEND_ARG_INFO(0, blue)
1240 ZEND_END_ARG_INFO()
1241 #else /* PHP 4.x */
1242 #define CairoGradient__add_color_stop_rgb_args NULL
1243 #endif
1245 PHP_METHOD(CairoGradient, add_color_stop_rgba);
1246 #if (PHP_MAJOR_VERSION >= 5)
1247 ZEND_BEGIN_ARG_INFO_EX(CairoGradient__add_color_stop_rgba_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 5)
1248 ZEND_ARG_INFO(0, offset)
1249 ZEND_ARG_INFO(0, red)
1250 ZEND_ARG_INFO(0, green)
1251 ZEND_ARG_INFO(0, blue)
1252 ZEND_ARG_INFO(0, alpha)
1253 ZEND_END_ARG_INFO()
1254 #else /* PHP 4.x */
1255 #define CairoGradient__add_color_stop_rgba_args NULL
1256 #endif
1258 PHP_METHOD(CairoLinearGradient, __construct);
1259 #if (PHP_MAJOR_VERSION >= 5)
1260 ZEND_BEGIN_ARG_INFO_EX(CairoLinearGradient____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 3)
1261 ZEND_ARG_INFO(0, y0)
1262 ZEND_ARG_INFO(0, x1)
1263 ZEND_ARG_INFO(0, y1)
1264 ZEND_END_ARG_INFO()
1265 #else /* PHP 4.x */
1266 #define CairoLinearGradient____construct_args NULL
1267 #endif
1269 PHP_METHOD(CairoLinearGradient, get_linear_points);
1270 #if (PHP_MAJOR_VERSION >= 5)
1271 ZEND_BEGIN_ARG_INFO_EX(CairoLinearGradient__get_linear_points_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1272 ZEND_END_ARG_INFO()
1273 #else /* PHP 4.x */
1274 #define CairoLinearGradient__get_linear_points_args NULL
1275 #endif
1277 PHP_METHOD(CairoRadialGradient, __constuct);
1278 #if (PHP_MAJOR_VERSION >= 5)
1279 ZEND_BEGIN_ARG_INFO_EX(CairoRadialGradient____constuct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 6)
1280 ZEND_ARG_INFO(0, cx0)
1281 ZEND_ARG_INFO(0, cy0)
1282 ZEND_ARG_INFO(0, radius0)
1283 ZEND_ARG_INFO(0, cx1)
1284 ZEND_ARG_INFO(0, cy1)
1285 ZEND_ARG_INFO(0, radius1)
1286 ZEND_END_ARG_INFO()
1287 #else /* PHP 4.x */
1288 #define CairoRadialGradient____constuct_args NULL
1289 #endif
1291 PHP_METHOD(CairoRadialGradient, get_radial_circles);
1292 #if (PHP_MAJOR_VERSION >= 5)
1293 ZEND_BEGIN_ARG_INFO_EX(CairoRadialGradient__get_radial_circles_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1294 ZEND_END_ARG_INFO()
1295 #else /* PHP 4.x */
1296 #define CairoRadialGradient__get_radial_circles_args NULL
1297 #endif
1299 PHP_METHOD(CairoSolidPattern, __construct);
1300 #if (PHP_MAJOR_VERSION >= 5)
1301 ZEND_BEGIN_ARG_INFO_EX(CairoSolidPattern____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1302 ZEND_ARG_INFO(0, g)
1303 ZEND_ARG_INFO(0, b)
1304 ZEND_ARG_INFO(0, a)
1305 ZEND_END_ARG_INFO()
1306 #else /* PHP 4.x */
1307 #define CairoSolidPattern____construct_args NULL
1308 #endif
1310 PHP_METHOD(CairoSolidPattern, get_rgba);
1311 #if (PHP_MAJOR_VERSION >= 5)
1312 ZEND_BEGIN_ARG_INFO_EX(CairoSolidPattern__get_rgba_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1313 ZEND_END_ARG_INFO()
1314 #else /* PHP 4.x */
1315 #define CairoSolidPattern__get_rgba_args NULL
1316 #endif
1318 PHP_METHOD(CairoSurfacePattern, __construct);
1319 #if (PHP_MAJOR_VERSION >= 5)
1320 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1321 ZEND_END_ARG_INFO()
1322 #else /* PHP 4.x */
1323 #define CairoSurfacePattern____construct_args NULL
1324 #endif
1326 PHP_METHOD(CairoSurfacePattern, get_extend);
1327 #if (PHP_MAJOR_VERSION >= 5)
1328 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern__get_extend_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1329 ZEND_END_ARG_INFO()
1330 #else /* PHP 4.x */
1331 #define CairoSurfacePattern__get_extend_args NULL
1332 #endif
1334 PHP_METHOD(CairoSurfacePattern, get_filter);
1335 #if (PHP_MAJOR_VERSION >= 5)
1336 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern__get_filter_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1337 ZEND_END_ARG_INFO()
1338 #else /* PHP 4.x */
1339 #define CairoSurfacePattern__get_filter_args NULL
1340 #endif
1342 PHP_METHOD(CairoSurfacePattern, get_surface);
1343 #if (PHP_MAJOR_VERSION >= 5)
1344 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern__get_surface_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1345 ZEND_END_ARG_INFO()
1346 #else /* PHP 4.x */
1347 #define CairoSurfacePattern__get_surface_args NULL
1348 #endif
1350 PHP_METHOD(CairoSurfacePattern, set_extend);
1351 #if (PHP_MAJOR_VERSION >= 5)
1352 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern__set_extend_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1353 ZEND_ARG_INFO(0, extend)
1354 ZEND_END_ARG_INFO()
1355 #else /* PHP 4.x */
1356 #define CairoSurfacePattern__set_extend_args NULL
1357 #endif
1359 PHP_METHOD(CairoSurfacePattern, set_filter);
1360 #if (PHP_MAJOR_VERSION >= 5)
1361 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern__set_filter_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1362 ZEND_ARG_INFO(0, filter)
1363 ZEND_END_ARG_INFO()
1364 #else /* PHP 4.x */
1365 #define CairoSurfacePattern__set_filter_args NULL
1366 #endif
1368 PHP_METHOD(CairoScaledFont, __construct);
1369 #if (PHP_MAJOR_VERSION >= 5)
1370 ZEND_BEGIN_ARG_INFO_EX(CairoScaledFont____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 3)
1371 ZEND_ARG_OBJ_INFO(0, mx1, , 1)
1372 ZEND_ARG_OBJ_INFO(0, mx2, , 1)
1373 ZEND_ARG_OBJ_INFO(0, fo, , 1)
1374 ZEND_END_ARG_INFO()
1375 #else /* PHP 4.x */
1376 #define CairoScaledFont____construct_args NULL
1377 #endif
1379 PHP_METHOD(CairoScaledFont, extents);
1380 #if (PHP_MAJOR_VERSION >= 5)
1381 ZEND_BEGIN_ARG_INFO_EX(CairoScaledFont__extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1382 ZEND_END_ARG_INFO()
1383 #else /* PHP 4.x */
1384 #define CairoScaledFont__extents_args NULL
1385 #endif
1387 PHP_METHOD(CairoScaledFont, get_font_face);
1388 #if (PHP_MAJOR_VERSION >= 5)
1389 ZEND_BEGIN_ARG_INFO_EX(CairoScaledFont__get_font_face_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1390 ZEND_END_ARG_INFO()
1391 #else /* PHP 4.x */
1392 #define CairoScaledFont__get_font_face_args NULL
1393 #endif
1395 PHP_METHOD(CairoScaledFont, text_extents);
1396 #if (PHP_MAJOR_VERSION >= 5)
1397 ZEND_BEGIN_ARG_INFO_EX(CairoScaledFont__text_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1398 ZEND_ARG_INFO(0, str)
1399 ZEND_END_ARG_INFO()
1400 #else /* PHP 4.x */
1401 #define CairoScaledFont__text_extents_args NULL
1402 #endif
1404 PHP_METHOD(CairoSurface, __construct);
1405 #if (PHP_MAJOR_VERSION >= 5)
1406 ZEND_BEGIN_ARG_INFO_EX(CairoSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1407 ZEND_END_ARG_INFO()
1408 #else /* PHP 4.x */
1409 #define CairoSurface____construct_args NULL
1410 #endif
1412 PHP_METHOD(CairoSurface, create_similar);
1413 #if (PHP_MAJOR_VERSION >= 5)
1414 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__create_similar_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 3)
1415 ZEND_ARG_INFO(0, content)
1416 ZEND_ARG_INFO(0, width)
1417 ZEND_ARG_INFO(0, height)
1418 ZEND_END_ARG_INFO()
1419 #else /* PHP 4.x */
1420 #define CairoSurface__create_similar_args NULL
1421 #endif
1423 PHP_METHOD(CairoSurface, finish);
1424 #if (PHP_MAJOR_VERSION >= 5)
1425 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__finish_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1426 ZEND_END_ARG_INFO()
1427 #else /* PHP 4.x */
1428 #define CairoSurface__finish_args NULL
1429 #endif
1431 PHP_METHOD(CairoSurface, flush);
1432 #if (PHP_MAJOR_VERSION >= 5)
1433 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__flush_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1434 ZEND_END_ARG_INFO()
1435 #else /* PHP 4.x */
1436 #define CairoSurface__flush_args NULL
1437 #endif
1439 PHP_METHOD(CairoSurface, get_content);
1440 #if (PHP_MAJOR_VERSION >= 5)
1441 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__get_content_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1442 ZEND_END_ARG_INFO()
1443 #else /* PHP 4.x */
1444 #define CairoSurface__get_content_args NULL
1445 #endif
1447 PHP_METHOD(CairoSurface, get_device_offset);
1448 #if (PHP_MAJOR_VERSION >= 5)
1449 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__get_device_offset_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1450 ZEND_END_ARG_INFO()
1451 #else /* PHP 4.x */
1452 #define CairoSurface__get_device_offset_args NULL
1453 #endif
1455 PHP_METHOD(CairoSurface, get_font_options);
1456 #if (PHP_MAJOR_VERSION >= 5)
1457 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__get_font_options_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1458 ZEND_END_ARG_INFO()
1459 #else /* PHP 4.x */
1460 #define CairoSurface__get_font_options_args NULL
1461 #endif
1463 PHP_METHOD(CairoSurface, mark_dirty_rectangle);
1464 #if (PHP_MAJOR_VERSION >= 5)
1465 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__mark_dirty_rectangle_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1466 ZEND_ARG_INFO(0, x)
1467 ZEND_ARG_INFO(0, y)
1468 ZEND_ARG_INFO(0, width)
1469 ZEND_ARG_INFO(0, height)
1470 ZEND_END_ARG_INFO()
1471 #else /* PHP 4.x */
1472 #define CairoSurface__mark_dirty_rectangle_args NULL
1473 #endif
1475 PHP_METHOD(CairoSurface, set_device_offset);
1476 #if (PHP_MAJOR_VERSION >= 5)
1477 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__set_device_offset_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1478 ZEND_ARG_INFO(0, x_offset)
1479 ZEND_ARG_INFO(0, y_offset)
1480 ZEND_END_ARG_INFO()
1481 #else /* PHP 4.x */
1482 #define CairoSurface__set_device_offset_args NULL
1483 #endif
1485 PHP_METHOD(CairoSurface, set_fallback_resolution);
1486 #if (PHP_MAJOR_VERSION >= 5)
1487 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__set_fallback_resolution_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1488 ZEND_ARG_INFO(0, x_ppi)
1489 ZEND_ARG_INFO(0, y_ppi)
1490 ZEND_END_ARG_INFO()
1491 #else /* PHP 4.x */
1492 #define CairoSurface__set_fallback_resolution_args NULL
1493 #endif
1495 PHP_METHOD(CairoSurface, write_to_png);
1496 #if (PHP_MAJOR_VERSION >= 5)
1497 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__write_to_png_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1498 ZEND_ARG_INFO(0, file)
1499 ZEND_END_ARG_INFO()
1500 #else /* PHP 4.x */
1501 #define CairoSurface__write_to_png_args NULL
1502 #endif
1504 PHP_METHOD(CairoImageSurface, __construct);
1505 #if (PHP_MAJOR_VERSION >= 5)
1506 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1507 ZEND_ARG_INFO(0, widthm)
1508 ZEND_ARG_INFO(0, height)
1509 ZEND_END_ARG_INFO()
1510 #else /* PHP 4.x */
1511 #define CairoImageSurface____construct_args NULL
1512 #endif
1514 PHP_METHOD(CairoImageSurface, create_from_data);
1515 #if (PHP_MAJOR_VERSION >= 5)
1516 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__create_from_data_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 4)
1517 ZEND_ARG_OBJ_INFO(0, obj, , 1)
1518 ZEND_ARG_INFO(0, format)
1519 ZEND_ARG_INFO(0, width)
1520 ZEND_ARG_INFO(0, height)
1521 ZEND_ARG_INFO(0, stride)
1522 ZEND_END_ARG_INFO()
1523 #else /* PHP 4.x */
1524 #define CairoImageSurface__create_from_data_args NULL
1525 #endif
1527 PHP_METHOD(CairoImageSurface, create_from_png);
1528 #if (PHP_MAJOR_VERSION >= 5)
1529 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__create_from_png_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1530 ZEND_ARG_INFO(0, file)
1531 ZEND_END_ARG_INFO()
1532 #else /* PHP 4.x */
1533 #define CairoImageSurface__create_from_png_args NULL
1534 #endif
1536 PHP_METHOD(CairoImageSurface, get_data);
1537 #if (PHP_MAJOR_VERSION >= 5)
1538 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_data_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1539 ZEND_END_ARG_INFO()
1540 #else /* PHP 4.x */
1541 #define CairoImageSurface__get_data_args NULL
1542 #endif
1544 PHP_METHOD(CairoImageSurface, get_format);
1545 #if (PHP_MAJOR_VERSION >= 5)
1546 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_format_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1547 ZEND_END_ARG_INFO()
1548 #else /* PHP 4.x */
1549 #define CairoImageSurface__get_format_args NULL
1550 #endif
1552 PHP_METHOD(CairoImageSurface, get_height);
1553 #if (PHP_MAJOR_VERSION >= 5)
1554 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_height_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1555 ZEND_END_ARG_INFO()
1556 #else /* PHP 4.x */
1557 #define CairoImageSurface__get_height_args NULL
1558 #endif
1560 PHP_METHOD(CairoImageSurface, get_stride);
1561 #if (PHP_MAJOR_VERSION >= 5)
1562 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_stride_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1563 ZEND_END_ARG_INFO()
1564 #else /* PHP 4.x */
1565 #define CairoImageSurface__get_stride_args NULL
1566 #endif
1568 PHP_METHOD(CairoImageSurface, get_width);
1569 #if (PHP_MAJOR_VERSION >= 5)
1570 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_width_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1571 ZEND_END_ARG_INFO()
1572 #else /* PHP 4.x */
1573 #define CairoImageSurface__get_width_args NULL
1574 #endif
1576 PHP_METHOD(CairoPDFSurface, __construct);
1577 #if (PHP_MAJOR_VERSION >= 5)
1578 ZEND_BEGIN_ARG_INFO_EX(CairoPDFSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1579 ZEND_ARG_INFO(0, wpts)
1580 ZEND_ARG_INFO(0, hpts)
1581 ZEND_END_ARG_INFO()
1582 #else /* PHP 4.x */
1583 #define CairoPDFSurface____construct_args NULL
1584 #endif
1586 PHP_METHOD(CairoPDFSurface, set_size);
1587 #if (PHP_MAJOR_VERSION >= 5)
1588 ZEND_BEGIN_ARG_INFO_EX(CairoPDFSurface__set_size_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1589 ZEND_ARG_INFO(0, wptd)
1590 ZEND_ARG_INFO(0, hpts)
1591 ZEND_END_ARG_INFO()
1592 #else /* PHP 4.x */
1593 #define CairoPDFSurface__set_size_args NULL
1594 #endif
1596 PHP_METHOD(CairoPSSurface, __construct);
1597 #if (PHP_MAJOR_VERSION >= 5)
1598 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1599 ZEND_ARG_INFO(0, wpts)
1600 ZEND_ARG_INFO(0, hpts)
1601 ZEND_END_ARG_INFO()
1602 #else /* PHP 4.x */
1603 #define CairoPSSurface____construct_args NULL
1604 #endif
1606 PHP_METHOD(CairoPSSurface, dsc_begin_page_setup);
1607 #if (PHP_MAJOR_VERSION >= 5)
1608 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__dsc_begin_page_setup_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1609 ZEND_END_ARG_INFO()
1610 #else /* PHP 4.x */
1611 #define CairoPSSurface__dsc_begin_page_setup_args NULL
1612 #endif
1614 PHP_METHOD(CairoPSSurface, dsc_begin_setup);
1615 #if (PHP_MAJOR_VERSION >= 5)
1616 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__dsc_begin_setup_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1617 ZEND_END_ARG_INFO()
1618 #else /* PHP 4.x */
1619 #define CairoPSSurface__dsc_begin_setup_args NULL
1620 #endif
1622 PHP_METHOD(CairoPSSurface, dsc_comment);
1623 #if (PHP_MAJOR_VERSION >= 5)
1624 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__dsc_comment_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1625 ZEND_END_ARG_INFO()
1626 #else /* PHP 4.x */
1627 #define CairoPSSurface__dsc_comment_args NULL
1628 #endif
1630 PHP_METHOD(CairoPSSurface, get_levels);
1631 #if (PHP_MAJOR_VERSION >= 5)
1632 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__get_levels_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1633 ZEND_END_ARG_INFO()
1634 #else /* PHP 4.x */
1635 #define CairoPSSurface__get_levels_args NULL
1636 #endif
1638 PHP_METHOD(CairoPSSurface, get_level_string);
1639 #if (PHP_MAJOR_VERSION >= 5)
1640 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__get_level_string_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1641 ZEND_END_ARG_INFO()
1642 #else /* PHP 4.x */
1643 #define CairoPSSurface__get_level_string_args NULL
1644 #endif
1646 PHP_METHOD(CairoPSSurface, restrict_to_level);
1647 #if (PHP_MAJOR_VERSION >= 5)
1648 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__restrict_to_level_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1649 ZEND_ARG_INFO(0, level)
1650 ZEND_END_ARG_INFO()
1651 #else /* PHP 4.x */
1652 #define CairoPSSurface__restrict_to_level_args NULL
1653 #endif
1655 PHP_METHOD(CairoPSSurface, set_eps);
1656 #if (PHP_MAJOR_VERSION >= 5)
1657 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__set_eps_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1658 ZEND_END_ARG_INFO()
1659 #else /* PHP 4.x */
1660 #define CairoPSSurface__set_eps_args NULL
1661 #endif
1663 PHP_METHOD(CairoPSSurface, set_size);
1664 #if (PHP_MAJOR_VERSION >= 5)
1665 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__set_size_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1666 ZEND_ARG_INFO(0, wpts)
1667 ZEND_ARG_INFO(0, hpts)
1668 ZEND_END_ARG_INFO()
1669 #else /* PHP 4.x */
1670 #define CairoPSSurface__set_size_args NULL
1671 #endif
1673 PHP_METHOD(CairoQuartzSurface, __construct);
1674 #if (PHP_MAJOR_VERSION >= 5)
1675 ZEND_BEGIN_ARG_INFO_EX(CairoQuartzSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1676 ZEND_ARG_INFO(0, hpixels)
1677 ZEND_ARG_INFO(0, format)
1678 ZEND_END_ARG_INFO()
1679 #else /* PHP 4.x */
1680 #define CairoQuartzSurface____construct_args NULL
1681 #endif
1683 PHP_METHOD(CairoSVGSurface, __construct);
1684 #if (PHP_MAJOR_VERSION >= 5)
1685 ZEND_BEGIN_ARG_INFO_EX(CairoSVGSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1686 ZEND_ARG_INFO(0, wpts)
1687 ZEND_ARG_INFO(0, hpts)
1688 ZEND_END_ARG_INFO()
1689 #else /* PHP 4.x */
1690 #define CairoSVGSurface____construct_args NULL
1691 #endif
1693 PHP_METHOD(CairoWin32Surface, __construct);
1694 #if (PHP_MAJOR_VERSION >= 5)
1695 ZEND_BEGIN_ARG_INFO_EX(CairoWin32Surface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1696 ZEND_END_ARG_INFO()
1697 #else /* PHP 4.x */
1698 #define CairoWin32Surface____construct_args NULL
1699 #endif
1701 PHP_METHOD(CairoXlibSurface, __construct);
1702 #if (PHP_MAJOR_VERSION >= 5)
1703 ZEND_BEGIN_ARG_INFO_EX(CairoXlibSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1704 ZEND_END_ARG_INFO()
1705 #else /* PHP 4.x */
1706 #define CairoXlibSurface____construct_args NULL
1707 #endif
1709 PHP_METHOD(CairoXlibSurface, get_depth);
1710 #if (PHP_MAJOR_VERSION >= 5)
1711 ZEND_BEGIN_ARG_INFO_EX(CairoXlibSurface__get_depth_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1712 ZEND_END_ARG_INFO()
1713 #else /* PHP 4.x */
1714 #define CairoXlibSurface__get_depth_args NULL
1715 #endif
1717 PHP_METHOD(CairoXlibSurface, get_height);
1718 #if (PHP_MAJOR_VERSION >= 5)
1719 ZEND_BEGIN_ARG_INFO_EX(CairoXlibSurface__get_height_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1720 ZEND_END_ARG_INFO()
1721 #else /* PHP 4.x */
1722 #define CairoXlibSurface__get_height_args NULL
1723 #endif
1725 PHP_METHOD(CairoXlibSurface, get_width);
1726 #if (PHP_MAJOR_VERSION >= 5)
1727 ZEND_BEGIN_ARG_INFO_EX(CairoXlibSurface__get_width_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1728 ZEND_END_ARG_INFO()
1729 #else /* PHP 4.x */
1730 #define CairoXlibSurface__get_width_args NULL
1731 #endif
1733 #ifdef __cplusplus
1734 } // extern "C"
1735 #endif
1737 #endif /* PHP_HAVE_PHPCAIRO */
1739 #endif /* PHP_PHPCAIRO_H */
1743 * Local variables:
1744 * tab-width: 4
1745 * c-basic-offset: 4
1746 * End:
1747 * vim600: noet sw=4 ts=4 fdm=marker
1748 * vim<600: noet sw=4 ts=4