Debug in progress
[phpCairo.git] / individual_files / php_phpCairo.h
blob2e54ef6abbd562b77a84f03e18d78ded6e23068d
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, CairoSurface, 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, CairoPath, 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, CairoPattern, 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, CairoSurface, 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, CairoPath, 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, CairoFontFace, 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, CairoMatrix, 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, CairoFontOptions, 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, CairoMatrix, 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, 0)
864 ZEND_ARG_OBJ_INFO(0, p, CairoPattern, 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, CairoSurface, 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, CairoMatrix, 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(CairoFontOptions, __construct);
1034 #if (PHP_MAJOR_VERSION >= 5)
1035 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1036 ZEND_END_ARG_INFO()
1037 #else /* PHP 4.x */
1038 #define CairoFontOptions____construct_args NULL
1039 #endif
1041 PHP_METHOD(CairoFontOptions, get_antialias);
1042 #if (PHP_MAJOR_VERSION >= 5)
1043 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__get_antialias_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1044 ZEND_END_ARG_INFO()
1045 #else /* PHP 4.x */
1046 #define CairoFontOptions__get_antialias_args NULL
1047 #endif
1049 PHP_METHOD(CairoFontOptions, get_hint_metrics);
1050 #if (PHP_MAJOR_VERSION >= 5)
1051 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__get_hint_metrics_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1052 ZEND_END_ARG_INFO()
1053 #else /* PHP 4.x */
1054 #define CairoFontOptions__get_hint_metrics_args NULL
1055 #endif
1057 PHP_METHOD(CairoFontOptions, get_hint_style);
1058 #if (PHP_MAJOR_VERSION >= 5)
1059 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__get_hint_style_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1060 ZEND_END_ARG_INFO()
1061 #else /* PHP 4.x */
1062 #define CairoFontOptions__get_hint_style_args NULL
1063 #endif
1065 PHP_METHOD(CairoFontOptions, get_subpixel_order);
1066 #if (PHP_MAJOR_VERSION >= 5)
1067 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__get_subpixel_order_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1068 ZEND_END_ARG_INFO()
1069 #else /* PHP 4.x */
1070 #define CairoFontOptions__get_subpixel_order_args NULL
1071 #endif
1073 PHP_METHOD(CairoFontOptions, set_antialias);
1074 #if (PHP_MAJOR_VERSION >= 5)
1075 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__set_antialias_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1076 ZEND_ARG_INFO(0, aa)
1077 ZEND_END_ARG_INFO()
1078 #else /* PHP 4.x */
1079 #define CairoFontOptions__set_antialias_args NULL
1080 #endif
1082 PHP_METHOD(CairoFontOptions, set_hint_metrics);
1083 #if (PHP_MAJOR_VERSION >= 5)
1084 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__set_hint_metrics_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1085 ZEND_ARG_INFO(0, hm)
1086 ZEND_END_ARG_INFO()
1087 #else /* PHP 4.x */
1088 #define CairoFontOptions__set_hint_metrics_args NULL
1089 #endif
1091 PHP_METHOD(CairoFontOptions, set_hint_style);
1092 #if (PHP_MAJOR_VERSION >= 5)
1093 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__set_hint_style_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1094 ZEND_ARG_INFO(0, hs)
1095 ZEND_END_ARG_INFO()
1096 #else /* PHP 4.x */
1097 #define CairoFontOptions__set_hint_style_args NULL
1098 #endif
1100 PHP_METHOD(CairoFontOptions, set_subpixel_order);
1101 #if (PHP_MAJOR_VERSION >= 5)
1102 ZEND_BEGIN_ARG_INFO_EX(CairoFontOptions__set_subpixel_order_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1103 ZEND_ARG_INFO(0, so)
1104 ZEND_END_ARG_INFO()
1105 #else /* PHP 4.x */
1106 #define CairoFontOptions__set_subpixel_order_args NULL
1107 #endif
1109 PHP_METHOD(CairoMatrix, __construct);
1110 #if (PHP_MAJOR_VERSION >= 5)
1111 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 5)
1112 ZEND_ARG_INFO(0, yx)
1113 ZEND_ARG_INFO(0, xy)
1114 ZEND_ARG_INFO(0, yy)
1115 ZEND_ARG_INFO(0, x0)
1116 ZEND_ARG_INFO(0, y0)
1117 ZEND_END_ARG_INFO()
1118 #else /* PHP 4.x */
1119 #define CairoMatrix____construct_args NULL
1120 #endif
1122 PHP_METHOD(CairoMatrix, init_rotate);
1123 #if (PHP_MAJOR_VERSION >= 5)
1124 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__init_rotate_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1125 ZEND_ARG_INFO(0, radians)
1126 ZEND_END_ARG_INFO()
1127 #else /* PHP 4.x */
1128 #define CairoMatrix__init_rotate_args NULL
1129 #endif
1131 PHP_METHOD(CairoMatrix, invert);
1132 #if (PHP_MAJOR_VERSION >= 5)
1133 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__invert_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1134 ZEND_END_ARG_INFO()
1135 #else /* PHP 4.x */
1136 #define CairoMatrix__invert_args NULL
1137 #endif
1139 PHP_METHOD(CairoMatrix, multiply);
1140 #if (PHP_MAJOR_VERSION >= 5)
1141 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__multiply_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1142 ZEND_ARG_OBJ_INFO(0, o2, CairoMatrix, 1)
1143 ZEND_END_ARG_INFO()
1144 #else /* PHP 4.x */
1145 #define CairoMatrix__multiply_args NULL
1146 #endif
1148 PHP_METHOD(CairoMatrix, rotate);
1149 #if (PHP_MAJOR_VERSION >= 5)
1150 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__rotate_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1151 ZEND_ARG_INFO(0, radians)
1152 ZEND_END_ARG_INFO()
1153 #else /* PHP 4.x */
1154 #define CairoMatrix__rotate_args NULL
1155 #endif
1157 PHP_METHOD(CairoMatrix, scale);
1158 #if (PHP_MAJOR_VERSION >= 5)
1159 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__scale_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1160 ZEND_ARG_INFO(0, sx)
1161 ZEND_ARG_INFO(0, xy)
1162 ZEND_END_ARG_INFO()
1163 #else /* PHP 4.x */
1164 #define CairoMatrix__scale_args NULL
1165 #endif
1167 PHP_METHOD(CairoMatrix, transform_distance);
1168 #if (PHP_MAJOR_VERSION >= 5)
1169 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__transform_distance_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1170 ZEND_ARG_INFO(0, dx)
1171 ZEND_ARG_INFO(0, dy)
1172 ZEND_END_ARG_INFO()
1173 #else /* PHP 4.x */
1174 #define CairoMatrix__transform_distance_args NULL
1175 #endif
1177 PHP_METHOD(CairoMatrix, transform_point);
1178 #if (PHP_MAJOR_VERSION >= 5)
1179 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__transform_point_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1180 ZEND_ARG_INFO(0, x)
1181 ZEND_ARG_INFO(0, y)
1182 ZEND_END_ARG_INFO()
1183 #else /* PHP 4.x */
1184 #define CairoMatrix__transform_point_args NULL
1185 #endif
1187 PHP_METHOD(CairoMatrix, translate);
1188 #if (PHP_MAJOR_VERSION >= 5)
1189 ZEND_BEGIN_ARG_INFO_EX(CairoMatrix__translate_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1190 ZEND_ARG_INFO(0, tx)
1191 ZEND_ARG_INFO(0, ty)
1192 ZEND_END_ARG_INFO()
1193 #else /* PHP 4.x */
1194 #define CairoMatrix__translate_args NULL
1195 #endif
1197 PHP_METHOD(CairoPath, __construct);
1198 #if (PHP_MAJOR_VERSION >= 5)
1199 ZEND_BEGIN_ARG_INFO_EX(CairoPath____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1200 ZEND_END_ARG_INFO()
1201 #else /* PHP 4.x */
1202 #define CairoPath____construct_args NULL
1203 #endif
1205 PHP_METHOD(CairoPath, to_str);
1206 #if (PHP_MAJOR_VERSION >= 5)
1207 ZEND_BEGIN_ARG_INFO_EX(CairoPath__to_str_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1208 ZEND_END_ARG_INFO()
1209 #else /* PHP 4.x */
1210 #define CairoPath__to_str_args NULL
1211 #endif
1213 PHP_METHOD(CairoPattern, __construct);
1214 #if (PHP_MAJOR_VERSION >= 5)
1215 ZEND_BEGIN_ARG_INFO_EX(CairoPattern____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1216 ZEND_END_ARG_INFO()
1217 #else /* PHP 4.x */
1218 #define CairoPattern____construct_args NULL
1219 #endif
1221 PHP_METHOD(CairoPattern, get_matrix);
1222 #if (PHP_MAJOR_VERSION >= 5)
1223 ZEND_BEGIN_ARG_INFO_EX(CairoPattern__get_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1224 ZEND_END_ARG_INFO()
1225 #else /* PHP 4.x */
1226 #define CairoPattern__get_matrix_args NULL
1227 #endif
1229 PHP_METHOD(CairoPattern, set_matrix);
1230 #if (PHP_MAJOR_VERSION >= 5)
1231 ZEND_BEGIN_ARG_INFO_EX(CairoPattern__set_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1232 ZEND_ARG_OBJ_INFO(0, m, CairoMatrix, 1)
1233 ZEND_END_ARG_INFO()
1234 #else /* PHP 4.x */
1235 #define CairoPattern__set_matrix_args NULL
1236 #endif
1238 PHP_METHOD(CairoGradient, __contruct);
1239 #if (PHP_MAJOR_VERSION >= 5)
1240 ZEND_BEGIN_ARG_INFO_EX(CairoGradient____contruct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1241 ZEND_END_ARG_INFO()
1242 #else /* PHP 4.x */
1243 #define CairoGradient____contruct_args NULL
1244 #endif
1246 PHP_METHOD(CairoGradient, add_color_stop_rgb);
1247 #if (PHP_MAJOR_VERSION >= 5)
1248 ZEND_BEGIN_ARG_INFO_EX(CairoGradient__add_color_stop_rgb_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 4)
1249 ZEND_ARG_INFO(0, offset)
1250 ZEND_ARG_INFO(0, red)
1251 ZEND_ARG_INFO(0, green)
1252 ZEND_ARG_INFO(0, blue)
1253 ZEND_END_ARG_INFO()
1254 #else /* PHP 4.x */
1255 #define CairoGradient__add_color_stop_rgb_args NULL
1256 #endif
1258 PHP_METHOD(CairoGradient, add_color_stop_rgba);
1259 #if (PHP_MAJOR_VERSION >= 5)
1260 ZEND_BEGIN_ARG_INFO_EX(CairoGradient__add_color_stop_rgba_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 5)
1261 ZEND_ARG_INFO(0, offset)
1262 ZEND_ARG_INFO(0, red)
1263 ZEND_ARG_INFO(0, green)
1264 ZEND_ARG_INFO(0, blue)
1265 ZEND_ARG_INFO(0, alpha)
1266 ZEND_END_ARG_INFO()
1267 #else /* PHP 4.x */
1268 #define CairoGradient__add_color_stop_rgba_args NULL
1269 #endif
1271 PHP_METHOD(CairoLinearGradient, __construct);
1272 #if (PHP_MAJOR_VERSION >= 5)
1273 ZEND_BEGIN_ARG_INFO_EX(CairoLinearGradient____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 3)
1274 ZEND_ARG_INFO(0, y0)
1275 ZEND_ARG_INFO(0, x1)
1276 ZEND_ARG_INFO(0, y1)
1277 ZEND_END_ARG_INFO()
1278 #else /* PHP 4.x */
1279 #define CairoLinearGradient____construct_args NULL
1280 #endif
1282 PHP_METHOD(CairoLinearGradient, get_linear_points);
1283 #if (PHP_MAJOR_VERSION >= 5)
1284 ZEND_BEGIN_ARG_INFO_EX(CairoLinearGradient__get_linear_points_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1285 ZEND_END_ARG_INFO()
1286 #else /* PHP 4.x */
1287 #define CairoLinearGradient__get_linear_points_args NULL
1288 #endif
1290 PHP_METHOD(CairoRadialGradient, __constuct);
1291 #if (PHP_MAJOR_VERSION >= 5)
1292 ZEND_BEGIN_ARG_INFO_EX(CairoRadialGradient____constuct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 6)
1293 ZEND_ARG_INFO(0, cx0)
1294 ZEND_ARG_INFO(0, cy0)
1295 ZEND_ARG_INFO(0, radius0)
1296 ZEND_ARG_INFO(0, cx1)
1297 ZEND_ARG_INFO(0, cy1)
1298 ZEND_ARG_INFO(0, radius1)
1299 ZEND_END_ARG_INFO()
1300 #else /* PHP 4.x */
1301 #define CairoRadialGradient____constuct_args NULL
1302 #endif
1304 PHP_METHOD(CairoRadialGradient, get_radial_circles);
1305 #if (PHP_MAJOR_VERSION >= 5)
1306 ZEND_BEGIN_ARG_INFO_EX(CairoRadialGradient__get_radial_circles_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1307 ZEND_END_ARG_INFO()
1308 #else /* PHP 4.x */
1309 #define CairoRadialGradient__get_radial_circles_args NULL
1310 #endif
1312 PHP_METHOD(CairoSolidPattern, __construct);
1313 #if (PHP_MAJOR_VERSION >= 5)
1314 ZEND_BEGIN_ARG_INFO_EX(CairoSolidPattern____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1315 ZEND_ARG_INFO(0, g)
1316 ZEND_ARG_INFO(0, b)
1317 ZEND_ARG_INFO(0, a)
1318 ZEND_END_ARG_INFO()
1319 #else /* PHP 4.x */
1320 #define CairoSolidPattern____construct_args NULL
1321 #endif
1323 PHP_METHOD(CairoSolidPattern, get_rgba);
1324 #if (PHP_MAJOR_VERSION >= 5)
1325 ZEND_BEGIN_ARG_INFO_EX(CairoSolidPattern__get_rgba_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1326 ZEND_END_ARG_INFO()
1327 #else /* PHP 4.x */
1328 #define CairoSolidPattern__get_rgba_args NULL
1329 #endif
1331 PHP_METHOD(CairoSurfacePattern, __construct);
1332 #if (PHP_MAJOR_VERSION >= 5)
1333 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1334 ZEND_END_ARG_INFO()
1335 #else /* PHP 4.x */
1336 #define CairoSurfacePattern____construct_args NULL
1337 #endif
1339 PHP_METHOD(CairoSurfacePattern, get_extend);
1340 #if (PHP_MAJOR_VERSION >= 5)
1341 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern__get_extend_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1342 ZEND_END_ARG_INFO()
1343 #else /* PHP 4.x */
1344 #define CairoSurfacePattern__get_extend_args NULL
1345 #endif
1347 PHP_METHOD(CairoSurfacePattern, get_filter);
1348 #if (PHP_MAJOR_VERSION >= 5)
1349 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern__get_filter_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1350 ZEND_END_ARG_INFO()
1351 #else /* PHP 4.x */
1352 #define CairoSurfacePattern__get_filter_args NULL
1353 #endif
1355 PHP_METHOD(CairoSurfacePattern, get_surface);
1356 #if (PHP_MAJOR_VERSION >= 5)
1357 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern__get_surface_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1358 ZEND_END_ARG_INFO()
1359 #else /* PHP 4.x */
1360 #define CairoSurfacePattern__get_surface_args NULL
1361 #endif
1363 PHP_METHOD(CairoSurfacePattern, set_extend);
1364 #if (PHP_MAJOR_VERSION >= 5)
1365 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern__set_extend_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1366 ZEND_ARG_INFO(0, extend)
1367 ZEND_END_ARG_INFO()
1368 #else /* PHP 4.x */
1369 #define CairoSurfacePattern__set_extend_args NULL
1370 #endif
1372 PHP_METHOD(CairoSurfacePattern, set_filter);
1373 #if (PHP_MAJOR_VERSION >= 5)
1374 ZEND_BEGIN_ARG_INFO_EX(CairoSurfacePattern__set_filter_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1375 ZEND_ARG_INFO(0, filter)
1376 ZEND_END_ARG_INFO()
1377 #else /* PHP 4.x */
1378 #define CairoSurfacePattern__set_filter_args NULL
1379 #endif
1381 PHP_METHOD(CairoScaledFont, __construct);
1382 #if (PHP_MAJOR_VERSION >= 5)
1383 ZEND_BEGIN_ARG_INFO_EX(CairoScaledFont____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 3)
1384 ZEND_ARG_OBJ_INFO(0, mx1, CairoMatrix, 1)
1385 ZEND_ARG_OBJ_INFO(0, mx2, CairoMatrix, 1)
1386 ZEND_ARG_OBJ_INFO(0, fo, CairoFontOptions, 1)
1387 ZEND_END_ARG_INFO()
1388 #else /* PHP 4.x */
1389 #define CairoScaledFont____construct_args NULL
1390 #endif
1392 PHP_METHOD(CairoScaledFont, extents);
1393 #if (PHP_MAJOR_VERSION >= 5)
1394 ZEND_BEGIN_ARG_INFO_EX(CairoScaledFont__extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1395 ZEND_END_ARG_INFO()
1396 #else /* PHP 4.x */
1397 #define CairoScaledFont__extents_args NULL
1398 #endif
1400 PHP_METHOD(CairoScaledFont, get_font_face);
1401 #if (PHP_MAJOR_VERSION >= 5)
1402 ZEND_BEGIN_ARG_INFO_EX(CairoScaledFont__get_font_face_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1403 ZEND_END_ARG_INFO()
1404 #else /* PHP 4.x */
1405 #define CairoScaledFont__get_font_face_args NULL
1406 #endif
1408 PHP_METHOD(CairoScaledFont, text_extents);
1409 #if (PHP_MAJOR_VERSION >= 5)
1410 ZEND_BEGIN_ARG_INFO_EX(CairoScaledFont__text_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1411 ZEND_ARG_INFO(0, str)
1412 ZEND_END_ARG_INFO()
1413 #else /* PHP 4.x */
1414 #define CairoScaledFont__text_extents_args NULL
1415 #endif
1417 PHP_METHOD(CairoSurface, __construct);
1418 #if (PHP_MAJOR_VERSION >= 5)
1419 ZEND_BEGIN_ARG_INFO_EX(CairoSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1420 ZEND_END_ARG_INFO()
1421 #else /* PHP 4.x */
1422 #define CairoSurface____construct_args NULL
1423 #endif
1425 PHP_METHOD(CairoSurface, create_similar);
1426 #if (PHP_MAJOR_VERSION >= 5)
1427 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__create_similar_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 3)
1428 ZEND_ARG_INFO(0, content)
1429 ZEND_ARG_INFO(0, width)
1430 ZEND_ARG_INFO(0, height)
1431 ZEND_END_ARG_INFO()
1432 #else /* PHP 4.x */
1433 #define CairoSurface__create_similar_args NULL
1434 #endif
1436 PHP_METHOD(CairoSurface, finish);
1437 #if (PHP_MAJOR_VERSION >= 5)
1438 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__finish_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1439 ZEND_END_ARG_INFO()
1440 #else /* PHP 4.x */
1441 #define CairoSurface__finish_args NULL
1442 #endif
1444 PHP_METHOD(CairoSurface, flush);
1445 #if (PHP_MAJOR_VERSION >= 5)
1446 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__flush_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1447 ZEND_END_ARG_INFO()
1448 #else /* PHP 4.x */
1449 #define CairoSurface__flush_args NULL
1450 #endif
1452 PHP_METHOD(CairoSurface, get_content);
1453 #if (PHP_MAJOR_VERSION >= 5)
1454 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__get_content_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1455 ZEND_END_ARG_INFO()
1456 #else /* PHP 4.x */
1457 #define CairoSurface__get_content_args NULL
1458 #endif
1460 PHP_METHOD(CairoSurface, get_device_offset);
1461 #if (PHP_MAJOR_VERSION >= 5)
1462 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__get_device_offset_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1463 ZEND_END_ARG_INFO()
1464 #else /* PHP 4.x */
1465 #define CairoSurface__get_device_offset_args NULL
1466 #endif
1468 PHP_METHOD(CairoSurface, get_font_options);
1469 #if (PHP_MAJOR_VERSION >= 5)
1470 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__get_font_options_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1471 ZEND_END_ARG_INFO()
1472 #else /* PHP 4.x */
1473 #define CairoSurface__get_font_options_args NULL
1474 #endif
1476 PHP_METHOD(CairoSurface, mark_dirty_rectangle);
1477 #if (PHP_MAJOR_VERSION >= 5)
1478 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__mark_dirty_rectangle_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1479 ZEND_ARG_INFO(0, x)
1480 ZEND_ARG_INFO(0, y)
1481 ZEND_ARG_INFO(0, width)
1482 ZEND_ARG_INFO(0, height)
1483 ZEND_END_ARG_INFO()
1484 #else /* PHP 4.x */
1485 #define CairoSurface__mark_dirty_rectangle_args NULL
1486 #endif
1488 PHP_METHOD(CairoSurface, set_device_offset);
1489 #if (PHP_MAJOR_VERSION >= 5)
1490 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__set_device_offset_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1491 ZEND_ARG_INFO(0, x_offset)
1492 ZEND_ARG_INFO(0, y_offset)
1493 ZEND_END_ARG_INFO()
1494 #else /* PHP 4.x */
1495 #define CairoSurface__set_device_offset_args NULL
1496 #endif
1498 PHP_METHOD(CairoSurface, set_fallback_resolution);
1499 #if (PHP_MAJOR_VERSION >= 5)
1500 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__set_fallback_resolution_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1501 ZEND_ARG_INFO(0, x_ppi)
1502 ZEND_ARG_INFO(0, y_ppi)
1503 ZEND_END_ARG_INFO()
1504 #else /* PHP 4.x */
1505 #define CairoSurface__set_fallback_resolution_args NULL
1506 #endif
1508 PHP_METHOD(CairoSurface, write_to_png);
1509 #if (PHP_MAJOR_VERSION >= 5)
1510 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__write_to_png_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1511 ZEND_ARG_INFO(0, file)
1512 ZEND_END_ARG_INFO()
1513 #else /* PHP 4.x */
1514 #define CairoSurface__write_to_png_args NULL
1515 #endif
1517 PHP_METHOD(CairoSurface, write_to_png_stream);
1518 #if (PHP_MAJOR_VERSION >=5)
1519 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__write_to_png_stream_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1520 ZEND_ARG_INFO(0, zstream)
1521 ZEND_END_ARG_INFO()
1522 #else
1523 #define CairoSurface__write_to_png_stream_args NULL
1524 #endif
1526 PHP_METHOD(CairoImageSurface, __construct);
1527 #if (PHP_MAJOR_VERSION >= 5)
1528 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1529 ZEND_ARG_INFO(0, widthm)
1530 ZEND_ARG_INFO(0, height)
1531 ZEND_END_ARG_INFO()
1532 #else /* PHP 4.x */
1533 #define CairoImageSurface____construct_args NULL
1534 #endif
1536 PHP_METHOD(CairoImageSurface, create_from_data);
1537 #if (PHP_MAJOR_VERSION >= 5)
1538 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__create_from_data_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 4)
1539 ZEND_ARG_INFO(0, obj)
1540 ZEND_ARG_INFO(0, format)
1541 ZEND_ARG_INFO(0, width)
1542 ZEND_ARG_INFO(0, height)
1543 ZEND_ARG_INFO(0, stride)
1544 ZEND_END_ARG_INFO()
1545 #else /* PHP 4.x */
1546 #define CairoImageSurface__create_from_data_args NULL
1547 #endif
1549 PHP_METHOD(CairoImageSurface, create_from_png);
1550 #if (PHP_MAJOR_VERSION >= 5)
1551 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__create_from_png_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1552 ZEND_ARG_INFO(0, file)
1553 ZEND_END_ARG_INFO()
1554 #else /* PHP 4.x */
1555 #define CairoImageSurface__create_from_png_args NULL
1556 #endif
1559 PHP_METHOD(CairoImageSurface, create_from_png_stream);
1560 #if (PHP_MAJOR_VERSION >= 5)
1561 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__create_from_png_stream_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1562 ZEND_ARG_INFO(0, zstream)
1563 ZEND_END_ARG_INFO()
1564 #else /* PHP 4.x */
1565 #define CairoImageSurface__create_from_png_stream_args NULL
1566 #endif
1568 PHP_METHOD(CairoImageSurface, get_data);
1569 #if (PHP_MAJOR_VERSION >= 5)
1570 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_data_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1571 ZEND_END_ARG_INFO()
1572 #else /* PHP 4.x */
1573 #define CairoImageSurface__get_data_args NULL
1574 #endif
1576 PHP_METHOD(CairoImageSurface, get_format);
1577 #if (PHP_MAJOR_VERSION >= 5)
1578 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_format_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1579 ZEND_END_ARG_INFO()
1580 #else /* PHP 4.x */
1581 #define CairoImageSurface__get_format_args NULL
1582 #endif
1584 PHP_METHOD(CairoImageSurface, get_height);
1585 #if (PHP_MAJOR_VERSION >= 5)
1586 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_height_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1587 ZEND_END_ARG_INFO()
1588 #else /* PHP 4.x */
1589 #define CairoImageSurface__get_height_args NULL
1590 #endif
1592 PHP_METHOD(CairoImageSurface, get_stride);
1593 #if (PHP_MAJOR_VERSION >= 5)
1594 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_stride_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1595 ZEND_END_ARG_INFO()
1596 #else /* PHP 4.x */
1597 #define CairoImageSurface__get_stride_args NULL
1598 #endif
1600 PHP_METHOD(CairoImageSurface, get_width);
1601 #if (PHP_MAJOR_VERSION >= 5)
1602 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_width_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1603 ZEND_END_ARG_INFO()
1604 #else /* PHP 4.x */
1605 #define CairoImageSurface__get_width_args NULL
1606 #endif
1608 PHP_METHOD(CairoPDFSurface, __construct);
1609 #if (PHP_MAJOR_VERSION >= 5)
1610 ZEND_BEGIN_ARG_INFO_EX(CairoPDFSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1611 ZEND_ARG_INFO(0, wpts)
1612 ZEND_ARG_INFO(0, hpts)
1613 ZEND_END_ARG_INFO()
1614 #else /* PHP 4.x */
1615 #define CairoPDFSurface____construct_args NULL
1616 #endif
1618 PHP_METHOD(CairoPDFSurface, set_size);
1619 #if (PHP_MAJOR_VERSION >= 5)
1620 ZEND_BEGIN_ARG_INFO_EX(CairoPDFSurface__set_size_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1621 ZEND_ARG_INFO(0, wpts)
1622 ZEND_ARG_INFO(0, hpts)
1623 ZEND_END_ARG_INFO()
1624 #else /* PHP 4.x */
1625 #define CairoPDFSurface__set_size_args NULL
1626 #endif
1628 PHP_METHOD(CairoPSSurface, __construct);
1629 #if (PHP_MAJOR_VERSION >= 5)
1630 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1631 ZEND_ARG_INFO(0, wpts)
1632 ZEND_ARG_INFO(0, hpts)
1633 ZEND_END_ARG_INFO()
1634 #else /* PHP 4.x */
1635 #define CairoPSSurface____construct_args NULL
1636 #endif
1638 PHP_METHOD(CairoPSSurface, dsc_begin_page_setup);
1639 #if (PHP_MAJOR_VERSION >= 5)
1640 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__dsc_begin_page_setup_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1641 ZEND_END_ARG_INFO()
1642 #else /* PHP 4.x */
1643 #define CairoPSSurface__dsc_begin_page_setup_args NULL
1644 #endif
1646 PHP_METHOD(CairoPSSurface, dsc_begin_setup);
1647 #if (PHP_MAJOR_VERSION >= 5)
1648 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__dsc_begin_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_setup_args NULL
1652 #endif
1654 PHP_METHOD(CairoPSSurface, dsc_comment);
1655 #if (PHP_MAJOR_VERSION >= 5)
1656 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__dsc_comment_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1657 ZEND_END_ARG_INFO()
1658 #else /* PHP 4.x */
1659 #define CairoPSSurface__dsc_comment_args NULL
1660 #endif
1662 PHP_METHOD(CairoPSSurface, get_levels);
1663 #if (PHP_MAJOR_VERSION >= 5)
1664 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__get_levels_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1665 ZEND_END_ARG_INFO()
1666 #else /* PHP 4.x */
1667 #define CairoPSSurface__get_levels_args NULL
1668 #endif
1670 PHP_METHOD(CairoPSSurface, get_level_string);
1671 #if (PHP_MAJOR_VERSION >= 5)
1672 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__get_level_string_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1673 ZEND_END_ARG_INFO()
1674 #else /* PHP 4.x */
1675 #define CairoPSSurface__get_level_string_args NULL
1676 #endif
1678 PHP_METHOD(CairoPSSurface, restrict_to_level);
1679 #if (PHP_MAJOR_VERSION >= 5)
1680 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__restrict_to_level_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1681 ZEND_ARG_INFO(0, level)
1682 ZEND_END_ARG_INFO()
1683 #else /* PHP 4.x */
1684 #define CairoPSSurface__restrict_to_level_args NULL
1685 #endif
1687 PHP_METHOD(CairoPSSurface, set_eps);
1688 #if (PHP_MAJOR_VERSION >= 5)
1689 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__set_eps_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1690 ZEND_END_ARG_INFO()
1691 #else /* PHP 4.x */
1692 #define CairoPSSurface__set_eps_args NULL
1693 #endif
1695 PHP_METHOD(CairoPSSurface, set_size);
1696 #if (PHP_MAJOR_VERSION >= 5)
1697 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__set_size_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1698 ZEND_ARG_INFO(0, wpts)
1699 ZEND_ARG_INFO(0, hpts)
1700 ZEND_END_ARG_INFO()
1701 #else /* PHP 4.x */
1702 #define CairoPSSurface__set_size_args NULL
1703 #endif
1705 PHP_METHOD(CairoQuartzSurface, __construct);
1706 #if (PHP_MAJOR_VERSION >= 5)
1707 ZEND_BEGIN_ARG_INFO_EX(CairoQuartzSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
1708 ZEND_ARG_INFO(0, hpixels)
1709 ZEND_ARG_INFO(0, format)
1710 ZEND_END_ARG_INFO()
1711 #else /* PHP 4.x */
1712 #define CairoQuartzSurface____construct_args NULL
1713 #endif
1715 PHP_METHOD(CairoSVGSurface, __construct);
1716 #if (PHP_MAJOR_VERSION >= 5)
1717 ZEND_BEGIN_ARG_INFO_EX(CairoSVGSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
1718 ZEND_ARG_INFO(0, wpts)
1719 ZEND_ARG_INFO(0, hpts)
1720 ZEND_END_ARG_INFO()
1721 #else /* PHP 4.x */
1722 #define CairoSVGSurface____construct_args NULL
1723 #endif
1725 PHP_METHOD(CairoWin32Surface, __construct);
1726 #if (PHP_MAJOR_VERSION >= 5)
1727 ZEND_BEGIN_ARG_INFO_EX(CairoWin32Surface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1728 ZEND_END_ARG_INFO()
1729 #else /* PHP 4.x */
1730 #define CairoWin32Surface____construct_args NULL
1731 #endif
1733 PHP_METHOD(CairoXlibSurface, __construct);
1734 #if (PHP_MAJOR_VERSION >= 5)
1735 ZEND_BEGIN_ARG_INFO_EX(CairoXlibSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1736 ZEND_END_ARG_INFO()
1737 #else /* PHP 4.x */
1738 #define CairoXlibSurface____construct_args NULL
1739 #endif
1741 PHP_METHOD(CairoXlibSurface, get_depth);
1742 #if (PHP_MAJOR_VERSION >= 5)
1743 ZEND_BEGIN_ARG_INFO_EX(CairoXlibSurface__get_depth_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1744 ZEND_END_ARG_INFO()
1745 #else /* PHP 4.x */
1746 #define CairoXlibSurface__get_depth_args NULL
1747 #endif
1749 PHP_METHOD(CairoXlibSurface, get_height);
1750 #if (PHP_MAJOR_VERSION >= 5)
1751 ZEND_BEGIN_ARG_INFO_EX(CairoXlibSurface__get_height_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1752 ZEND_END_ARG_INFO()
1753 #else /* PHP 4.x */
1754 #define CairoXlibSurface__get_height_args NULL
1755 #endif
1757 PHP_METHOD(CairoXlibSurface, get_width);
1758 #if (PHP_MAJOR_VERSION >= 5)
1759 ZEND_BEGIN_ARG_INFO_EX(CairoXlibSurface__get_width_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
1760 ZEND_END_ARG_INFO()
1761 #else /* PHP 4.x */
1762 #define CairoXlibSurface__get_width_args NULL
1763 #endif
1765 #ifdef __cplusplus
1766 } // extern "C"
1767 #endif
1769 #endif /* PHP_HAVE_PHPCAIRO */
1771 #endif /* PHP_PHPCAIRO_H */
1773 /* {{{ Proto's */
1775 zend_class_entry* get_CairoSurface_ce_ptr(cairo_surface_t *);
1776 zend_class_entry* get_CairoPattern_ce_ptr(cairo_pattern_t *);
1778 /* }}} */
1782 * Local variables:
1783 * tab-width: 4
1784 * c-basic-offset: 4
1785 * End:
1786 * vim600: noet sw=4 ts=4 fdm=marker
1787 * vim<600: noet sw=4 ts=4