Path class done :)
[phpCairo.git] / individual_files / php_phpCairo.h
blob9e12fb11a2d22b8902fd122ee2206d016efacfba
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;
82 typedef struct _scaledfont_object {
83 zend_object std;
84 cairo_scaled_font_t *scaledfont;
85 } scaledfont_object;
87 #ifdef PHP_WIN32
88 #define PHP_PHPCAIRO_API __declspec(dllexport)
89 #else
90 #define PHP_PHPCAIRO_API
91 #endif
93 PHP_MINIT_FUNCTION(phpCairo);
94 PHP_MSHUTDOWN_FUNCTION(phpCairo);
95 PHP_RINIT_FUNCTION(phpCairo);
96 PHP_RSHUTDOWN_FUNCTION(phpCairo);
97 PHP_MINFO_FUNCTION(phpCairo);
99 #ifdef ZTS
100 #include "TSRM.h"
101 #endif
103 #define FREE_RESOURCE(resource) zend_list_delete(Z_LVAL_P(resource))
105 #define PROP_GET_LONG(name) Z_LVAL_P(zend_read_property(_this_ce, _this_zval, #name, strlen(#name), 1 TSRMLS_CC))
106 #define PROP_SET_LONG(name, l) zend_update_property_long(_this_ce, _this_zval, #name, strlen(#name), l TSRMLS_CC)
108 #define PROP_GET_DOUBLE(name) Z_DVAL_P(zend_read_property(_this_ce, _this_zval, #name, strlen(#name), 1 TSRMLS_CC))
109 #define PROP_SET_DOUBLE(name, d) zend_update_property_double(_this_ce, _this_zval, #name, strlen(#name), d TSRMLS_CC)
111 #define PROP_GET_STRING(name) Z_STRVAL_P(zend_read_property(_this_ce, _this_zval, #name, strlen(#name), 1 TSRMLS_CC))
112 #define PROP_GET_STRLEN(name) Z_STRLEN_P(zend_read_property(_this_ce, _this_zval, #name, strlen(#name), 1 TSRMLS_CC))
113 #define PROP_SET_STRING(name, s) zend_update_property_string(_this_ce, _this_zval, #name, strlen(#name), s TSRMLS_CC)
114 #define PROP_SET_STRINGL(name, s, l) zend_update_property_stringl(_this_ce, _this_zval, #name, strlen(#name), s, l TSRMLS_CC)
117 PHP_FUNCTION(cairo_version);
118 #if (PHP_MAJOR_VERSION >= 5)
119 ZEND_BEGIN_ARG_INFO_EX(cairo_version_arg_info, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
120 ZEND_END_ARG_INFO()
121 #else /* PHP 4.x */
122 #define cairo_version_arg_info NULL
123 #endif
125 PHP_FUNCTION(cairo_version_string);
126 #if (PHP_MAJOR_VERSION >= 5)
127 ZEND_BEGIN_ARG_INFO_EX(cairo_version_string_arg_info, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
128 ZEND_END_ARG_INFO()
129 #else /* PHP 4.x */
130 #define cairo_version_string_arg_info NULL
131 #endif
133 PHP_METHOD(CairoContext, __construct);
134 #if (PHP_MAJOR_VERSION >= 5)
135 ZEND_BEGIN_ARG_INFO_EX(CairoContext____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
136 ZEND_ARG_OBJ_INFO(0, obj, , 1)
137 ZEND_END_ARG_INFO()
138 #else /* PHP 4.x */
139 #define CairoContext____construct_args NULL
140 #endif
142 PHP_METHOD(CairoContext, append_path);
143 #if (PHP_MAJOR_VERSION >= 5)
144 ZEND_BEGIN_ARG_INFO_EX(CairoContext__append_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
145 ZEND_ARG_OBJ_INFO(0, p, , 1)
146 ZEND_END_ARG_INFO()
147 #else /* PHP 4.x */
148 #define CairoContext__append_path_args NULL
149 #endif
151 PHP_METHOD(CairoContext, arc);
152 #if (PHP_MAJOR_VERSION >= 5)
153 ZEND_BEGIN_ARG_INFO_EX(CairoContext__arc_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 5)
154 ZEND_ARG_INFO(0, xc)
155 ZEND_ARG_INFO(0, yc)
156 ZEND_ARG_INFO(0, radius)
157 ZEND_ARG_INFO(0, angle1)
158 ZEND_ARG_INFO(0, angle2)
159 ZEND_END_ARG_INFO()
160 #else /* PHP 4.x */
161 #define CairoContext__arc_args NULL
162 #endif
164 PHP_METHOD(CairoContext, arc_negative);
165 #if (PHP_MAJOR_VERSION >= 5)
166 ZEND_BEGIN_ARG_INFO_EX(CairoContext__arc_negative_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 5)
167 ZEND_ARG_INFO(0, xc)
168 ZEND_ARG_INFO(0, yc)
169 ZEND_ARG_INFO(0, radius)
170 ZEND_ARG_INFO(0, angle1)
171 ZEND_ARG_INFO(0, angle2)
172 ZEND_END_ARG_INFO()
173 #else /* PHP 4.x */
174 #define CairoContext__arc_negative_args NULL
175 #endif
177 PHP_METHOD(CairoContext, clip);
178 #if (PHP_MAJOR_VERSION >= 5)
179 ZEND_BEGIN_ARG_INFO_EX(CairoContext__clip_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
180 ZEND_END_ARG_INFO()
181 #else /* PHP 4.x */
182 #define CairoContext__clip_args NULL
183 #endif
185 PHP_METHOD(CairoContext, clip_extents);
186 #if (PHP_MAJOR_VERSION >= 5)
187 ZEND_BEGIN_ARG_INFO_EX(CairoContext__clip_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
188 ZEND_END_ARG_INFO()
189 #else /* PHP 4.x */
190 #define CairoContext__clip_extents_args NULL
191 #endif
193 PHP_METHOD(CairoContext, clip_preserve);
194 #if (PHP_MAJOR_VERSION >= 5)
195 ZEND_BEGIN_ARG_INFO_EX(CairoContext__clip_preserve_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
196 ZEND_END_ARG_INFO()
197 #else /* PHP 4.x */
198 #define CairoContext__clip_preserve_args NULL
199 #endif
201 PHP_METHOD(CairoContext, close_path);
202 #if (PHP_MAJOR_VERSION >= 5)
203 ZEND_BEGIN_ARG_INFO_EX(CairoContext__close_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
204 ZEND_END_ARG_INFO()
205 #else /* PHP 4.x */
206 #define CairoContext__close_path_args NULL
207 #endif
209 PHP_METHOD(CairoContext, copy_clip_rectangle_list);
210 #if (PHP_MAJOR_VERSION >= 5)
211 ZEND_BEGIN_ARG_INFO_EX(CairoContext__copy_clip_rectangle_list_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
212 ZEND_END_ARG_INFO()
213 #else /* PHP 4.x */
214 #define CairoContext__copy_clip_rectangle_list_args NULL
215 #endif
217 PHP_METHOD(CairoContext, copy_page);
218 #if (PHP_MAJOR_VERSION >= 5)
219 ZEND_BEGIN_ARG_INFO_EX(CairoContext__copy_page_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
220 ZEND_END_ARG_INFO()
221 #else /* PHP 4.x */
222 #define CairoContext__copy_page_args NULL
223 #endif
225 PHP_METHOD(CairoContext, copy_path);
226 #if (PHP_MAJOR_VERSION >= 5)
227 ZEND_BEGIN_ARG_INFO_EX(CairoContext__copy_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
228 ZEND_END_ARG_INFO()
229 #else /* PHP 4.x */
230 #define CairoContext__copy_path_args NULL
231 #endif
233 PHP_METHOD(CairoContext, copy_path_flat);
234 #if (PHP_MAJOR_VERSION >= 5)
235 ZEND_BEGIN_ARG_INFO_EX(CairoContext__copy_path_flat_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
236 ZEND_END_ARG_INFO()
237 #else /* PHP 4.x */
238 #define CairoContext__copy_path_flat_args NULL
239 #endif
241 PHP_METHOD(CairoContext, curve_to);
242 #if (PHP_MAJOR_VERSION >= 5)
243 ZEND_BEGIN_ARG_INFO_EX(CairoContext__curve_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 6)
244 ZEND_ARG_INFO(0, x1)
245 ZEND_ARG_INFO(0, y1)
246 ZEND_ARG_INFO(0, x2)
247 ZEND_ARG_INFO(0, y2)
248 ZEND_ARG_INFO(0, x3)
249 ZEND_ARG_INFO(0, y3)
250 ZEND_END_ARG_INFO()
251 #else /* PHP 4.x */
252 #define CairoContext__curve_to_args NULL
253 #endif
255 PHP_METHOD(CairoContext, device_to_user);
256 #if (PHP_MAJOR_VERSION >= 5)
257 ZEND_BEGIN_ARG_INFO_EX(CairoContext__device_to_user_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
258 ZEND_ARG_INFO(0, x)
259 ZEND_ARG_INFO(0, y)
260 ZEND_END_ARG_INFO()
261 #else /* PHP 4.x */
262 #define CairoContext__device_to_user_args NULL
263 #endif
265 PHP_METHOD(CairoContext, device_to_user_distance);
266 #if (PHP_MAJOR_VERSION >= 5)
267 ZEND_BEGIN_ARG_INFO_EX(CairoContext__device_to_user_distance_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
268 ZEND_ARG_INFO(0, x)
269 ZEND_ARG_INFO(0, y)
270 ZEND_END_ARG_INFO()
271 #else /* PHP 4.x */
272 #define CairoContext__device_to_user_distance_args NULL
273 #endif
275 PHP_METHOD(CairoContext, fill);
276 #if (PHP_MAJOR_VERSION >= 5)
277 ZEND_BEGIN_ARG_INFO_EX(CairoContext__fill_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
278 ZEND_END_ARG_INFO()
279 #else /* PHP 4.x */
280 #define CairoContext__fill_args NULL
281 #endif
283 PHP_METHOD(CairoContext, fill_extents);
284 #if (PHP_MAJOR_VERSION >= 5)
285 ZEND_BEGIN_ARG_INFO_EX(CairoContext__fill_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
286 ZEND_END_ARG_INFO()
287 #else /* PHP 4.x */
288 #define CairoContext__fill_extents_args NULL
289 #endif
291 PHP_METHOD(CairoContext, fill_preserve);
292 #if (PHP_MAJOR_VERSION >= 5)
293 ZEND_BEGIN_ARG_INFO_EX(CairoContext__fill_preserve_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
294 ZEND_END_ARG_INFO()
295 #else /* PHP 4.x */
296 #define CairoContext__fill_preserve_args NULL
297 #endif
299 PHP_METHOD(CairoContext, font_extents);
300 #if (PHP_MAJOR_VERSION >= 5)
301 ZEND_BEGIN_ARG_INFO_EX(CairoContext__font_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
302 ZEND_END_ARG_INFO()
303 #else /* PHP 4.x */
304 #define CairoContext__font_extents_args NULL
305 #endif
307 PHP_METHOD(CairoContext, get_antialias);
308 #if (PHP_MAJOR_VERSION >= 5)
309 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_antialias_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
310 ZEND_END_ARG_INFO()
311 #else /* PHP 4.x */
312 #define CairoContext__get_antialias_args NULL
313 #endif
315 PHP_METHOD(CairoContext, get_current_point);
316 #if (PHP_MAJOR_VERSION >= 5)
317 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_current_point_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
318 ZEND_END_ARG_INFO()
319 #else /* PHP 4.x */
320 #define CairoContext__get_current_point_args NULL
321 #endif
323 PHP_METHOD(CairoContext, get_dash);
324 #if (PHP_MAJOR_VERSION >= 5)
325 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_dash_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
326 ZEND_END_ARG_INFO()
327 #else /* PHP 4.x */
328 #define CairoContext__get_dash_args NULL
329 #endif
331 PHP_METHOD(CairoContext, get_dash_count);
332 #if (PHP_MAJOR_VERSION >= 5)
333 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_dash_count_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
334 ZEND_END_ARG_INFO()
335 #else /* PHP 4.x */
336 #define CairoContext__get_dash_count_args NULL
337 #endif
339 PHP_METHOD(CairoContext, get_fill_rule);
340 #if (PHP_MAJOR_VERSION >= 5)
341 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_fill_rule_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
342 ZEND_END_ARG_INFO()
343 #else /* PHP 4.x */
344 #define CairoContext__get_fill_rule_args NULL
345 #endif
347 PHP_METHOD(CairoContext, get_font_face);
348 #if (PHP_MAJOR_VERSION >= 5)
349 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_font_face_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
350 ZEND_END_ARG_INFO()
351 #else /* PHP 4.x */
352 #define CairoContext__get_font_face_args NULL
353 #endif
355 PHP_METHOD(CairoContext, get_font_matrix);
356 #if (PHP_MAJOR_VERSION >= 5)
357 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_font_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
358 ZEND_END_ARG_INFO()
359 #else /* PHP 4.x */
360 #define CairoContext__get_font_matrix_args NULL
361 #endif
363 PHP_METHOD(CairoContext, get_font_options);
364 #if (PHP_MAJOR_VERSION >= 5)
365 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_font_options_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
366 ZEND_END_ARG_INFO()
367 #else /* PHP 4.x */
368 #define CairoContext__get_font_options_args NULL
369 #endif
371 PHP_METHOD(CairoContext, get_group_target);
372 #if (PHP_MAJOR_VERSION >= 5)
373 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_group_target_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
374 ZEND_END_ARG_INFO()
375 #else /* PHP 4.x */
376 #define CairoContext__get_group_target_args NULL
377 #endif
379 PHP_METHOD(CairoContext, get_line_cap);
380 #if (PHP_MAJOR_VERSION >= 5)
381 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_line_cap_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
382 ZEND_END_ARG_INFO()
383 #else /* PHP 4.x */
384 #define CairoContext__get_line_cap_args NULL
385 #endif
387 PHP_METHOD(CairoContext, get_line_join);
388 #if (PHP_MAJOR_VERSION >= 5)
389 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_line_join_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
390 ZEND_END_ARG_INFO()
391 #else /* PHP 4.x */
392 #define CairoContext__get_line_join_args NULL
393 #endif
395 PHP_METHOD(CairoContext, get_line_width);
396 #if (PHP_MAJOR_VERSION >= 5)
397 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_line_width_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
398 ZEND_END_ARG_INFO()
399 #else /* PHP 4.x */
400 #define CairoContext__get_line_width_args NULL
401 #endif
403 PHP_METHOD(CairoContext, get_matrix);
404 #if (PHP_MAJOR_VERSION >= 5)
405 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
406 ZEND_END_ARG_INFO()
407 #else /* PHP 4.x */
408 #define CairoContext__get_matrix_args NULL
409 #endif
411 PHP_METHOD(CairoContext, get_miter_limit);
412 #if (PHP_MAJOR_VERSION >= 5)
413 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_miter_limit_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
414 ZEND_END_ARG_INFO()
415 #else /* PHP 4.x */
416 #define CairoContext__get_miter_limit_args NULL
417 #endif
419 PHP_METHOD(CairoContext, get_operator);
420 #if (PHP_MAJOR_VERSION >= 5)
421 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_operator_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
422 ZEND_END_ARG_INFO()
423 #else /* PHP 4.x */
424 #define CairoContext__get_operator_args NULL
425 #endif
427 PHP_METHOD(CairoContext, get_scaled_font);
428 #if (PHP_MAJOR_VERSION >= 5)
429 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_scaled_font_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
430 ZEND_END_ARG_INFO()
431 #else /* PHP 4.x */
432 #define CairoContext__get_scaled_font_args NULL
433 #endif
435 PHP_METHOD(CairoContext, get_source);
436 #if (PHP_MAJOR_VERSION >= 5)
437 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_source_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
438 ZEND_END_ARG_INFO()
439 #else /* PHP 4.x */
440 #define CairoContext__get_source_args NULL
441 #endif
443 PHP_METHOD(CairoContext, get_target);
444 #if (PHP_MAJOR_VERSION >= 5)
445 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_target_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
446 ZEND_END_ARG_INFO()
447 #else /* PHP 4.x */
448 #define CairoContext__get_target_args NULL
449 #endif
451 PHP_METHOD(CairoContext, get_tolerance);
452 #if (PHP_MAJOR_VERSION >= 5)
453 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_tolerance_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
454 ZEND_END_ARG_INFO()
455 #else /* PHP 4.x */
456 #define CairoContext__get_tolerance_args NULL
457 #endif
459 PHP_METHOD(CairoContext, glyph_extents);
460 #if (PHP_MAJOR_VERSION >= 5)
461 ZEND_BEGIN_ARG_INFO_EX(CairoContext__glyph_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
462 #if (PHP_MINOR_VERSION > 0)
463 ZEND_ARG_ARRAY_INFO(0, obj, 1)
464 #else
465 ZEND_ARG_INFO(O, obj)
466 #endif
467 ZEND_ARG_INFO(0, num)
468 ZEND_END_ARG_INFO()
469 #else /* PHP 4.x */
470 #define CairoContext__glyph_extents_args NULL
471 #endif
473 PHP_METHOD(CairoContext, glyph_path);
474 #if (PHP_MAJOR_VERSION >= 5)
475 ZEND_BEGIN_ARG_INFO_EX(CairoContext__glyph_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
476 #if (PHP_MINOR_VERSION > 0)
477 ZEND_ARG_ARRAY_INFO(0, obh, 1)
478 #else
479 ZEND_ARG_INFO(0, obh);
480 #endif
481 ZEND_ARG_INFO(0, num)
482 ZEND_END_ARG_INFO()
483 #else /* PHP 4.x */
484 #define CairoContext__glyph_path_args NULL
485 #endif
487 PHP_METHOD(CairoContext, has_current_point);
488 #if (PHP_MAJOR_VERSION >= 5)
489 ZEND_BEGIN_ARG_INFO_EX(CairoContext__has_current_point_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
490 ZEND_END_ARG_INFO()
491 #else /* PHP 4.x */
492 #define CairoContext__has_current_point_args NULL
493 #endif
495 PHP_METHOD(CairoContext, identity_matrix);
496 #if (PHP_MAJOR_VERSION >= 5)
497 ZEND_BEGIN_ARG_INFO_EX(CairoContext__identity_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
498 ZEND_END_ARG_INFO()
499 #else /* PHP 4.x */
500 #define CairoContext__identity_matrix_args NULL
501 #endif
503 PHP_METHOD(CairoContext, in_fill);
504 #if (PHP_MAJOR_VERSION >= 5)
505 ZEND_BEGIN_ARG_INFO_EX(CairoContext__in_fill_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
506 ZEND_ARG_INFO(0, x)
507 ZEND_ARG_INFO(0, y)
508 ZEND_END_ARG_INFO()
509 #else /* PHP 4.x */
510 #define CairoContext__in_fill_args NULL
511 #endif
513 PHP_METHOD(CairoContext, in_stroke);
514 #if (PHP_MAJOR_VERSION >= 5)
515 ZEND_BEGIN_ARG_INFO_EX(CairoContext__in_stroke_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
516 ZEND_ARG_INFO(0, x)
517 ZEND_ARG_INFO(0, y)
518 ZEND_END_ARG_INFO()
519 #else /* PHP 4.x */
520 #define CairoContext__in_stroke_args NULL
521 #endif
523 PHP_METHOD(CairoContext, line_to);
524 #if (PHP_MAJOR_VERSION >= 5)
525 ZEND_BEGIN_ARG_INFO_EX(CairoContext__line_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
526 ZEND_ARG_INFO(0, x)
527 ZEND_ARG_INFO(0, y)
528 ZEND_END_ARG_INFO()
529 #else /* PHP 4.x */
530 #define CairoContext__line_to_args NULL
531 #endif
533 PHP_METHOD(CairoContext, mask);
534 #if (PHP_MAJOR_VERSION >= 5)
535 ZEND_BEGIN_ARG_INFO_EX(CairoContext__mask_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
536 ZEND_ARG_OBJ_INFO(0, p, , 1)
537 ZEND_END_ARG_INFO()
538 #else /* PHP 4.x */
539 #define CairoContext__mask_args NULL
540 #endif
542 PHP_METHOD(CairoContext, mask_surface);
543 #if (PHP_MAJOR_VERSION >= 5)
544 ZEND_BEGIN_ARG_INFO_EX(CairoContext__mask_surface_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
545 ZEND_ARG_OBJ_INFO(0, s, , 1)
546 ZEND_ARG_INFO(0, surface_x)
547 ZEND_ARG_INFO(0, surface_y)
548 ZEND_END_ARG_INFO()
549 #else /* PHP 4.x */
550 #define CairoContext__mask_surface_args NULL
551 #endif
553 PHP_METHOD(CairoContext, move_to);
554 #if (PHP_MAJOR_VERSION >= 5)
555 ZEND_BEGIN_ARG_INFO_EX(CairoContext__move_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
556 ZEND_ARG_INFO(0, x)
557 ZEND_ARG_INFO(0, y)
558 ZEND_END_ARG_INFO()
559 #else /* PHP 4.x */
560 #define CairoContext__move_to_args NULL
561 #endif
563 PHP_METHOD(CairoContext, new_path);
564 #if (PHP_MAJOR_VERSION >= 5)
565 ZEND_BEGIN_ARG_INFO_EX(CairoContext__new_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
566 ZEND_END_ARG_INFO()
567 #else /* PHP 4.x */
568 #define CairoContext__new_path_args NULL
569 #endif
571 PHP_METHOD(CairoContext, new_sub_path);
572 #if (PHP_MAJOR_VERSION >= 5)
573 ZEND_BEGIN_ARG_INFO_EX(CairoContext__new_sub_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
574 ZEND_END_ARG_INFO()
575 #else /* PHP 4.x */
576 #define CairoContext__new_sub_path_args NULL
577 #endif
579 PHP_METHOD(CairoContext, paint);
580 #if (PHP_MAJOR_VERSION >= 5)
581 ZEND_BEGIN_ARG_INFO_EX(CairoContext__paint_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
582 ZEND_END_ARG_INFO()
583 #else /* PHP 4.x */
584 #define CairoContext__paint_args NULL
585 #endif
587 PHP_METHOD(CairoContext, paint_with_alpha);
588 #if (PHP_MAJOR_VERSION >= 5)
589 ZEND_BEGIN_ARG_INFO_EX(CairoContext__paint_with_alpha_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
590 ZEND_ARG_INFO(0, alpha)
591 ZEND_END_ARG_INFO()
592 #else /* PHP 4.x */
593 #define CairoContext__paint_with_alpha_args NULL
594 #endif
596 PHP_METHOD(CairoContext, path_extents);
597 #if (PHP_MAJOR_VERSION >= 5)
598 ZEND_BEGIN_ARG_INFO_EX(CairoContext__path_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
599 ZEND_ARG_OBJ_INFO(0, path, , 1)
600 ZEND_END_ARG_INFO()
601 #else /* PHP 4.x */
602 #define CairoContext__path_extents_args NULL
603 #endif
605 PHP_METHOD(CairoContext, pop_group);
606 #if (PHP_MAJOR_VERSION >= 5)
607 ZEND_BEGIN_ARG_INFO_EX(CairoContext__pop_group_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
608 ZEND_END_ARG_INFO()
609 #else /* PHP 4.x */
610 #define CairoContext__pop_group_args NULL
611 #endif
613 PHP_METHOD(CairoContext, pop_group_to_source);
614 #if (PHP_MAJOR_VERSION >= 5)
615 ZEND_BEGIN_ARG_INFO_EX(CairoContext__pop_group_to_source_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
616 ZEND_END_ARG_INFO()
617 #else /* PHP 4.x */
618 #define CairoContext__pop_group_to_source_args NULL
619 #endif
621 PHP_METHOD(CairoContext, push_group);
622 #if (PHP_MAJOR_VERSION >= 5)
623 ZEND_BEGIN_ARG_INFO_EX(CairoContext__push_group_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
624 ZEND_END_ARG_INFO()
625 #else /* PHP 4.x */
626 #define CairoContext__push_group_args NULL
627 #endif
629 PHP_METHOD(CairoContext, push_group_with_content);
630 #if (PHP_MAJOR_VERSION >= 5)
631 ZEND_BEGIN_ARG_INFO_EX(CairoContext__push_group_with_content_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
632 ZEND_ARG_INFO(0, content)
633 ZEND_END_ARG_INFO()
634 #else /* PHP 4.x */
635 #define CairoContext__push_group_with_content_args NULL
636 #endif
638 PHP_METHOD(CairoContext, rectangle);
639 #if (PHP_MAJOR_VERSION >= 5)
640 ZEND_BEGIN_ARG_INFO_EX(CairoContext__rectangle_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 4)
641 ZEND_ARG_INFO(0, x)
642 ZEND_ARG_INFO(0, y)
643 ZEND_ARG_INFO(0, width)
644 ZEND_ARG_INFO(0, height)
645 ZEND_END_ARG_INFO()
646 #else /* PHP 4.x */
647 #define CairoContext__rectangle_args NULL
648 #endif
650 PHP_METHOD(CairoContext, rel_curve_to);
651 #if (PHP_MAJOR_VERSION >= 5)
652 ZEND_BEGIN_ARG_INFO_EX(CairoContext__rel_curve_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 6)
653 ZEND_ARG_INFO(0, x1)
654 ZEND_ARG_INFO(0, y1)
655 ZEND_ARG_INFO(0, x2)
656 ZEND_ARG_INFO(0, y2)
657 ZEND_ARG_INFO(0, x3)
658 ZEND_ARG_INFO(0, y3)
659 ZEND_END_ARG_INFO()
660 #else /* PHP 4.x */
661 #define CairoContext__rel_curve_to_args NULL
662 #endif
664 PHP_METHOD(CairoContext, rel_line_to);
665 #if (PHP_MAJOR_VERSION >= 5)
666 ZEND_BEGIN_ARG_INFO_EX(CairoContext__rel_line_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
667 ZEND_ARG_INFO(0, x)
668 ZEND_ARG_INFO(0, y)
669 ZEND_END_ARG_INFO()
670 #else /* PHP 4.x */
671 #define CairoContext__rel_line_to_args NULL
672 #endif
674 PHP_METHOD(CairoContext, rel_move_to);
675 #if (PHP_MAJOR_VERSION >= 5)
676 ZEND_BEGIN_ARG_INFO_EX(CairoContext__rel_move_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
677 ZEND_ARG_INFO(0, x)
678 ZEND_ARG_INFO(0, y)
679 ZEND_END_ARG_INFO()
680 #else /* PHP 4.x */
681 #define CairoContext__rel_move_to_args NULL
682 #endif
684 PHP_METHOD(CairoContext, reset_clip);
685 #if (PHP_MAJOR_VERSION >= 5)
686 ZEND_BEGIN_ARG_INFO_EX(CairoContext__reset_clip_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
687 ZEND_END_ARG_INFO()
688 #else /* PHP 4.x */
689 #define CairoContext__reset_clip_args NULL
690 #endif
692 PHP_METHOD(CairoContext, restore);
693 #if (PHP_MAJOR_VERSION >= 5)
694 ZEND_BEGIN_ARG_INFO_EX(CairoContext__restore_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
695 ZEND_END_ARG_INFO()
696 #else /* PHP 4.x */
697 #define CairoContext__restore_args NULL
698 #endif
700 PHP_METHOD(CairoContext, rotate);
701 #if (PHP_MAJOR_VERSION >= 5)
702 ZEND_BEGIN_ARG_INFO_EX(CairoContext__rotate_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
703 ZEND_ARG_INFO(0, angle)
704 ZEND_END_ARG_INFO()
705 #else /* PHP 4.x */
706 #define CairoContext__rotate_args NULL
707 #endif
709 PHP_METHOD(CairoContext, save);
710 #if (PHP_MAJOR_VERSION >= 5)
711 ZEND_BEGIN_ARG_INFO_EX(CairoContext__save_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
712 ZEND_END_ARG_INFO()
713 #else /* PHP 4.x */
714 #define CairoContext__save_args NULL
715 #endif
717 PHP_METHOD(CairoContext, scale);
718 #if (PHP_MAJOR_VERSION >= 5)
719 ZEND_BEGIN_ARG_INFO_EX(CairoContext__scale_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
720 ZEND_ARG_INFO(0, x)
721 ZEND_ARG_INFO(0, y)
722 ZEND_END_ARG_INFO()
723 #else /* PHP 4.x */
724 #define CairoContext__scale_args NULL
725 #endif
727 PHP_METHOD(CairoContext, select_font_face);
728 #if (PHP_MAJOR_VERSION >= 5)
729 ZEND_BEGIN_ARG_INFO_EX(CairoContext__select_font_face_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
730 ZEND_ARG_INFO(0, family)
731 ZEND_ARG_INFO(0, slant)
732 ZEND_ARG_INFO(0, weight)
733 ZEND_END_ARG_INFO()
734 #else /* PHP 4.x */
735 #define CairoContext__select_font_face_args NULL
736 #endif
738 PHP_METHOD(CairoContext, set_antialias);
739 #if (PHP_MAJOR_VERSION >= 5)
740 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_antialias_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
741 ZEND_ARG_INFO(0, antialias)
742 ZEND_END_ARG_INFO()
743 #else /* PHP 4.x */
744 #define CairoContext__set_antialias_args NULL
745 #endif
747 PHP_METHOD(CairoContext, set_dash);
748 #if (PHP_MAJOR_VERSION >= 5)
749 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_dash_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
750 #if (PHP_MINOR_VERSION > 0)
751 ZEND_ARG_ARRAY_INFO(0, dashes, 1)
752 #else
753 ZEND_ARG_INFO(0, dashes)
754 #endif
755 ZEND_ARG_INFO(0, num_dashes)
756 ZEND_ARG_INFO(0, offset)
757 ZEND_END_ARG_INFO()
758 #else /* PHP 4.x */
759 #define CairoContext__set_dash_args NULL
760 #endif
762 PHP_METHOD(CairoContext, set_fill_rule);
763 #if (PHP_MAJOR_VERSION >= 5)
764 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_fill_rule_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
765 ZEND_ARG_INFO(0, fill_rule)
766 ZEND_END_ARG_INFO()
767 #else /* PHP 4.x */
768 #define CairoContext__set_fill_rule_args NULL
769 #endif
771 PHP_METHOD(CairoContext, set_font_face);
772 #if (PHP_MAJOR_VERSION >= 5)
773 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_font_face_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
774 ZEND_ARG_OBJ_INFO(0, obj, , 1)
775 ZEND_END_ARG_INFO()
776 #else /* PHP 4.x */
777 #define CairoContext__set_font_face_args NULL
778 #endif
780 PHP_METHOD(CairoContext, set_font_matrix);
781 #if (PHP_MAJOR_VERSION >= 5)
782 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_font_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
783 ZEND_ARG_OBJ_INFO(0, matrix, , 1)
784 ZEND_END_ARG_INFO()
785 #else /* PHP 4.x */
786 #define CairoContext__set_font_matrix_args NULL
787 #endif
789 PHP_METHOD(CairoContext, set_font_options);
790 #if (PHP_MAJOR_VERSION >= 5)
791 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_font_options_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
792 ZEND_ARG_OBJ_INFO(0, options, , 1)
793 ZEND_END_ARG_INFO()
794 #else /* PHP 4.x */
795 #define CairoContext__set_font_options_args NULL
796 #endif
798 PHP_METHOD(CairoContext, set_font_size);
799 #if (PHP_MAJOR_VERSION >= 5)
800 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_font_size_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
801 ZEND_ARG_INFO(0, size)
802 ZEND_END_ARG_INFO()
803 #else /* PHP 4.x */
804 #define CairoContext__set_font_size_args NULL
805 #endif
807 PHP_METHOD(CairoContext, set_line_cap);
808 #if (PHP_MAJOR_VERSION >= 5)
809 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_line_cap_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
810 ZEND_ARG_INFO(0, line_cap)
811 ZEND_END_ARG_INFO()
812 #else /* PHP 4.x */
813 #define CairoContext__set_line_cap_args NULL
814 #endif
816 PHP_METHOD(CairoContext, set_line_join);
817 #if (PHP_MAJOR_VERSION >= 5)
818 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_line_join_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
819 ZEND_ARG_INFO(0, line_join)
820 ZEND_END_ARG_INFO()
821 #else /* PHP 4.x */
822 #define CairoContext__set_line_join_args NULL
823 #endif
825 PHP_METHOD(CairoContext, set_line_width);
826 #if (PHP_MAJOR_VERSION >= 5)
827 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_line_width_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
828 ZEND_ARG_INFO(0, width)
829 ZEND_END_ARG_INFO()
830 #else /* PHP 4.x */
831 #define CairoContext__set_line_width_args NULL
832 #endif
834 PHP_METHOD(CairoContext, set_matrix);
835 #if (PHP_MAJOR_VERSION >= 5)
836 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
837 ZEND_ARG_OBJ_INFO(0, matix, , 1)
838 ZEND_END_ARG_INFO()
839 #else /* PHP 4.x */
840 #define CairoContext__set_matrix_args NULL
841 #endif
843 PHP_METHOD(CairoContext, set_miter_limit);
844 #if (PHP_MAJOR_VERSION >= 5)
845 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_miter_limit_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
846 ZEND_ARG_INFO(0, limit)
847 ZEND_END_ARG_INFO()
848 #else /* PHP 4.x */
849 #define CairoContext__set_miter_limit_args NULL
850 #endif
852 PHP_METHOD(CairoContext, set_operator);
853 #if (PHP_MAJOR_VERSION >= 5)
854 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_operator_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
855 ZEND_ARG_INFO(0, op)
856 ZEND_END_ARG_INFO()
857 #else /* PHP 4.x */
858 #define CairoContext__set_operator_args NULL
859 #endif
861 PHP_METHOD(CairoContext, set_source);
862 #if (PHP_MAJOR_VERSION >= 5)
863 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_source_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
864 ZEND_ARG_OBJ_INFO(0, p, , 1)
865 ZEND_END_ARG_INFO()
866 #else /* PHP 4.x */
867 #define CairoContext__set_source_args NULL
868 #endif
870 PHP_METHOD(CairoContext, set_source_rgb);
871 #if (PHP_MAJOR_VERSION >= 5)
872 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_source_rgb_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 3)
873 ZEND_ARG_INFO(0, red)
874 ZEND_ARG_INFO(0, green)
875 ZEND_ARG_INFO(0, blue)
876 ZEND_END_ARG_INFO()
877 #else /* PHP 4.x */
878 #define CairoContext__set_source_rgb_args NULL
879 #endif
881 PHP_METHOD(CairoContext, set_source_rgba);
882 #if (PHP_MAJOR_VERSION >= 5)
883 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_source_rgba_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 3)
884 ZEND_ARG_INFO(0, red)
885 ZEND_ARG_INFO(0, green)
886 ZEND_ARG_INFO(0, blue)
887 ZEND_ARG_INFO(0, alpha)
888 ZEND_END_ARG_INFO()
889 #else /* PHP 4.x */
890 #define CairoContext__set_source_rgba_args NULL
891 #endif
893 PHP_METHOD(CairoContext, set_source_surface);
894 #if (PHP_MAJOR_VERSION >= 5)
895 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_source_surface_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
896 ZEND_ARG_OBJ_INFO(0, surface, , 1)
897 ZEND_ARG_INFO(0, x)
898 ZEND_ARG_INFO(0, y)
899 ZEND_END_ARG_INFO()
900 #else /* PHP 4.x */
901 #define CairoContext__set_source_surface_args NULL
902 #endif
904 PHP_METHOD(CairoContext, set_tolerance);
905 #if (PHP_MAJOR_VERSION >= 5)
906 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_tolerance_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
907 ZEND_ARG_INFO(0, tolerance)
908 ZEND_END_ARG_INFO()
909 #else /* PHP 4.x */
910 #define CairoContext__set_tolerance_args NULL
911 #endif
913 PHP_METHOD(CairoContext, show_glyphs);
914 #if (PHP_MAJOR_VERSION >= 5)
915 ZEND_BEGIN_ARG_INFO_EX(CairoContext__show_glyphs_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
916 #if (PHP_MINOR_VERSION > 0)
917 ZEND_ARG_ARRAY_INFO(0, obj, 1)
918 #else
919 ZEND_ARG_INFO(0, obj)
920 #endif
921 ZEND_ARG_INFO(0, num_glyphs)
922 ZEND_END_ARG_INFO()
923 #else /* PHP 4.x */
924 #define CairoContext__show_glyphs_args NULL
925 #endif
927 PHP_METHOD(CairoContext, show_page);
928 #if (PHP_MAJOR_VERSION >= 5)
929 ZEND_BEGIN_ARG_INFO_EX(CairoContext__show_page_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
930 ZEND_END_ARG_INFO()
931 #else /* PHP 4.x */
932 #define CairoContext__show_page_args NULL
933 #endif
935 PHP_METHOD(CairoContext, show_text);
936 #if (PHP_MAJOR_VERSION >= 5)
937 ZEND_BEGIN_ARG_INFO_EX(CairoContext__show_text_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
938 ZEND_ARG_INFO(0, obj)
939 ZEND_END_ARG_INFO()
940 #else /* PHP 4.x */
941 #define CairoContext__show_text_args NULL
942 #endif
944 PHP_METHOD(CairoContext, stroke);
945 #if (PHP_MAJOR_VERSION >= 5)
946 ZEND_BEGIN_ARG_INFO_EX(CairoContext__stroke_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
947 ZEND_END_ARG_INFO()
948 #else /* PHP 4.x */
949 #define CairoContext__stroke_args NULL
950 #endif
952 PHP_METHOD(CairoContext, stroke_extents);
953 #if (PHP_MAJOR_VERSION >= 5)
954 ZEND_BEGIN_ARG_INFO_EX(CairoContext__stroke_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
955 ZEND_END_ARG_INFO()
956 #else /* PHP 4.x */
957 #define CairoContext__stroke_extents_args NULL
958 #endif
960 PHP_METHOD(CairoContext, stroke_preserve);
961 #if (PHP_MAJOR_VERSION >= 5)
962 ZEND_BEGIN_ARG_INFO_EX(CairoContext__stroke_preserve_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
963 ZEND_END_ARG_INFO()
964 #else /* PHP 4.x */
965 #define CairoContext__stroke_preserve_args NULL
966 #endif
968 PHP_METHOD(CairoContext, text_extents);
969 #if (PHP_MAJOR_VERSION >= 5)
970 ZEND_BEGIN_ARG_INFO_EX(CairoContext__text_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
971 ZEND_ARG_INFO(0, str)
972 ZEND_END_ARG_INFO()
973 #else /* PHP 4.x */
974 #define CairoContext__text_extents_args NULL
975 #endif
977 PHP_METHOD(CairoContext, text_path);
978 #if (PHP_MAJOR_VERSION >= 5)
979 ZEND_BEGIN_ARG_INFO_EX(CairoContext__text_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
980 ZEND_ARG_INFO(0, obj)
981 ZEND_END_ARG_INFO()
982 #else /* PHP 4.x */
983 #define CairoContext__text_path_args NULL
984 #endif
986 PHP_METHOD(CairoContext, transform);
987 #if (PHP_MAJOR_VERSION >= 5)
988 ZEND_BEGIN_ARG_INFO_EX(CairoContext__transform_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
989 ZEND_ARG_OBJ_INFO(0, matrix, , 1)
990 ZEND_END_ARG_INFO()
991 #else /* PHP 4.x */
992 #define CairoContext__transform_args NULL
993 #endif
995 PHP_METHOD(CairoContext, translate);
996 #if (PHP_MAJOR_VERSION >= 5)
997 ZEND_BEGIN_ARG_INFO_EX(CairoContext__translate_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
998 ZEND_ARG_INFO(0, tx)
999 ZEND_ARG_INFO(0, ty)
1000 ZEND_END_ARG_INFO()
1001 #else /* PHP 4.x */
1002 #define CairoContext__translate_args NULL
1003 #endif
1005 PHP_METHOD(CairoContext, user_to_device);
1006 #if (PHP_MAJOR_VERSION >= 5)
1007 ZEND_BEGIN_ARG_INFO_EX(CairoContext__user_to_device_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1008 ZEND_ARG_INFO(0, x)
1009 ZEND_ARG_INFO(0, y)
1010 ZEND_END_ARG_INFO()
1011 #else /* PHP 4.x */
1012 #define CairoContext__user_to_device_args NULL
1013 #endif
1015 PHP_METHOD(CairoContext, user_to_device_distance);
1016 #if (PHP_MAJOR_VERSION >= 5)
1017 ZEND_BEGIN_ARG_INFO_EX(CairoContext__user_to_device_distance_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1018 ZEND_ARG_INFO(0, dx)
1019 ZEND_ARG_INFO(0, dy)
1020 ZEND_END_ARG_INFO()
1021 #else /* PHP 4.x */
1022 #define CairoContext__user_to_device_distance_args NULL
1023 #endif
1025 PHP_METHOD(CairoFontFace, __construct);
1026 #if (PHP_MAJOR_VERSION >= 5)
1027 ZEND_BEGIN_ARG_INFO_EX(CairoFontFace____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1028 ZEND_END_ARG_INFO()
1029 #else /* PHP 4.x */
1030 #define CairoFontFace____construct_args NULL
1031 #endif
1033 PHP_METHOD(CairoFontFace, __destruct);
1034 #if (PHP_MAJOR_VERSION >= 5)
1035 ZEND_BEGIN_ARG_INFO_EX(CairoFontFace____destruct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1036 ZEND_END_ARG_INFO()
1037 #else /* PHP 4.x */
1038 #define CairoFontFace____destruct_args NULL
1039 #endif
1041 PHP_METHOD(CairoFontOptions, __construct);
1042 #if (PHP_MAJOR_VERSION >= 5)
1043 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1044 ZEND_END_ARG_INFO()
1045 #else /* PHP 4.x */
1046 #define CairoFontOptions____construct_args NULL
1047 #endif
1049 PHP_METHOD(CairoFontOptions, get_antialias);
1050 #if (PHP_MAJOR_VERSION >= 5)
1051 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__get_antialias_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1052 ZEND_END_ARG_INFO()
1053 #else /* PHP 4.x */
1054 #define CairoFontOptions__get_antialias_args NULL
1055 #endif
1057 PHP_METHOD(CairoFontOptions, get_hint_metrics);
1058 #if (PHP_MAJOR_VERSION >= 5)
1059 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__get_hint_metrics_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1060 ZEND_END_ARG_INFO()
1061 #else /* PHP 4.x */
1062 #define CairoFontOptions__get_hint_metrics_args NULL
1063 #endif
1065 PHP_METHOD(CairoFontOptions, get_hint_style);
1066 #if (PHP_MAJOR_VERSION >= 5)
1067 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__get_hint_style_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1068 ZEND_END_ARG_INFO()
1069 #else /* PHP 4.x */
1070 #define CairoFontOptions__get_hint_style_args NULL
1071 #endif
1073 PHP_METHOD(CairoFontOptions, get_subpixel_order);
1074 #if (PHP_MAJOR_VERSION >= 5)
1075 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__get_subpixel_order_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1076 ZEND_END_ARG_INFO()
1077 #else /* PHP 4.x */
1078 #define CairoFontOptions__get_subpixel_order_args NULL
1079 #endif
1081 PHP_METHOD(CairoFontOptions, set_antialias);
1082 #if (PHP_MAJOR_VERSION >= 5)
1083 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__set_antialias_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1084 ZEND_ARG_INFO(0, aa)
1085 ZEND_END_ARG_INFO()
1086 #else /* PHP 4.x */
1087 #define CairoFontOptions__set_antialias_args NULL
1088 #endif
1090 PHP_METHOD(CairoFontOptions, set_hint_metrics);
1091 #if (PHP_MAJOR_VERSION >= 5)
1092 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__set_hint_metrics_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1093 ZEND_ARG_INFO(0, hm)
1094 ZEND_END_ARG_INFO()
1095 #else /* PHP 4.x */
1096 #define CairoFontOptions__set_hint_metrics_args NULL
1097 #endif
1099 PHP_METHOD(CairoFontOptions, set_hint_style);
1100 #if (PHP_MAJOR_VERSION >= 5)
1101 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__set_hint_style_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1102 ZEND_ARG_INFO(0, hs)
1103 ZEND_END_ARG_INFO()
1104 #else /* PHP 4.x */
1105 #define CairoFontOptions__set_hint_style_args NULL
1106 #endif
1108 PHP_METHOD(CairoFontOptions, set_subpixel_order);
1109 #if (PHP_MAJOR_VERSION >= 5)
1110 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__set_subpixel_order_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1111 ZEND_ARG_INFO(0, so)
1112 ZEND_END_ARG_INFO()
1113 #else /* PHP 4.x */
1114 #define CairoFontOptions__set_subpixel_order_args NULL
1115 #endif
1117 PHP_METHOD(CairoMatrix, __construct);
1118 #if (PHP_MAJOR_VERSION >= 5)
1119 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 5)
1120 ZEND_ARG_INFO(0, yx)
1121 ZEND_ARG_INFO(0, xy)
1122 ZEND_ARG_INFO(0, yy)
1123 ZEND_ARG_INFO(0, x0)
1124 ZEND_ARG_INFO(0, y0)
1125 ZEND_END_ARG_INFO()
1126 #else /* PHP 4.x */
1127 #define CairoMatrix____construct_args NULL
1128 #endif
1130 PHP_METHOD(CairoMatrix, init_rotate);
1131 #if (PHP_MAJOR_VERSION >= 5)
1132 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__init_rotate_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1133 ZEND_ARG_INFO(0, radians)
1134 ZEND_END_ARG_INFO()
1135 #else /* PHP 4.x */
1136 #define CairoMatrix__init_rotate_args NULL
1137 #endif
1139 PHP_METHOD(CairoMatrix, invert);
1140 #if (PHP_MAJOR_VERSION >= 5)
1141 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__invert_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1142 ZEND_END_ARG_INFO()
1143 #else /* PHP 4.x */
1144 #define CairoMatrix__invert_args NULL
1145 #endif
1147 PHP_METHOD(CairoMatrix, multiply);
1148 #if (PHP_MAJOR_VERSION >= 5)
1149 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__multiply_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1150 ZEND_ARG_OBJ_INFO(0, o2, , 1)
1151 ZEND_END_ARG_INFO()
1152 #else /* PHP 4.x */
1153 #define CairoMatrix__multiply_args NULL
1154 #endif
1156 PHP_METHOD(CairoMatrix, rotate);
1157 #if (PHP_MAJOR_VERSION >= 5)
1158 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__rotate_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1159 ZEND_ARG_INFO(0, radians)
1160 ZEND_END_ARG_INFO()
1161 #else /* PHP 4.x */
1162 #define CairoMatrix__rotate_args NULL
1163 #endif
1165 PHP_METHOD(CairoMatrix, scale);
1166 #if (PHP_MAJOR_VERSION >= 5)
1167 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__scale_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1168 ZEND_ARG_INFO(0, sx)
1169 ZEND_ARG_INFO(0, xy)
1170 ZEND_END_ARG_INFO()
1171 #else /* PHP 4.x */
1172 #define CairoMatrix__scale_args NULL
1173 #endif
1175 PHP_METHOD(CairoMatrix, transform_distance);
1176 #if (PHP_MAJOR_VERSION >= 5)
1177 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__transform_distance_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1178 ZEND_ARG_INFO(0, dx)
1179 ZEND_ARG_INFO(0, dy)
1180 ZEND_END_ARG_INFO()
1181 #else /* PHP 4.x */
1182 #define CairoMatrix__transform_distance_args NULL
1183 #endif
1185 PHP_METHOD(CairoMatrix, transform_point);
1186 #if (PHP_MAJOR_VERSION >= 5)
1187 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__transform_point_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1188 ZEND_ARG_INFO(0, x)
1189 ZEND_ARG_INFO(0, y)
1190 ZEND_END_ARG_INFO()
1191 #else /* PHP 4.x */
1192 #define CairoMatrix__transform_point_args NULL
1193 #endif
1195 PHP_METHOD(CairoMatrix, translate);
1196 #if (PHP_MAJOR_VERSION >= 5)
1197 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__translate_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1198 ZEND_ARG_INFO(0, tx)
1199 ZEND_ARG_INFO(0, ty)
1200 ZEND_END_ARG_INFO()
1201 #else /* PHP 4.x */
1202 #define CairoMatrix__translate_args NULL
1203 #endif
1205 PHP_METHOD(CairoPath, __construct);
1206 #if (PHP_MAJOR_VERSION >= 5)
1207 ZEND_BEGIN_ARG_INFO_EX(CairoPath____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1208 ZEND_END_ARG_INFO()
1209 #else /* PHP 4.x */
1210 #define CairoPath____construct_args NULL
1211 #endif
1213 PHP_METHOD(CairoPath, to_str);
1214 #if (PHP_MAJOR_VERSION >= 5)
1215 ZEND_BEGIN_ARG_INFO_EX(CairoPath__to_str_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1216 ZEND_END_ARG_INFO()
1217 #else /* PHP 4.x */
1218 #define CairoPath__to_str_args NULL
1219 #endif
1221 PHP_METHOD(CairoPattern, __construct);
1222 #if (PHP_MAJOR_VERSION >= 5)
1223 ZEND_BEGIN_ARG_INFO_EX(CairoPattern____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1224 ZEND_END_ARG_INFO()
1225 #else /* PHP 4.x */
1226 #define CairoPattern____construct_args NULL
1227 #endif
1229 PHP_METHOD(CairoPattern, get_matrix);
1230 #if (PHP_MAJOR_VERSION >= 5)
1231 ZEND_BEGIN_ARG_INFO_EX(CairoPattern__get_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1232 ZEND_END_ARG_INFO()
1233 #else /* PHP 4.x */
1234 #define CairoPattern__get_matrix_args NULL
1235 #endif
1237 PHP_METHOD(CairoPattern, set_matrix);
1238 #if (PHP_MAJOR_VERSION >= 5)
1239 ZEND_BEGIN_ARG_INFO_EX(CairoPattern__set_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1240 ZEND_ARG_OBJ_INFO(0, m, , 1)
1241 ZEND_END_ARG_INFO()
1242 #else /* PHP 4.x */
1243 #define CairoPattern__set_matrix_args NULL
1244 #endif
1246 PHP_METHOD(CairoGradient, __contruct);
1247 #if (PHP_MAJOR_VERSION >= 5)
1248 ZEND_BEGIN_ARG_INFO_EX(CairoGradient____contruct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1249 ZEND_END_ARG_INFO()
1250 #else /* PHP 4.x */
1251 #define CairoGradient____contruct_args NULL
1252 #endif
1254 PHP_METHOD(CairoGradient, add_color_stop_rgb);
1255 #if (PHP_MAJOR_VERSION >= 5)
1256 ZEND_BEGIN_ARG_INFO_EX(CairoGradient__add_color_stop_rgb_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 4)
1257 ZEND_ARG_INFO(0, offset)
1258 ZEND_ARG_INFO(0, red)
1259 ZEND_ARG_INFO(0, green)
1260 ZEND_ARG_INFO(0, blue)
1261 ZEND_END_ARG_INFO()
1262 #else /* PHP 4.x */
1263 #define CairoGradient__add_color_stop_rgb_args NULL
1264 #endif
1266 PHP_METHOD(CairoGradient, add_color_stop_rgba);
1267 #if (PHP_MAJOR_VERSION >= 5)
1268 ZEND_BEGIN_ARG_INFO_EX(CairoGradient__add_color_stop_rgba_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 5)
1269 ZEND_ARG_INFO(0, offset)
1270 ZEND_ARG_INFO(0, red)
1271 ZEND_ARG_INFO(0, green)
1272 ZEND_ARG_INFO(0, blue)
1273 ZEND_ARG_INFO(0, alpha)
1274 ZEND_END_ARG_INFO()
1275 #else /* PHP 4.x */
1276 #define CairoGradient__add_color_stop_rgba_args NULL
1277 #endif
1279 PHP_METHOD(CairoLinearGradient, __construct);
1280 #if (PHP_MAJOR_VERSION >= 5)
1281 ZEND_BEGIN_ARG_INFO_EX(CairoLinearGradient____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 3)
1282 ZEND_ARG_INFO(0, y0)
1283 ZEND_ARG_INFO(0, x1)
1284 ZEND_ARG_INFO(0, y1)
1285 ZEND_END_ARG_INFO()
1286 #else /* PHP 4.x */
1287 #define CairoLinearGradient____construct_args NULL
1288 #endif
1290 PHP_METHOD(CairoLinearGradient, get_linear_points);
1291 #if (PHP_MAJOR_VERSION >= 5)
1292 ZEND_BEGIN_ARG_INFO_EX(CairoLinearGradient__get_linear_points_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1293 ZEND_END_ARG_INFO()
1294 #else /* PHP 4.x */
1295 #define CairoLinearGradient__get_linear_points_args NULL
1296 #endif
1298 PHP_METHOD(CairoRadialGradient, __constuct);
1299 #if (PHP_MAJOR_VERSION >= 5)
1300 ZEND_BEGIN_ARG_INFO_EX(CairoRadialGradient____constuct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 6)
1301 ZEND_ARG_INFO(0, cx0)
1302 ZEND_ARG_INFO(0, cy0)
1303 ZEND_ARG_INFO(0, radius0)
1304 ZEND_ARG_INFO(0, cx1)
1305 ZEND_ARG_INFO(0, cy1)
1306 ZEND_ARG_INFO(0, radius1)
1307 ZEND_END_ARG_INFO()
1308 #else /* PHP 4.x */
1309 #define CairoRadialGradient____constuct_args NULL
1310 #endif
1312 PHP_METHOD(CairoRadialGradient, get_radial_circles);
1313 #if (PHP_MAJOR_VERSION >= 5)
1314 ZEND_BEGIN_ARG_INFO_EX(CairoRadialGradient__get_radial_circles_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1315 ZEND_END_ARG_INFO()
1316 #else /* PHP 4.x */
1317 #define CairoRadialGradient__get_radial_circles_args NULL
1318 #endif
1320 PHP_METHOD(CairoSolidPattern, __construct);
1321 #if (PHP_MAJOR_VERSION >= 5)
1322 ZEND_BEGIN_ARG_INFO_EX(CairoSolidPattern____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1323 ZEND_ARG_INFO(0, g)
1324 ZEND_ARG_INFO(0, b)
1325 ZEND_ARG_INFO(0, a)
1326 ZEND_END_ARG_INFO()
1327 #else /* PHP 4.x */
1328 #define CairoSolidPattern____construct_args NULL
1329 #endif
1331 PHP_METHOD(CairoSolidPattern, get_rgba);
1332 #if (PHP_MAJOR_VERSION >= 5)
1333 ZEND_BEGIN_ARG_INFO_EX(CairoSolidPattern__get_rgba_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1334 ZEND_END_ARG_INFO()
1335 #else /* PHP 4.x */
1336 #define CairoSolidPattern__get_rgba_args NULL
1337 #endif
1339 PHP_METHOD(CairoSurfacePattern, __construct);
1340 #if (PHP_MAJOR_VERSION >= 5)
1341 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1342 ZEND_END_ARG_INFO()
1343 #else /* PHP 4.x */
1344 #define CairoSurfacePattern____construct_args NULL
1345 #endif
1347 PHP_METHOD(CairoSurfacePattern, get_extend);
1348 #if (PHP_MAJOR_VERSION >= 5)
1349 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern__get_extend_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1350 ZEND_END_ARG_INFO()
1351 #else /* PHP 4.x */
1352 #define CairoSurfacePattern__get_extend_args NULL
1353 #endif
1355 PHP_METHOD(CairoSurfacePattern, get_filter);
1356 #if (PHP_MAJOR_VERSION >= 5)
1357 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern__get_filter_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1358 ZEND_END_ARG_INFO()
1359 #else /* PHP 4.x */
1360 #define CairoSurfacePattern__get_filter_args NULL
1361 #endif
1363 PHP_METHOD(CairoSurfacePattern, get_surface);
1364 #if (PHP_MAJOR_VERSION >= 5)
1365 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern__get_surface_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1366 ZEND_END_ARG_INFO()
1367 #else /* PHP 4.x */
1368 #define CairoSurfacePattern__get_surface_args NULL
1369 #endif
1371 PHP_METHOD(CairoSurfacePattern, set_extend);
1372 #if (PHP_MAJOR_VERSION >= 5)
1373 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern__set_extend_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1374 ZEND_ARG_INFO(0, extend)
1375 ZEND_END_ARG_INFO()
1376 #else /* PHP 4.x */
1377 #define CairoSurfacePattern__set_extend_args NULL
1378 #endif
1380 PHP_METHOD(CairoSurfacePattern, set_filter);
1381 #if (PHP_MAJOR_VERSION >= 5)
1382 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern__set_filter_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1383 ZEND_ARG_INFO(0, filter)
1384 ZEND_END_ARG_INFO()
1385 #else /* PHP 4.x */
1386 #define CairoSurfacePattern__set_filter_args NULL
1387 #endif
1389 PHP_METHOD(CairoScaledFont, __construct);
1390 #if (PHP_MAJOR_VERSION >= 5)
1391 ZEND_BEGIN_ARG_INFO_EX(CairoScaledFont____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 3)
1392 ZEND_ARG_OBJ_INFO(0, mx1, , 1)
1393 ZEND_ARG_OBJ_INFO(0, mx2, , 1)
1394 ZEND_ARG_OBJ_INFO(0, fo, , 1)
1395 ZEND_END_ARG_INFO()
1396 #else /* PHP 4.x */
1397 #define CairoScaledFont____construct_args NULL
1398 #endif
1400 PHP_METHOD(CairoScaledFont, extents);
1401 #if (PHP_MAJOR_VERSION >= 5)
1402 ZEND_BEGIN_ARG_INFO_EX(CairoScaledFont__extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1403 ZEND_END_ARG_INFO()
1404 #else /* PHP 4.x */
1405 #define CairoScaledFont__extents_args NULL
1406 #endif
1408 PHP_METHOD(CairoScaledFont, get_font_face);
1409 #if (PHP_MAJOR_VERSION >= 5)
1410 ZEND_BEGIN_ARG_INFO_EX(CairoScaledFont__get_font_face_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1411 ZEND_END_ARG_INFO()
1412 #else /* PHP 4.x */
1413 #define CairoScaledFont__get_font_face_args NULL
1414 #endif
1416 PHP_METHOD(CairoScaledFont, text_extents);
1417 #if (PHP_MAJOR_VERSION >= 5)
1418 ZEND_BEGIN_ARG_INFO_EX(CairoScaledFont__text_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1419 ZEND_ARG_INFO(0, str)
1420 ZEND_END_ARG_INFO()
1421 #else /* PHP 4.x */
1422 #define CairoScaledFont__text_extents_args NULL
1423 #endif
1425 PHP_METHOD(CairoSurface, __construct);
1426 #if (PHP_MAJOR_VERSION >= 5)
1427 ZEND_BEGIN_ARG_INFO_EX(CairoSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1428 ZEND_END_ARG_INFO()
1429 #else /* PHP 4.x */
1430 #define CairoSurface____construct_args NULL
1431 #endif
1433 PHP_METHOD(CairoSurface, create_similar);
1434 #if (PHP_MAJOR_VERSION >= 5)
1435 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__create_similar_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 3)
1436 ZEND_ARG_INFO(0, content)
1437 ZEND_ARG_INFO(0, width)
1438 ZEND_ARG_INFO(0, height)
1439 ZEND_END_ARG_INFO()
1440 #else /* PHP 4.x */
1441 #define CairoSurface__create_similar_args NULL
1442 #endif
1444 PHP_METHOD(CairoSurface, finish);
1445 #if (PHP_MAJOR_VERSION >= 5)
1446 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__finish_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1447 ZEND_END_ARG_INFO()
1448 #else /* PHP 4.x */
1449 #define CairoSurface__finish_args NULL
1450 #endif
1452 PHP_METHOD(CairoSurface, flush);
1453 #if (PHP_MAJOR_VERSION >= 5)
1454 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__flush_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1455 ZEND_END_ARG_INFO()
1456 #else /* PHP 4.x */
1457 #define CairoSurface__flush_args NULL
1458 #endif
1460 PHP_METHOD(CairoSurface, get_content);
1461 #if (PHP_MAJOR_VERSION >= 5)
1462 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__get_content_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1463 ZEND_END_ARG_INFO()
1464 #else /* PHP 4.x */
1465 #define CairoSurface__get_content_args NULL
1466 #endif
1468 PHP_METHOD(CairoSurface, get_device_offset);
1469 #if (PHP_MAJOR_VERSION >= 5)
1470 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__get_device_offset_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1471 ZEND_END_ARG_INFO()
1472 #else /* PHP 4.x */
1473 #define CairoSurface__get_device_offset_args NULL
1474 #endif
1476 PHP_METHOD(CairoSurface, get_font_options);
1477 #if (PHP_MAJOR_VERSION >= 5)
1478 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__get_font_options_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1479 ZEND_END_ARG_INFO()
1480 #else /* PHP 4.x */
1481 #define CairoSurface__get_font_options_args NULL
1482 #endif
1484 PHP_METHOD(CairoSurface, mark_dirty_rectangle);
1485 #if (PHP_MAJOR_VERSION >= 5)
1486 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__mark_dirty_rectangle_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1487 ZEND_ARG_INFO(0, x)
1488 ZEND_ARG_INFO(0, y)
1489 ZEND_ARG_INFO(0, width)
1490 ZEND_ARG_INFO(0, height)
1491 ZEND_END_ARG_INFO()
1492 #else /* PHP 4.x */
1493 #define CairoSurface__mark_dirty_rectangle_args NULL
1494 #endif
1496 PHP_METHOD(CairoSurface, set_device_offset);
1497 #if (PHP_MAJOR_VERSION >= 5)
1498 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__set_device_offset_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1499 ZEND_ARG_INFO(0, x_offset)
1500 ZEND_ARG_INFO(0, y_offset)
1501 ZEND_END_ARG_INFO()
1502 #else /* PHP 4.x */
1503 #define CairoSurface__set_device_offset_args NULL
1504 #endif
1506 PHP_METHOD(CairoSurface, set_fallback_resolution);
1507 #if (PHP_MAJOR_VERSION >= 5)
1508 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__set_fallback_resolution_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1509 ZEND_ARG_INFO(0, x_ppi)
1510 ZEND_ARG_INFO(0, y_ppi)
1511 ZEND_END_ARG_INFO()
1512 #else /* PHP 4.x */
1513 #define CairoSurface__set_fallback_resolution_args NULL
1514 #endif
1516 PHP_METHOD(CairoSurface, write_to_png);
1517 #if (PHP_MAJOR_VERSION >= 5)
1518 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__write_to_png_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1519 ZEND_ARG_INFO(0, file)
1520 ZEND_END_ARG_INFO()
1521 #else /* PHP 4.x */
1522 #define CairoSurface__write_to_png_args NULL
1523 #endif
1525 PHP_METHOD(CairoSurface, write_to_png_stream);
1526 #if (PHP_MAJOR_VERSION >=5)
1527 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__write_to_png_stream_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1528 ZEND_ARG_INFO(0, zstream)
1529 ZEND_END_ARG_INFO()
1530 #else
1531 #define CairoSurface__write_to_png_stream_args NULL
1532 #endif
1534 PHP_METHOD(CairoImageSurface, __construct);
1535 #if (PHP_MAJOR_VERSION >= 5)
1536 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1537 ZEND_ARG_INFO(0, widthm)
1538 ZEND_ARG_INFO(0, height)
1539 ZEND_END_ARG_INFO()
1540 #else /* PHP 4.x */
1541 #define CairoImageSurface____construct_args NULL
1542 #endif
1544 PHP_METHOD(CairoImageSurface, create_from_data);
1545 #if (PHP_MAJOR_VERSION >= 5)
1546 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__create_from_data_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 4)
1547 ZEND_ARG_OBJ_INFO(0, obj, , 1)
1548 ZEND_ARG_INFO(0, format)
1549 ZEND_ARG_INFO(0, width)
1550 ZEND_ARG_INFO(0, height)
1551 ZEND_ARG_INFO(0, stride)
1552 ZEND_END_ARG_INFO()
1553 #else /* PHP 4.x */
1554 #define CairoImageSurface__create_from_data_args NULL
1555 #endif
1557 PHP_METHOD(CairoImageSurface, create_from_png);
1558 #if (PHP_MAJOR_VERSION >= 5)
1559 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__create_from_png_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1560 ZEND_ARG_INFO(0, file)
1561 ZEND_END_ARG_INFO()
1562 #else /* PHP 4.x */
1563 #define CairoImageSurface__create_from_png_args NULL
1564 #endif
1567 PHP_METHOD(CairoImageSurface, create_from_png_stream);
1568 #if (PHP_MAJOR_VERSION >= 5)
1569 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__create_from_png_stream_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1570 ZEND_ARG_INFO(0, zstream)
1571 ZEND_END_ARG_INFO()
1572 #else /* PHP 4.x */
1573 #define CairoImageSurface__create_from_png_stream_args NULL
1574 #endif
1576 PHP_METHOD(CairoImageSurface, get_data);
1577 #if (PHP_MAJOR_VERSION >= 5)
1578 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_data_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1579 ZEND_END_ARG_INFO()
1580 #else /* PHP 4.x */
1581 #define CairoImageSurface__get_data_args NULL
1582 #endif
1584 PHP_METHOD(CairoImageSurface, get_format);
1585 #if (PHP_MAJOR_VERSION >= 5)
1586 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_format_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1587 ZEND_END_ARG_INFO()
1588 #else /* PHP 4.x */
1589 #define CairoImageSurface__get_format_args NULL
1590 #endif
1592 PHP_METHOD(CairoImageSurface, get_height);
1593 #if (PHP_MAJOR_VERSION >= 5)
1594 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_height_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1595 ZEND_END_ARG_INFO()
1596 #else /* PHP 4.x */
1597 #define CairoImageSurface__get_height_args NULL
1598 #endif
1600 PHP_METHOD(CairoImageSurface, get_stride);
1601 #if (PHP_MAJOR_VERSION >= 5)
1602 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_stride_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1603 ZEND_END_ARG_INFO()
1604 #else /* PHP 4.x */
1605 #define CairoImageSurface__get_stride_args NULL
1606 #endif
1608 PHP_METHOD(CairoImageSurface, get_width);
1609 #if (PHP_MAJOR_VERSION >= 5)
1610 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_width_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1611 ZEND_END_ARG_INFO()
1612 #else /* PHP 4.x */
1613 #define CairoImageSurface__get_width_args NULL
1614 #endif
1616 PHP_METHOD(CairoPDFSurface, __construct);
1617 #if (PHP_MAJOR_VERSION >= 5)
1618 ZEND_BEGIN_ARG_INFO_EX(CairoPDFSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1619 ZEND_ARG_INFO(0, wpts)
1620 ZEND_ARG_INFO(0, hpts)
1621 ZEND_END_ARG_INFO()
1622 #else /* PHP 4.x */
1623 #define CairoPDFSurface____construct_args NULL
1624 #endif
1626 PHP_METHOD(CairoPDFSurface, set_size);
1627 #if (PHP_MAJOR_VERSION >= 5)
1628 ZEND_BEGIN_ARG_INFO_EX(CairoPDFSurface__set_size_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1629 ZEND_ARG_INFO(0, wpts)
1630 ZEND_ARG_INFO(0, hpts)
1631 ZEND_END_ARG_INFO()
1632 #else /* PHP 4.x */
1633 #define CairoPDFSurface__set_size_args NULL
1634 #endif
1636 PHP_METHOD(CairoPSSurface, __construct);
1637 #if (PHP_MAJOR_VERSION >= 5)
1638 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1639 ZEND_ARG_INFO(0, wpts)
1640 ZEND_ARG_INFO(0, hpts)
1641 ZEND_END_ARG_INFO()
1642 #else /* PHP 4.x */
1643 #define CairoPSSurface____construct_args NULL
1644 #endif
1646 PHP_METHOD(CairoPSSurface, dsc_begin_page_setup);
1647 #if (PHP_MAJOR_VERSION >= 5)
1648 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__dsc_begin_page_setup_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1649 ZEND_END_ARG_INFO()
1650 #else /* PHP 4.x */
1651 #define CairoPSSurface__dsc_begin_page_setup_args NULL
1652 #endif
1654 PHP_METHOD(CairoPSSurface, dsc_begin_setup);
1655 #if (PHP_MAJOR_VERSION >= 5)
1656 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__dsc_begin_setup_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1657 ZEND_END_ARG_INFO()
1658 #else /* PHP 4.x */
1659 #define CairoPSSurface__dsc_begin_setup_args NULL
1660 #endif
1662 PHP_METHOD(CairoPSSurface, dsc_comment);
1663 #if (PHP_MAJOR_VERSION >= 5)
1664 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__dsc_comment_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1665 ZEND_END_ARG_INFO()
1666 #else /* PHP 4.x */
1667 #define CairoPSSurface__dsc_comment_args NULL
1668 #endif
1670 PHP_METHOD(CairoPSSurface, get_levels);
1671 #if (PHP_MAJOR_VERSION >= 5)
1672 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__get_levels_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1673 ZEND_END_ARG_INFO()
1674 #else /* PHP 4.x */
1675 #define CairoPSSurface__get_levels_args NULL
1676 #endif
1678 PHP_METHOD(CairoPSSurface, get_level_string);
1679 #if (PHP_MAJOR_VERSION >= 5)
1680 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__get_level_string_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1681 ZEND_END_ARG_INFO()
1682 #else /* PHP 4.x */
1683 #define CairoPSSurface__get_level_string_args NULL
1684 #endif
1686 PHP_METHOD(CairoPSSurface, restrict_to_level);
1687 #if (PHP_MAJOR_VERSION >= 5)
1688 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__restrict_to_level_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1689 ZEND_ARG_INFO(0, level)
1690 ZEND_END_ARG_INFO()
1691 #else /* PHP 4.x */
1692 #define CairoPSSurface__restrict_to_level_args NULL
1693 #endif
1695 PHP_METHOD(CairoPSSurface, set_eps);
1696 #if (PHP_MAJOR_VERSION >= 5)
1697 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__set_eps_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1698 ZEND_END_ARG_INFO()
1699 #else /* PHP 4.x */
1700 #define CairoPSSurface__set_eps_args NULL
1701 #endif
1703 PHP_METHOD(CairoPSSurface, set_size);
1704 #if (PHP_MAJOR_VERSION >= 5)
1705 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__set_size_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1706 ZEND_ARG_INFO(0, wpts)
1707 ZEND_ARG_INFO(0, hpts)
1708 ZEND_END_ARG_INFO()
1709 #else /* PHP 4.x */
1710 #define CairoPSSurface__set_size_args NULL
1711 #endif
1713 PHP_METHOD(CairoQuartzSurface, __construct);
1714 #if (PHP_MAJOR_VERSION >= 5)
1715 ZEND_BEGIN_ARG_INFO_EX(CairoQuartzSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1716 ZEND_ARG_INFO(0, hpixels)
1717 ZEND_ARG_INFO(0, format)
1718 ZEND_END_ARG_INFO()
1719 #else /* PHP 4.x */
1720 #define CairoQuartzSurface____construct_args NULL
1721 #endif
1723 PHP_METHOD(CairoSVGSurface, __construct);
1724 #if (PHP_MAJOR_VERSION >= 5)
1725 ZEND_BEGIN_ARG_INFO_EX(CairoSVGSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1726 ZEND_ARG_INFO(0, wpts)
1727 ZEND_ARG_INFO(0, hpts)
1728 ZEND_END_ARG_INFO()
1729 #else /* PHP 4.x */
1730 #define CairoSVGSurface____construct_args NULL
1731 #endif
1733 PHP_METHOD(CairoWin32Surface, __construct);
1734 #if (PHP_MAJOR_VERSION >= 5)
1735 ZEND_BEGIN_ARG_INFO_EX(CairoWin32Surface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1736 ZEND_END_ARG_INFO()
1737 #else /* PHP 4.x */
1738 #define CairoWin32Surface____construct_args NULL
1739 #endif
1741 PHP_METHOD(CairoXlibSurface, __construct);
1742 #if (PHP_MAJOR_VERSION >= 5)
1743 ZEND_BEGIN_ARG_INFO_EX(CairoXlibSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1744 ZEND_END_ARG_INFO()
1745 #else /* PHP 4.x */
1746 #define CairoXlibSurface____construct_args NULL
1747 #endif
1749 PHP_METHOD(CairoXlibSurface, get_depth);
1750 #if (PHP_MAJOR_VERSION >= 5)
1751 ZEND_BEGIN_ARG_INFO_EX(CairoXlibSurface__get_depth_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1752 ZEND_END_ARG_INFO()
1753 #else /* PHP 4.x */
1754 #define CairoXlibSurface__get_depth_args NULL
1755 #endif
1757 PHP_METHOD(CairoXlibSurface, get_height);
1758 #if (PHP_MAJOR_VERSION >= 5)
1759 ZEND_BEGIN_ARG_INFO_EX(CairoXlibSurface__get_height_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1760 ZEND_END_ARG_INFO()
1761 #else /* PHP 4.x */
1762 #define CairoXlibSurface__get_height_args NULL
1763 #endif
1765 PHP_METHOD(CairoXlibSurface, get_width);
1766 #if (PHP_MAJOR_VERSION >= 5)
1767 ZEND_BEGIN_ARG_INFO_EX(CairoXlibSurface__get_width_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1768 ZEND_END_ARG_INFO()
1769 #else /* PHP 4.x */
1770 #define CairoXlibSurface__get_width_args NULL
1771 #endif
1773 #ifdef __cplusplus
1774 } // extern "C"
1775 #endif
1777 #endif /* PHP_HAVE_PHPCAIRO */
1779 #endif /* PHP_PHPCAIRO_H */
1783 * Local variables:
1784 * tab-width: 4
1785 * c-basic-offset: 4
1786 * End:
1787 * vim600: noet sw=4 ts=4 fdm=marker
1788 * vim<600: noet sw=4 ts=4