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 +----------------------------------------------------------------------+
17 #ifndef PHP_PHPCAIRO_H
18 #define PHP_PHPCAIRO_H
34 #include <ext/standard/info.h>
35 #include <Zend/zend_extensions.h>
43 extern zend_module_entry phpCairo_module_entry
;
44 #define phpext_phpCairo_ptr &phpCairo_module_entry
47 typedef struct _context_object
{
52 typedef struct _surface_object
{
54 cairo_surface_t
*surface
;
57 typedef struct _path_object
{
62 typedef struct _fontoptions_object
{
64 cairo_font_options_t
*fontoptions
;
67 typedef struct _fontface_object
{
69 cairo_font_face_t
*fontface
;
72 typedef struct _matrix_object
{
74 cairo_matrix_t matrix
;
77 typedef struct _pattern_object
{
79 cairo_pattern_t
*pattern
;
82 typedef struct _scaledfont_object
{
84 cairo_scaled_font_t
*scaledfont
;
88 #define PHP_PHPCAIRO_API __declspec(dllexport)
90 #define PHP_PHPCAIRO_API
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
);
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)
122 #define cairo_version_arg_info NULL
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)
130 #define cairo_version_string_arg_info NULL
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)
139 #define CairoContext____construct_args NULL
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)
148 #define CairoContext__append_path_args NULL
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)
156 ZEND_ARG_INFO(0, radius
)
157 ZEND_ARG_INFO(0, angle1
)
158 ZEND_ARG_INFO(0, angle2
)
161 #define CairoContext__arc_args NULL
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)
169 ZEND_ARG_INFO(0, radius
)
170 ZEND_ARG_INFO(0, angle1
)
171 ZEND_ARG_INFO(0, angle2
)
174 #define CairoContext__arc_negative_args NULL
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)
182 #define CairoContext__clip_args NULL
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)
190 #define CairoContext__clip_extents_args NULL
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)
198 #define CairoContext__clip_preserve_args NULL
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)
206 #define CairoContext__close_path_args NULL
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)
214 #define CairoContext__copy_clip_rectangle_list_args NULL
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)
222 #define CairoContext__copy_page_args NULL
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)
230 #define CairoContext__copy_path_args NULL
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)
238 #define CairoContext__copy_path_flat_args NULL
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)
252 #define CairoContext__curve_to_args NULL
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)
262 #define CairoContext__device_to_user_args NULL
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)
272 #define CairoContext__device_to_user_distance_args NULL
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)
280 #define CairoContext__fill_args NULL
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)
288 #define CairoContext__fill_extents_args NULL
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)
296 #define CairoContext__fill_preserve_args NULL
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)
304 #define CairoContext__font_extents_args NULL
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)
312 #define CairoContext__get_antialias_args NULL
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)
320 #define CairoContext__get_current_point_args NULL
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)
328 #define CairoContext__get_dash_args NULL
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)
336 #define CairoContext__get_dash_count_args NULL
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)
344 #define CairoContext__get_fill_rule_args NULL
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)
352 #define CairoContext__get_font_face_args NULL
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)
360 #define CairoContext__get_font_matrix_args NULL
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)
368 #define CairoContext__get_font_options_args NULL
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)
376 #define CairoContext__get_group_target_args NULL
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)
384 #define CairoContext__get_line_cap_args NULL
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)
392 #define CairoContext__get_line_join_args NULL
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)
400 #define CairoContext__get_line_width_args NULL
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)
408 #define CairoContext__get_matrix_args NULL
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)
416 #define CairoContext__get_miter_limit_args NULL
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)
424 #define CairoContext__get_operator_args NULL
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)
432 #define CairoContext__get_scaled_font_args NULL
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)
440 #define CairoContext__get_source_args NULL
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)
448 #define CairoContext__get_target_args NULL
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)
456 #define CairoContext__get_tolerance_args NULL
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)
465 ZEND_ARG_INFO(O
, obj
)
467 ZEND_ARG_INFO(0, num
)
470 #define CairoContext__glyph_extents_args NULL
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)
479 ZEND_ARG_INFO(0, obh
);
481 ZEND_ARG_INFO(0, num
)
484 #define CairoContext__glyph_path_args NULL
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)
492 #define CairoContext__has_current_point_args NULL
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)
500 #define CairoContext__identity_matrix_args NULL
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)
510 #define CairoContext__in_fill_args NULL
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)
520 #define CairoContext__in_stroke_args NULL
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)
530 #define CairoContext__line_to_args NULL
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)
539 #define CairoContext__mask_args NULL
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
)
550 #define CairoContext__mask_surface_args NULL
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)
560 #define CairoContext__move_to_args NULL
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)
568 #define CairoContext__new_path_args NULL
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)
576 #define CairoContext__new_sub_path_args NULL
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)
584 #define CairoContext__paint_args NULL
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
)
593 #define CairoContext__paint_with_alpha_args NULL
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)
602 #define CairoContext__path_extents_args NULL
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)
610 #define CairoContext__pop_group_args NULL
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)
618 #define CairoContext__pop_group_to_source_args NULL
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)
626 #define CairoContext__push_group_args NULL
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
)
635 #define CairoContext__push_group_with_content_args NULL
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)
643 ZEND_ARG_INFO(0, width
)
644 ZEND_ARG_INFO(0, height
)
647 #define CairoContext__rectangle_args NULL
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)
661 #define CairoContext__rel_curve_to_args NULL
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)
671 #define CairoContext__rel_line_to_args NULL
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)
681 #define CairoContext__rel_move_to_args NULL
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)
689 #define CairoContext__reset_clip_args NULL
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)
697 #define CairoContext__restore_args NULL
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
)
706 #define CairoContext__rotate_args NULL
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)
714 #define CairoContext__save_args NULL
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)
724 #define CairoContext__scale_args NULL
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
)
735 #define CairoContext__select_font_face_args NULL
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
)
744 #define CairoContext__set_antialias_args NULL
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)
753 ZEND_ARG_INFO(0, dashes
)
755 ZEND_ARG_INFO(0, num_dashes
)
756 ZEND_ARG_INFO(0, offset
)
759 #define CairoContext__set_dash_args NULL
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
)
768 #define CairoContext__set_fill_rule_args NULL
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)
777 #define CairoContext__set_font_face_args NULL
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)
786 #define CairoContext__set_font_matrix_args NULL
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)
795 #define CairoContext__set_font_options_args NULL
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
)
804 #define CairoContext__set_font_size_args NULL
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
)
813 #define CairoContext__set_line_cap_args NULL
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
)
822 #define CairoContext__set_line_join_args NULL
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
)
831 #define CairoContext__set_line_width_args NULL
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)
840 #define CairoContext__set_matrix_args NULL
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
)
849 #define CairoContext__set_miter_limit_args NULL
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)
858 #define CairoContext__set_operator_args NULL
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)
867 #define CairoContext__set_source_args NULL
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
)
878 #define CairoContext__set_source_rgb_args NULL
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
)
890 #define CairoContext__set_source_rgba_args NULL
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)
901 #define CairoContext__set_source_surface_args NULL
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
)
910 #define CairoContext__set_tolerance_args NULL
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)
919 ZEND_ARG_INFO(0, obj
)
921 ZEND_ARG_INFO(0, num_glyphs
)
924 #define CairoContext__show_glyphs_args NULL
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)
932 #define CairoContext__show_page_args NULL
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
)
941 #define CairoContext__show_text_args NULL
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)
949 #define CairoContext__stroke_args NULL
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)
957 #define CairoContext__stroke_extents_args NULL
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)
965 #define CairoContext__stroke_preserve_args NULL
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
)
974 #define CairoContext__text_extents_args NULL
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
)
983 #define CairoContext__text_path_args NULL
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)
992 #define CairoContext__transform_args NULL
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)
1002 #define CairoContext__translate_args NULL
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)
1012 #define CairoContext__user_to_device_args NULL
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
)
1022 #define CairoContext__user_to_device_distance_args NULL
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)
1030 #define CairoFontFace____construct_args NULL
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)
1038 #define CairoFontOptions____construct_args NULL
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)
1046 #define CairoFontOptions__get_antialias_args NULL
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)
1054 #define CairoFontOptions__get_hint_metrics_args NULL
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)
1062 #define CairoFontOptions__get_hint_style_args NULL
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)
1070 #define CairoFontOptions__get_subpixel_order_args NULL
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
)
1079 #define CairoFontOptions__set_antialias_args NULL
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
)
1088 #define CairoFontOptions__set_hint_metrics_args NULL
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
)
1097 #define CairoFontOptions__set_hint_style_args NULL
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
)
1106 #define CairoFontOptions__set_subpixel_order_args NULL
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
)
1119 #define CairoMatrix____construct_args NULL
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
)
1128 #define CairoMatrix__init_rotate_args NULL
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)
1136 #define CairoMatrix__invert_args NULL
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)
1145 #define CairoMatrix__multiply_args NULL
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
)
1154 #define CairoMatrix__rotate_args NULL
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
)
1164 #define CairoMatrix__scale_args NULL
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
)
1174 #define CairoMatrix__transform_distance_args NULL
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)
1184 #define CairoMatrix__transform_point_args NULL
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
)
1194 #define CairoMatrix__translate_args NULL
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)
1202 #define CairoPath____construct_args NULL
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)
1210 #define CairoPath__to_str_args NULL
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)
1218 #define CairoPattern____construct_args NULL
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)
1226 #define CairoPattern__get_matrix_args NULL
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)
1235 #define CairoPattern__set_matrix_args NULL
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)
1243 #define CairoGradient____contruct_args NULL
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
)
1255 #define CairoGradient__add_color_stop_rgb_args NULL
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
)
1268 #define CairoGradient__add_color_stop_rgba_args NULL
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
)
1279 #define CairoLinearGradient____construct_args NULL
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)
1287 #define CairoLinearGradient__get_linear_points_args NULL
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
)
1301 #define CairoRadialGradient____constuct_args NULL
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)
1309 #define CairoRadialGradient__get_radial_circles_args NULL
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)
1320 #define CairoSolidPattern____construct_args NULL
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)
1328 #define CairoSolidPattern__get_rgba_args NULL
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)
1336 #define CairoSurfacePattern____construct_args NULL
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)
1344 #define CairoSurfacePattern__get_extend_args NULL
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)
1352 #define CairoSurfacePattern__get_filter_args NULL
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)
1360 #define CairoSurfacePattern__get_surface_args NULL
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
)
1369 #define CairoSurfacePattern__set_extend_args NULL
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
)
1378 #define CairoSurfacePattern__set_filter_args NULL
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)
1389 #define CairoScaledFont____construct_args NULL
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)
1397 #define CairoScaledFont__extents_args NULL
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)
1405 #define CairoScaledFont__get_font_face_args NULL
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
)
1414 #define CairoScaledFont__text_extents_args NULL
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)
1422 #define CairoSurface____construct_args NULL
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
)
1433 #define CairoSurface__create_similar_args NULL
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)
1441 #define CairoSurface__finish_args NULL
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)
1449 #define CairoSurface__flush_args NULL
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)
1457 #define CairoSurface__get_content_args NULL
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)
1465 #define CairoSurface__get_device_offset_args NULL
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)
1473 #define CairoSurface__get_font_options_args NULL
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)
1481 ZEND_ARG_INFO(0, width
)
1482 ZEND_ARG_INFO(0, height
)
1485 #define CairoSurface__mark_dirty_rectangle_args NULL
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
)
1495 #define CairoSurface__set_device_offset_args NULL
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
)
1505 #define CairoSurface__set_fallback_resolution_args NULL
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
)
1514 #define CairoSurface__write_to_png_args NULL
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
)
1523 #define CairoSurface__write_to_png_stream_args NULL
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
)
1533 #define CairoImageSurface____construct_args NULL
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
)
1546 #define CairoImageSurface__create_from_data_args NULL
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
)
1555 #define CairoImageSurface__create_from_png_args NULL
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
)
1565 #define CairoImageSurface__create_from_png_stream_args NULL
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)
1573 #define CairoImageSurface__get_data_args NULL
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)
1581 #define CairoImageSurface__get_format_args NULL
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)
1589 #define CairoImageSurface__get_height_args NULL
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)
1597 #define CairoImageSurface__get_stride_args NULL
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)
1605 #define CairoImageSurface__get_width_args NULL
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
)
1615 #define CairoPDFSurface____construct_args NULL
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
)
1625 #define CairoPDFSurface__set_size_args NULL
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
)
1635 #define CairoPSSurface____construct_args NULL
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)
1643 #define CairoPSSurface__dsc_begin_page_setup_args NULL
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)
1651 #define CairoPSSurface__dsc_begin_setup_args NULL
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)
1659 #define CairoPSSurface__dsc_comment_args NULL
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)
1667 #define CairoPSSurface__get_levels_args NULL
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)
1675 #define CairoPSSurface__get_level_string_args NULL
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
)
1684 #define CairoPSSurface__restrict_to_level_args NULL
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)
1692 #define CairoPSSurface__set_eps_args NULL
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
)
1702 #define CairoPSSurface__set_size_args NULL
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
)
1712 #define CairoQuartzSurface____construct_args NULL
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
)
1722 #define CairoSVGSurface____construct_args NULL
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)
1730 #define CairoWin32Surface____construct_args NULL
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)
1738 #define CairoXlibSurface____construct_args NULL
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)
1746 #define CairoXlibSurface__get_depth_args NULL
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)
1754 #define CairoXlibSurface__get_height_args NULL
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)
1762 #define CairoXlibSurface__get_width_args NULL
1769 #endif /* PHP_HAVE_PHPCAIRO */
1771 #endif /* PHP_PHPCAIRO_H */
1775 zend_class_entry
* get_CairoSurface_ce_ptr(cairo_surface_t
*);
1776 zend_class_entry
* get_CairoPattern_ce_ptr(cairo_pattern_t
*);
1786 * vim600: noet sw=4 ts=4 fdm=marker
1787 * vim<600: noet sw=4 ts=4