Matrix class done
[phpCairo.git] / phpCairo / phpCairo.c
blob6dc316a258f11c36670582cf6e2c4fbdb3c6f9e7
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 #include "php_phpCairo.h"
19 #if HAVE_PHPCAIRO
21 /* {{{ Class definitions */
23 /* {{{ Class CairoContext */
25 static zend_class_entry * CairoContext_ce_ptr = NULL;
27 /* {{{ Methods */
30 /* {{{ proto void append_path(object p)
32 PHP_METHOD(CairoContext, append_path)
34 zend_class_entry * _this_ce;
36 zval * _this_zval = NULL;
37 zval * p = NULL;
41 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oo", &_this_zval, CairoContext_ce_ptr, &p) == FAILURE) {
42 return;
45 _this_ce = Z_OBJCE_P(_this_zval);
48 php_error(E_WARNING, "append_path: not yet implemented"); RETURN_FALSE;
51 /* }}} append_path */
55 /* {{{ proto void arc(float xc, float yc, float radius, float angle1, float angle2)
57 PHP_METHOD(CairoContext, arc)
59 zend_class_entry * _this_ce;
61 zval * _this_zval = NULL;
62 double xc = 0.0;
63 double yc = 0.0;
64 double radius = 0.0;
65 double angle1 = 0.0;
66 double angle2 = 0.0;
70 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oddddd", &_this_zval, CairoContext_ce_ptr, &xc, &yc, &radius, &angle1, &angle2) == FAILURE) {
71 return;
74 _this_ce = Z_OBJCE_P(_this_zval);
77 php_error(E_WARNING, "arc: not yet implemented"); RETURN_FALSE;
80 /* }}} arc */
84 /* {{{ proto void arc_negative(float xc, float yc, float radius, float angle1, float angle2)
86 PHP_METHOD(CairoContext, arc_negative)
88 zend_class_entry * _this_ce;
90 zval * _this_zval = NULL;
91 double xc = 0.0;
92 double yc = 0.0;
93 double radius = 0.0;
94 double angle1 = 0.0;
95 double angle2 = 0.0;
99 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oddddd", &_this_zval, CairoContext_ce_ptr, &xc, &yc, &radius, &angle1, &angle2) == FAILURE) {
100 return;
103 _this_ce = Z_OBJCE_P(_this_zval);
106 php_error(E_WARNING, "arc_negative: not yet implemented"); RETURN_FALSE;
109 /* }}} arc_negative */
113 /* {{{ proto void clip()
115 PHP_METHOD(CairoContext, clip)
117 zend_class_entry * _this_ce;
119 zval * _this_zval = NULL;
123 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
124 return;
127 _this_ce = Z_OBJCE_P(_this_zval);
130 php_error(E_WARNING, "clip: not yet implemented"); RETURN_FALSE;
133 /* }}} clip */
137 /* {{{ proto array clip_extents()
139 PHP_METHOD(CairoContext, clip_extents)
141 zend_class_entry * _this_ce;
143 zval * _this_zval = NULL;
147 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
148 return;
151 _this_ce = Z_OBJCE_P(_this_zval);
154 array_init(return_value);
156 php_error(E_WARNING, "clip_extents: not yet implemented"); RETURN_FALSE;
158 array_init(return_value);
160 /* }}} clip_extents */
164 /* {{{ proto void clip_preserve()
166 PHP_METHOD(CairoContext, clip_preserve)
168 zend_class_entry * _this_ce;
170 zval * _this_zval = NULL;
174 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
175 return;
178 _this_ce = Z_OBJCE_P(_this_zval);
181 php_error(E_WARNING, "clip_preserve: not yet implemented"); RETURN_FALSE;
184 /* }}} clip_preserve */
188 /* {{{ proto void close_path()
190 PHP_METHOD(CairoContext, close_path)
192 zend_class_entry * _this_ce;
194 zval * _this_zval = NULL;
198 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
199 return;
202 _this_ce = Z_OBJCE_P(_this_zval);
205 php_error(E_WARNING, "close_path: not yet implemented"); RETURN_FALSE;
208 /* }}} close_path */
212 /* {{{ proto object copy_clip_rectangle_list()
214 PHP_METHOD(CairoContext, copy_clip_rectangle_list)
216 zend_class_entry * _this_ce;
218 zval * _this_zval = NULL;
222 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
223 return;
226 _this_ce = Z_OBJCE_P(_this_zval);
229 do {
230 /*using iterator in php5.0 to store the
231 list. Pass the array to an iterator during the
232 object definition and jobs done */
233 } while (0);
235 /* }}} copy_clip_rectangle_list */
239 /* {{{ proto void copy_page()
241 PHP_METHOD(CairoContext, copy_page)
243 zend_class_entry * _this_ce;
245 zval * _this_zval = NULL;
249 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
250 return;
253 _this_ce = Z_OBJCE_P(_this_zval);
256 php_error(E_WARNING, "copy_page: not yet implemented"); RETURN_FALSE;
259 /* }}} copy_page */
263 /* {{{ proto object copy_path()
265 PHP_METHOD(CairoContext, copy_path)
267 zend_class_entry * _this_ce;
269 zval * _this_zval = NULL;
273 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
274 return;
277 _this_ce = Z_OBJCE_P(_this_zval);
280 php_error(E_WARNING, "copy_path: not yet implemented"); RETURN_FALSE;
282 object_init(return_value)
284 /* }}} copy_path */
288 /* {{{ proto object copy_path_flat()
290 PHP_METHOD(CairoContext, copy_path_flat)
292 zend_class_entry * _this_ce;
294 zval * _this_zval = NULL;
298 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
299 return;
302 _this_ce = Z_OBJCE_P(_this_zval);
305 php_error(E_WARNING, "copy_path_flat: not yet implemented"); RETURN_FALSE;
307 object_init(return_value)
309 /* }}} copy_path_flat */
313 /* {{{ proto void curve_to (float x1, float y1, float x2, float y2, float x3, float y3)
315 PHP_METHOD(CairoContext, curve_to)
317 zend_class_entry * _this_ce;
319 zval * _this_zval = NULL;
320 double x1 = 0.0;
321 double y1 = 0.0;
322 double x2 = 0.0;
323 double y2 = 0.0;
324 double x3 = 0.0;
325 double y3 = 0.0;
329 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odddddd", &_this_zval, CairoContext_ce_ptr, &x1, &y1, &x2, &y2, &x3, &y3) == FAILURE) {
330 return;
333 _this_ce = Z_OBJCE_P(_this_zval);
336 php_error(E_WARNING, "curve_to: not yet implemented"); RETURN_FALSE;
339 /* }}} curve_to */
343 /* {{{ proto array device_to_user(float x, float y)
345 PHP_METHOD(CairoContext, device_to_user)
347 zend_class_entry * _this_ce;
349 zval * _this_zval = NULL;
350 double x = 0.0;
351 double y = 0.0;
355 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odd", &_this_zval, CairoContext_ce_ptr, &x, &y) == FAILURE) {
356 return;
359 _this_ce = Z_OBJCE_P(_this_zval);
362 array_init(return_value);
364 php_error(E_WARNING, "device_to_user: not yet implemented"); RETURN_FALSE;
366 array_init(return_value);
368 /* }}} device_to_user */
372 /* {{{ proto array device_to_user_distance(float x, float y)
374 PHP_METHOD(CairoContext, device_to_user_distance)
376 zend_class_entry * _this_ce;
378 zval * _this_zval = NULL;
379 double x = 0.0;
380 double y = 0.0;
384 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odd", &_this_zval, CairoContext_ce_ptr, &x, &y) == FAILURE) {
385 return;
388 _this_ce = Z_OBJCE_P(_this_zval);
391 array_init(return_value);
393 php_error(E_WARNING, "device_to_user_distance: not yet implemented"); RETURN_FALSE;
395 array_init(return_value);
397 /* }}} device_to_user_distance */
401 /* {{{ proto void fill()
403 PHP_METHOD(CairoContext, fill)
405 zend_class_entry * _this_ce;
407 zval * _this_zval = NULL;
411 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
412 return;
415 _this_ce = Z_OBJCE_P(_this_zval);
418 php_error(E_WARNING, "fill: not yet implemented"); RETURN_FALSE;
421 /* }}} fill */
425 /* {{{ proto array fill_extents()
427 PHP_METHOD(CairoContext, fill_extents)
429 zend_class_entry * _this_ce;
431 zval * _this_zval = NULL;
435 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
436 return;
439 _this_ce = Z_OBJCE_P(_this_zval);
442 array_init(return_value);
444 php_error(E_WARNING, "fill_extents: not yet implemented"); RETURN_FALSE;
446 array_init(return_value);
448 /* }}} fill_extents */
452 /* {{{ proto void fill_preserve()
454 PHP_METHOD(CairoContext, fill_preserve)
456 zend_class_entry * _this_ce;
458 zval * _this_zval = NULL;
462 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
463 return;
466 _this_ce = Z_OBJCE_P(_this_zval);
469 php_error(E_WARNING, "fill_preserve: not yet implemented"); RETURN_FALSE;
472 /* }}} fill_preserve */
476 /* {{{ proto array font_extents()
478 PHP_METHOD(CairoContext, font_extents)
480 zend_class_entry * _this_ce;
482 zval * _this_zval = NULL;
486 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
487 return;
490 _this_ce = Z_OBJCE_P(_this_zval);
493 array_init(return_value);
495 php_error(E_WARNING, "font_extents: not yet implemented"); RETURN_FALSE;
497 array_init(return_value);
499 /* }}} font_extents */
503 /* {{{ proto int get_antialias()
505 PHP_METHOD(CairoContext, get_antialias)
507 zend_class_entry * _this_ce;
509 zval * _this_zval = NULL;
513 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
514 return;
517 _this_ce = Z_OBJCE_P(_this_zval);
520 php_error(E_WARNING, "get_antialias: not yet implemented"); RETURN_FALSE;
522 RETURN_LONG(0);
524 /* }}} get_antialias */
528 /* {{{ proto array get_current_point()
530 PHP_METHOD(CairoContext, get_current_point)
532 zend_class_entry * _this_ce;
534 zval * _this_zval = NULL;
538 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
539 return;
542 _this_ce = Z_OBJCE_P(_this_zval);
545 array_init(return_value);
547 php_error(E_WARNING, "get_current_point: not yet implemented"); RETURN_FALSE;
549 array_init(return_value);
551 /* }}} get_current_point */
555 /* {{{ proto array get_dash()
557 PHP_METHOD(CairoContext, get_dash)
559 zend_class_entry * _this_ce;
561 zval * _this_zval = NULL;
565 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
566 return;
569 _this_ce = Z_OBJCE_P(_this_zval);
572 array_init(return_value);
574 php_error(E_WARNING, "get_dash: not yet implemented"); RETURN_FALSE;
576 array_init(return_value);
578 /* }}} get_dash */
582 /* {{{ proto int get_dash_count()
584 PHP_METHOD(CairoContext, get_dash_count)
586 zend_class_entry * _this_ce;
588 zval * _this_zval = NULL;
592 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
593 return;
596 _this_ce = Z_OBJCE_P(_this_zval);
599 php_error(E_WARNING, "get_dash_count: not yet implemented"); RETURN_FALSE;
601 RETURN_LONG(0);
603 /* }}} get_dash_count */
607 /* {{{ proto int get_fill_rule()
609 PHP_METHOD(CairoContext, get_fill_rule)
611 zend_class_entry * _this_ce;
613 zval * _this_zval = NULL;
617 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
618 return;
621 _this_ce = Z_OBJCE_P(_this_zval);
624 php_error(E_WARNING, "get_fill_rule: not yet implemented"); RETURN_FALSE;
626 RETURN_LONG(0);
628 /* }}} get_fill_rule */
632 /* {{{ proto object get_font_face()
634 PHP_METHOD(CairoContext, get_font_face)
636 zend_class_entry * _this_ce;
638 zval * _this_zval = NULL;
642 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
643 return;
646 _this_ce = Z_OBJCE_P(_this_zval);
649 php_error(E_WARNING, "get_font_face: not yet implemented"); RETURN_FALSE;
651 object_init(return_value)
653 /* }}} get_font_face */
657 /* {{{ proto object get_font_matrix()
659 PHP_METHOD(CairoContext, get_font_matrix)
661 zend_class_entry * _this_ce;
663 zval * _this_zval = NULL;
667 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
668 return;
671 _this_ce = Z_OBJCE_P(_this_zval);
674 php_error(E_WARNING, "get_font_matrix: not yet implemented"); RETURN_FALSE;
676 object_init(return_value)
678 /* }}} get_font_matrix */
682 /* {{{ proto object get_font_options()
684 PHP_METHOD(CairoContext, get_font_options)
686 zend_class_entry * _this_ce;
688 zval * _this_zval = NULL;
692 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
693 return;
696 _this_ce = Z_OBJCE_P(_this_zval);
699 php_error(E_WARNING, "get_font_options: not yet implemented"); RETURN_FALSE;
701 object_init(return_value)
703 /* }}} get_font_options */
707 /* {{{ proto object get_group_target()
709 PHP_METHOD(CairoContext, get_group_target)
711 zend_class_entry * _this_ce;
713 zval * _this_zval = NULL;
717 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
718 return;
721 _this_ce = Z_OBJCE_P(_this_zval);
724 php_error(E_WARNING, "get_group_target: not yet implemented"); RETURN_FALSE;
726 object_init(return_value)
728 /* }}} get_group_target */
732 /* {{{ proto int get_line_cap()
734 PHP_METHOD(CairoContext, get_line_cap)
736 zend_class_entry * _this_ce;
738 zval * _this_zval = NULL;
742 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
743 return;
746 _this_ce = Z_OBJCE_P(_this_zval);
749 php_error(E_WARNING, "get_line_cap: not yet implemented"); RETURN_FALSE;
751 RETURN_LONG(0);
753 /* }}} get_line_cap */
757 /* {{{ proto int get_line_join()
759 PHP_METHOD(CairoContext, get_line_join)
761 zend_class_entry * _this_ce;
763 zval * _this_zval = NULL;
767 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
768 return;
771 _this_ce = Z_OBJCE_P(_this_zval);
774 php_error(E_WARNING, "get_line_join: not yet implemented"); RETURN_FALSE;
776 RETURN_LONG(0);
778 /* }}} get_line_join */
782 /* {{{ proto float get_line_width()
784 PHP_METHOD(CairoContext, get_line_width)
786 zend_class_entry * _this_ce;
788 zval * _this_zval = NULL;
792 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
793 return;
796 _this_ce = Z_OBJCE_P(_this_zval);
799 php_error(E_WARNING, "get_line_width: not yet implemented"); RETURN_FALSE;
801 RETURN_DOUBLE(0.0);
803 /* }}} get_line_width */
807 /* {{{ proto object get_matrix()
809 PHP_METHOD(CairoContext, get_matrix)
811 zend_class_entry * _this_ce;
813 zval * _this_zval = NULL;
817 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
818 return;
821 _this_ce = Z_OBJCE_P(_this_zval);
824 php_error(E_WARNING, "get_matrix: not yet implemented"); RETURN_FALSE;
826 object_init(return_value)
828 /* }}} get_matrix */
832 /* {{{ proto float get_matrix_limit()
834 PHP_METHOD(CairoContext, get_matrix_limit)
836 zend_class_entry * _this_ce;
838 zval * _this_zval = NULL;
842 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
843 return;
846 _this_ce = Z_OBJCE_P(_this_zval);
849 php_error(E_WARNING, "get_matrix_limit: not yet implemented"); RETURN_FALSE;
851 RETURN_DOUBLE(0.0);
853 /* }}} get_matrix_limit */
857 /* {{{ proto int get_operator()
859 PHP_METHOD(CairoContext, get_operator)
861 zend_class_entry * _this_ce;
863 zval * _this_zval = NULL;
867 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
868 return;
871 _this_ce = Z_OBJCE_P(_this_zval);
874 php_error(E_WARNING, "get_operator: not yet implemented"); RETURN_FALSE;
876 RETURN_LONG(0);
878 /* }}} get_operator */
882 /* {{{ proto object get_scaled_font()
884 PHP_METHOD(CairoContext, get_scaled_font)
886 zend_class_entry * _this_ce;
888 zval * _this_zval = NULL;
892 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
893 return;
896 _this_ce = Z_OBJCE_P(_this_zval);
899 php_error(E_WARNING, "get_scaled_font: not yet implemented"); RETURN_FALSE;
901 object_init(return_value)
903 /* }}} get_scaled_font */
907 /* {{{ proto object get_source()
909 PHP_METHOD(CairoContext, get_source)
911 zend_class_entry * _this_ce;
913 zval * _this_zval = NULL;
917 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
918 return;
921 _this_ce = Z_OBJCE_P(_this_zval);
924 php_error(E_WARNING, "get_source: not yet implemented"); RETURN_FALSE;
926 object_init(return_value)
928 /* }}} get_source */
932 /* {{{ proto object get_target()
934 PHP_METHOD(CairoContext, get_target)
936 zend_class_entry * _this_ce;
938 zval * _this_zval = NULL;
942 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
943 return;
946 _this_ce = Z_OBJCE_P(_this_zval);
949 php_error(E_WARNING, "get_target: not yet implemented"); RETURN_FALSE;
951 object_init(return_value)
953 /* }}} get_target */
957 /* {{{ proto float get_tolerance()
959 PHP_METHOD(CairoContext, get_tolerance)
961 zend_class_entry * _this_ce;
963 zval * _this_zval = NULL;
967 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
968 return;
971 _this_ce = Z_OBJCE_P(_this_zval);
974 php_error(E_WARNING, "get_tolerance: not yet implemented"); RETURN_FALSE;
976 RETURN_DOUBLE(0.0);
978 /* }}} get_tolerance */
982 /* {{{ proto array get_extents(object obj[,int num])
984 PHP_METHOD(CairoContext, glyph_extents)
986 zend_class_entry * _this_ce;
988 zval * _this_zval = NULL;
989 zval * obj = NULL;
990 long num = 0;
994 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oo|l", &_this_zval, CairoContext_ce_ptr, &obj, &num) == FAILURE) {
995 return;
998 _this_ce = Z_OBJCE_P(_this_zval);
1001 array_init(return_value);
1003 do {
1004 /*This might be a prob*/
1005 } while (0);
1007 /* }}} glyph_extents */
1011 /* {{{ proto void glyph_pat(object obh[,int num])
1013 PHP_METHOD(CairoContext, glyph_path)
1015 zend_class_entry * _this_ce;
1017 zval * _this_zval = NULL;
1018 zval * obh = NULL;
1019 long num = 0;
1023 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oo|l", &_this_zval, CairoContext_ce_ptr, &obh, &num) == FAILURE) {
1024 return;
1027 _this_ce = Z_OBJCE_P(_this_zval);
1030 php_error(E_WARNING, "glyph_path: not yet implemented"); RETURN_FALSE;
1033 /* }}} glyph_path */
1037 /* {{{ proto bool has_current_point()
1039 PHP_METHOD(CairoContext, has_current_point)
1041 zend_class_entry * _this_ce;
1043 zval * _this_zval = NULL;
1047 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
1048 return;
1051 _this_ce = Z_OBJCE_P(_this_zval);
1054 do {
1055 /* ONLY for CAIRO 1.6 */
1056 } while (0);
1058 /* }}} has_current_point */
1062 /* {{{ proto void identity_matrix()
1064 PHP_METHOD(CairoContext, identity_matrix)
1066 zend_class_entry * _this_ce;
1068 zval * _this_zval = NULL;
1072 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
1073 return;
1076 _this_ce = Z_OBJCE_P(_this_zval);
1079 php_error(E_WARNING, "identity_matrix: not yet implemented"); RETURN_FALSE;
1082 /* }}} identity_matrix */
1086 /* {{{ proto bool in_fill(float x, float y)
1088 PHP_METHOD(CairoContext, in_fill)
1090 zend_class_entry * _this_ce;
1092 zval * _this_zval = NULL;
1093 double x = 0.0;
1094 double y = 0.0;
1098 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odd", &_this_zval, CairoContext_ce_ptr, &x, &y) == FAILURE) {
1099 return;
1102 _this_ce = Z_OBJCE_P(_this_zval);
1105 php_error(E_WARNING, "in_fill: not yet implemented"); RETURN_FALSE;
1107 RETURN_FALSE;
1109 /* }}} in_fill */
1113 /* {{{ proto bool in_stroke(float x, float y)
1115 PHP_METHOD(CairoContext, in_stroke)
1117 zend_class_entry * _this_ce;
1119 zval * _this_zval = NULL;
1120 double x = 0.0;
1121 double y = 0.0;
1125 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odd", &_this_zval, CairoContext_ce_ptr, &x, &y) == FAILURE) {
1126 return;
1129 _this_ce = Z_OBJCE_P(_this_zval);
1132 php_error(E_WARNING, "in_stroke: not yet implemented"); RETURN_FALSE;
1134 RETURN_FALSE;
1136 /* }}} in_stroke */
1140 /* {{{ proto void line_to(float x, float y)
1142 PHP_METHOD(CairoContext, line_to)
1144 zend_class_entry * _this_ce;
1146 zval * _this_zval = NULL;
1147 double x = 0.0;
1148 double y = 0.0;
1152 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odd", &_this_zval, CairoContext_ce_ptr, &x, &y) == FAILURE) {
1153 return;
1156 _this_ce = Z_OBJCE_P(_this_zval);
1159 php_error(E_WARNING, "line_to: not yet implemented"); RETURN_FALSE;
1162 /* }}} line_to */
1166 /* {{{ proto void mask(object p)
1168 PHP_METHOD(CairoContext, mask)
1170 zend_class_entry * _this_ce;
1172 zval * _this_zval = NULL;
1173 zval * p = NULL;
1177 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oo", &_this_zval, CairoContext_ce_ptr, &p) == FAILURE) {
1178 return;
1181 _this_ce = Z_OBJCE_P(_this_zval);
1184 php_error(E_WARNING, "mask: not yet implemented"); RETURN_FALSE;
1187 /* }}} mask */
1191 /* {{{ proto void mask_surface(object s[,float surface_x, float surface_y])
1193 PHP_METHOD(CairoContext, mask_surface)
1195 zend_class_entry * _this_ce;
1197 zval * _this_zval = NULL;
1198 zval * s = NULL;
1199 double surface_x = 0.0;
1200 double surface_y = 0.0;
1204 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oo|dd", &_this_zval, CairoContext_ce_ptr, &s, &surface_x, &surface_y) == FAILURE) {
1205 return;
1208 _this_ce = Z_OBJCE_P(_this_zval);
1211 php_error(E_WARNING, "mask_surface: not yet implemented"); RETURN_FALSE;
1214 /* }}} mask_surface */
1218 /* {{{ proto void move_to(float x, float y)
1220 PHP_METHOD(CairoContext, move_to)
1222 zend_class_entry * _this_ce;
1224 zval * _this_zval = NULL;
1225 double x = 0.0;
1226 double y = 0.0;
1230 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odd", &_this_zval, CairoContext_ce_ptr, &x, &y) == FAILURE) {
1231 return;
1234 _this_ce = Z_OBJCE_P(_this_zval);
1237 php_error(E_WARNING, "move_to: not yet implemented"); RETURN_FALSE;
1240 /* }}} move_to */
1244 /* {{{ proto void new_path()
1246 PHP_METHOD(CairoContext, new_path)
1248 zend_class_entry * _this_ce;
1250 zval * _this_zval = NULL;
1254 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
1255 return;
1258 _this_ce = Z_OBJCE_P(_this_zval);
1261 php_error(E_WARNING, "new_path: not yet implemented"); RETURN_FALSE;
1264 /* }}} new_path */
1268 /* {{{ proto void new_sub_path()
1270 PHP_METHOD(CairoContext, new_sub_path)
1272 zend_class_entry * _this_ce;
1274 zval * _this_zval = NULL;
1278 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
1279 return;
1282 _this_ce = Z_OBJCE_P(_this_zval);
1285 php_error(E_WARNING, "new_sub_path: not yet implemented"); RETURN_FALSE;
1288 /* }}} new_sub_path */
1292 /* {{{ proto void paint()
1294 PHP_METHOD(CairoContext, paint)
1296 zend_class_entry * _this_ce;
1298 zval * _this_zval = NULL;
1302 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
1303 return;
1306 _this_ce = Z_OBJCE_P(_this_zval);
1309 php_error(E_WARNING, "paint: not yet implemented"); RETURN_FALSE;
1312 /* }}} paint */
1316 /* {{{ proto void paint_with_alpha(float alpha)
1318 PHP_METHOD(CairoContext, paint_with_alpha)
1320 zend_class_entry * _this_ce;
1322 zval * _this_zval = NULL;
1323 double alpha = 0.0;
1327 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Od", &_this_zval, CairoContext_ce_ptr, &alpha) == FAILURE) {
1328 return;
1331 _this_ce = Z_OBJCE_P(_this_zval);
1334 php_error(E_WARNING, "paint_with_alpha: not yet implemented"); RETURN_FALSE;
1337 /* }}} paint_with_alpha */
1341 /* {{{ proto array path_extents([object path])
1343 PHP_METHOD(CairoContext, path_extents)
1345 zend_class_entry * _this_ce;
1347 zval * _this_zval = NULL;
1348 zval * path = NULL;
1352 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O|o", &_this_zval, CairoContext_ce_ptr, &path) == FAILURE) {
1353 return;
1356 _this_ce = Z_OBJCE_P(_this_zval);
1359 array_init(return_value);
1361 do {
1362 /* ONLY for CAIRO 1.6 */
1363 } while (0);
1365 /* }}} path_extents */
1369 /* {{{ proto object pop_group()
1371 PHP_METHOD(CairoContext, pop_group)
1373 zend_class_entry * _this_ce;
1375 zval * _this_zval = NULL;
1379 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
1380 return;
1383 _this_ce = Z_OBJCE_P(_this_zval);
1386 php_error(E_WARNING, "pop_group: not yet implemented"); RETURN_FALSE;
1388 object_init(return_value)
1390 /* }}} pop_group */
1394 /* {{{ proto void pop_group_to_source()
1396 PHP_METHOD(CairoContext, pop_group_to_source)
1398 zend_class_entry * _this_ce;
1400 zval * _this_zval = NULL;
1404 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
1405 return;
1408 _this_ce = Z_OBJCE_P(_this_zval);
1411 php_error(E_WARNING, "pop_group_to_source: not yet implemented"); RETURN_FALSE;
1414 /* }}} pop_group_to_source */
1418 /* {{{ proto void push_group()
1420 PHP_METHOD(CairoContext, push_group)
1422 zend_class_entry * _this_ce;
1424 zval * _this_zval = NULL;
1428 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
1429 return;
1432 _this_ce = Z_OBJCE_P(_this_zval);
1435 php_error(E_WARNING, "push_group: not yet implemented"); RETURN_FALSE;
1438 /* }}} push_group */
1442 /* {{{ proto void push_group_with_content(int content)
1444 PHP_METHOD(CairoContext, push_group_with_content)
1446 zend_class_entry * _this_ce;
1448 zval * _this_zval = NULL;
1449 long content = 0;
1453 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Ol", &_this_zval, CairoContext_ce_ptr, &content) == FAILURE) {
1454 return;
1457 _this_ce = Z_OBJCE_P(_this_zval);
1460 php_error(E_WARNING, "push_group_with_content: not yet implemented"); RETURN_FALSE;
1463 /* }}} push_group_with_content */
1467 /* {{{ proto void rectangle(float x, float y, float width, float height)
1469 PHP_METHOD(CairoContext, rectangle)
1471 zend_class_entry * _this_ce;
1473 zval * _this_zval = NULL;
1474 double x = 0.0;
1475 double y = 0.0;
1476 double width = 0.0;
1477 double height = 0.0;
1481 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odddd", &_this_zval, CairoContext_ce_ptr, &x, &y, &width, &height) == FAILURE) {
1482 return;
1485 _this_ce = Z_OBJCE_P(_this_zval);
1488 php_error(E_WARNING, "rectangle: not yet implemented"); RETURN_FALSE;
1491 /* }}} rectangle */
1495 /* {{{ proto void rel_curve_to(float x1, float y1, float x2, float y2, float x3, float y3)
1497 PHP_METHOD(CairoContext, rel_curve_to)
1499 zend_class_entry * _this_ce;
1501 zval * _this_zval = NULL;
1502 double x1 = 0.0;
1503 double y1 = 0.0;
1504 double x2 = 0.0;
1505 double y2 = 0.0;
1506 double x3 = 0.0;
1507 double y3 = 0.0;
1511 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odddddd", &_this_zval, CairoContext_ce_ptr, &x1, &y1, &x2, &y2, &x3, &y3) == FAILURE) {
1512 return;
1515 _this_ce = Z_OBJCE_P(_this_zval);
1518 php_error(E_WARNING, "rel_curve_to: not yet implemented"); RETURN_FALSE;
1521 /* }}} rel_curve_to */
1525 /* {{{ proto void rel_line_to(float x, float y)
1527 PHP_METHOD(CairoContext, rel_line_to)
1529 zend_class_entry * _this_ce;
1531 zval * _this_zval = NULL;
1532 double x = 0.0;
1533 double y = 0.0;
1537 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odd", &_this_zval, CairoContext_ce_ptr, &x, &y) == FAILURE) {
1538 return;
1541 _this_ce = Z_OBJCE_P(_this_zval);
1544 php_error(E_WARNING, "rel_line_to: not yet implemented"); RETURN_FALSE;
1547 /* }}} rel_line_to */
1551 /* {{{ proto void rel_move_to(float x, float y)
1553 PHP_METHOD(CairoContext, rel_move_to)
1555 zend_class_entry * _this_ce;
1557 zval * _this_zval = NULL;
1558 double x = 0.0;
1559 double y = 0.0;
1563 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odd", &_this_zval, CairoContext_ce_ptr, &x, &y) == FAILURE) {
1564 return;
1567 _this_ce = Z_OBJCE_P(_this_zval);
1570 php_error(E_WARNING, "rel_move_to: not yet implemented"); RETURN_FALSE;
1573 /* }}} rel_move_to */
1577 /* {{{ proto void reset_clip()
1579 PHP_METHOD(CairoContext, reset_clip)
1581 zend_class_entry * _this_ce;
1583 zval * _this_zval = NULL;
1587 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
1588 return;
1591 _this_ce = Z_OBJCE_P(_this_zval);
1594 php_error(E_WARNING, "reset_clip: not yet implemented"); RETURN_FALSE;
1597 /* }}} reset_clip */
1601 /* {{{ proto void restore()
1603 PHP_METHOD(CairoContext, restore)
1605 zend_class_entry * _this_ce;
1607 zval * _this_zval = NULL;
1611 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
1612 return;
1615 _this_ce = Z_OBJCE_P(_this_zval);
1618 php_error(E_WARNING, "restore: not yet implemented"); RETURN_FALSE;
1621 /* }}} restore */
1625 /* {{{ proto void rotate(float angle)
1627 PHP_METHOD(CairoContext, rotate)
1629 zend_class_entry * _this_ce;
1631 zval * _this_zval = NULL;
1632 double angle = 0.0;
1636 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Od", &_this_zval, CairoContext_ce_ptr, &angle) == FAILURE) {
1637 return;
1640 _this_ce = Z_OBJCE_P(_this_zval);
1643 php_error(E_WARNING, "rotate: not yet implemented"); RETURN_FALSE;
1646 /* }}} rotate */
1650 /* {{{ proto void save()
1652 PHP_METHOD(CairoContext, save)
1654 zend_class_entry * _this_ce;
1656 zval * _this_zval = NULL;
1660 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
1661 return;
1664 _this_ce = Z_OBJCE_P(_this_zval);
1667 php_error(E_WARNING, "save: not yet implemented"); RETURN_FALSE;
1670 /* }}} save */
1674 /* {{{ proto void scale(float x, float y)
1676 PHP_METHOD(CairoContext, scale)
1678 zend_class_entry * _this_ce;
1680 zval * _this_zval = NULL;
1681 double x = 0.0;
1682 double y = 0.0;
1686 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odd", &_this_zval, CairoContext_ce_ptr, &x, &y) == FAILURE) {
1687 return;
1690 _this_ce = Z_OBJCE_P(_this_zval);
1693 php_error(E_WARNING, "scale: not yet implemented"); RETURN_FALSE;
1696 /* }}} scale */
1700 /* {{{ proto void select_font_face(object obj[, int slant, int weight])
1702 PHP_METHOD(CairoContext, select_font_face)
1704 zend_class_entry * _this_ce;
1706 zval * _this_zval = NULL;
1707 zval * obj = NULL;
1708 long slant = 0;
1709 long weight = 0;
1713 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oo|ll", &_this_zval, CairoContext_ce_ptr, &obj, &slant, &weight) == FAILURE) {
1714 return;
1717 _this_ce = Z_OBJCE_P(_this_zval);
1720 php_error(E_WARNING, "select_font_face: not yet implemented"); RETURN_FALSE;
1723 /* }}} select_font_face */
1727 /* {{{ proto void set_antialias([int antialias])
1729 PHP_METHOD(CairoContext, set_antialias)
1731 zend_class_entry * _this_ce;
1733 zval * _this_zval = NULL;
1734 long antialias = 0;
1738 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O|l", &_this_zval, CairoContext_ce_ptr, &antialias) == FAILURE) {
1739 return;
1742 _this_ce = Z_OBJCE_P(_this_zval);
1745 php_error(E_WARNING, "set_antialias: not yet implemented"); RETURN_FALSE;
1748 /* }}} set_antialias */
1752 /* {{{ proto void set_dash(object dashes [,float offset])
1754 PHP_METHOD(CairoContext, set_dash)
1756 zend_class_entry * _this_ce;
1758 zval * _this_zval = NULL;
1759 zval * dashes = NULL;
1760 double offset = 0.0;
1764 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oo|d", &_this_zval, CairoContext_ce_ptr, &dashes, &offset) == FAILURE) {
1765 return;
1768 _this_ce = Z_OBJCE_P(_this_zval);
1771 php_error(E_WARNING, "set_dash: not yet implemented"); RETURN_FALSE;
1774 /* }}} set_dash */
1778 /* {{{ proto void set_fill_rule(int fill_rule)
1780 PHP_METHOD(CairoContext, set_fill_rule)
1782 zend_class_entry * _this_ce;
1784 zval * _this_zval = NULL;
1785 long fill_rule = 0;
1789 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Ol", &_this_zval, CairoContext_ce_ptr, &fill_rule) == FAILURE) {
1790 return;
1793 _this_ce = Z_OBJCE_P(_this_zval);
1796 php_error(E_WARNING, "set_fill_rule: not yet implemented"); RETURN_FALSE;
1799 /* }}} set_fill_rule */
1803 /* {{{ proto void set_font_face([object obj])
1805 PHP_METHOD(CairoContext, set_font_face)
1807 zend_class_entry * _this_ce;
1809 zval * _this_zval = NULL;
1810 zval * obj = NULL;
1814 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O|o", &_this_zval, CairoContext_ce_ptr, &obj) == FAILURE) {
1815 return;
1818 _this_ce = Z_OBJCE_P(_this_zval);
1821 php_error(E_WARNING, "set_font_face: not yet implemented"); RETURN_FALSE;
1824 /* }}} set_font_face */
1828 /* {{{ proto void set_font_matrix(object matrix)
1830 PHP_METHOD(CairoContext, set_font_matrix)
1832 zend_class_entry * _this_ce;
1834 zval * _this_zval = NULL;
1835 zval * matrix = NULL;
1839 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oo", &_this_zval, CairoContext_ce_ptr, &matrix) == FAILURE) {
1840 return;
1843 _this_ce = Z_OBJCE_P(_this_zval);
1846 php_error(E_WARNING, "set_font_matrix: not yet implemented"); RETURN_FALSE;
1849 /* }}} set_font_matrix */
1853 /* {{{ proto void set_font_options(object options)
1855 PHP_METHOD(CairoContext, set_font_options)
1857 zend_class_entry * _this_ce;
1859 zval * _this_zval = NULL;
1860 zval * options = NULL;
1864 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oo", &_this_zval, CairoContext_ce_ptr, &options) == FAILURE) {
1865 return;
1868 _this_ce = Z_OBJCE_P(_this_zval);
1871 php_error(E_WARNING, "set_font_options: not yet implemented"); RETURN_FALSE;
1874 /* }}} set_font_options */
1878 /* {{{ proto void set_font_size(float size)
1880 PHP_METHOD(CairoContext, set_font_size)
1882 zend_class_entry * _this_ce;
1884 zval * _this_zval = NULL;
1885 double size = 0.0;
1889 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Od", &_this_zval, CairoContext_ce_ptr, &size) == FAILURE) {
1890 return;
1893 _this_ce = Z_OBJCE_P(_this_zval);
1896 php_error(E_WARNING, "set_font_size: not yet implemented"); RETURN_FALSE;
1899 /* }}} set_font_size */
1903 /* {{{ proto void set_line_cap(int line_cap)
1905 PHP_METHOD(CairoContext, set_line_cap)
1907 zend_class_entry * _this_ce;
1909 zval * _this_zval = NULL;
1910 long line_cap = 0;
1914 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Ol", &_this_zval, CairoContext_ce_ptr, &line_cap) == FAILURE) {
1915 return;
1918 _this_ce = Z_OBJCE_P(_this_zval);
1921 php_error(E_WARNING, "set_line_cap: not yet implemented"); RETURN_FALSE;
1924 /* }}} set_line_cap */
1928 /* {{{ proto void set_line_join(int line_join)
1930 PHP_METHOD(CairoContext, set_line_join)
1932 zend_class_entry * _this_ce;
1934 zval * _this_zval = NULL;
1935 long line_join = 0;
1939 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Ol", &_this_zval, CairoContext_ce_ptr, &line_join) == FAILURE) {
1940 return;
1943 _this_ce = Z_OBJCE_P(_this_zval);
1946 php_error(E_WARNING, "set_line_join: not yet implemented"); RETURN_FALSE;
1949 /* }}} set_line_join */
1953 /* {{{ proto void set_line_width(float width)
1955 PHP_METHOD(CairoContext, set_line_width)
1957 zend_class_entry * _this_ce;
1959 zval * _this_zval = NULL;
1960 double width = 0.0;
1964 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Od", &_this_zval, CairoContext_ce_ptr, &width) == FAILURE) {
1965 return;
1968 _this_ce = Z_OBJCE_P(_this_zval);
1971 php_error(E_WARNING, "set_line_width: not yet implemented"); RETURN_FALSE;
1974 /* }}} set_line_width */
1978 /* {{{ proto void set_matrix(object matix)
1980 PHP_METHOD(CairoContext, set_matrix)
1982 zend_class_entry * _this_ce;
1984 zval * _this_zval = NULL;
1985 zval * matix = NULL;
1989 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oo", &_this_zval, CairoContext_ce_ptr, &matix) == FAILURE) {
1990 return;
1993 _this_ce = Z_OBJCE_P(_this_zval);
1996 php_error(E_WARNING, "set_matrix: not yet implemented"); RETURN_FALSE;
1999 /* }}} set_matrix */
2003 /* {{{ proto void set_miter_limit(float limit)
2005 PHP_METHOD(CairoContext, set_miter_limit)
2007 zend_class_entry * _this_ce;
2009 zval * _this_zval = NULL;
2010 double limit = 0.0;
2014 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Od", &_this_zval, CairoContext_ce_ptr, &limit) == FAILURE) {
2015 return;
2018 _this_ce = Z_OBJCE_P(_this_zval);
2021 php_error(E_WARNING, "set_miter_limit: not yet implemented"); RETURN_FALSE;
2024 /* }}} set_miter_limit */
2028 /* {{{ proto void set_operator(int op)
2030 PHP_METHOD(CairoContext, set_operator)
2032 zend_class_entry * _this_ce;
2034 zval * _this_zval = NULL;
2035 long op = 0;
2039 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Ol", &_this_zval, CairoContext_ce_ptr, &op) == FAILURE) {
2040 return;
2043 _this_ce = Z_OBJCE_P(_this_zval);
2046 php_error(E_WARNING, "set_operator: not yet implemented"); RETURN_FALSE;
2049 /* }}} set_operator */
2053 /* {{{ proto void set_source(object p)
2055 PHP_METHOD(CairoContext, set_source)
2057 zend_class_entry * _this_ce;
2059 zval * _this_zval = NULL;
2060 zval * p = NULL;
2064 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oo", &_this_zval, CairoContext_ce_ptr, &p) == FAILURE) {
2065 return;
2068 _this_ce = Z_OBJCE_P(_this_zval);
2071 php_error(E_WARNING, "set_source: not yet implemented"); RETURN_FALSE;
2074 /* }}} set_source */
2078 /* {{{ proto void set_source_rgb(float red, float green, float blue)
2080 PHP_METHOD(CairoContext, set_source_rgb)
2082 zend_class_entry * _this_ce;
2084 zval * _this_zval = NULL;
2085 double red = 0.0;
2086 double green = 0.0;
2087 double blue = 0.0;
2091 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oddd", &_this_zval, CairoContext_ce_ptr, &red, &green, &blue) == FAILURE) {
2092 return;
2095 _this_ce = Z_OBJCE_P(_this_zval);
2098 php_error(E_WARNING, "set_source_rgb: not yet implemented"); RETURN_FALSE;
2101 /* }}} set_source_rgb */
2105 /* {{{ proto void set_source_rgba(float red, float green, float blue [,float alpha])
2107 PHP_METHOD(CairoContext, set_source_rgba)
2109 zend_class_entry * _this_ce;
2111 zval * _this_zval = NULL;
2112 double red = 0.0;
2113 double green = 0.0;
2114 double blue = 0.0;
2115 double alpha = 0.0;
2119 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oddd|d", &_this_zval, CairoContext_ce_ptr, &red, &green, &blue, &alpha) == FAILURE) {
2120 return;
2123 _this_ce = Z_OBJCE_P(_this_zval);
2126 php_error(E_WARNING, "set_source_rgba: not yet implemented"); RETURN_FALSE;
2129 /* }}} set_source_rgba */
2133 /* {{{ proto void set_source_surface(object surface [,float x, float y])
2135 PHP_METHOD(CairoContext, set_source_surface)
2137 zend_class_entry * _this_ce;
2139 zval * _this_zval = NULL;
2140 zval * surface = NULL;
2141 double x = 0.0;
2142 double y = 0.0;
2146 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oo|dd", &_this_zval, CairoContext_ce_ptr, &surface, &x, &y) == FAILURE) {
2147 return;
2150 _this_ce = Z_OBJCE_P(_this_zval);
2153 php_error(E_WARNING, "set_source_surface: not yet implemented"); RETURN_FALSE;
2156 /* }}} set_source_surface */
2160 /* {{{ proto void set_tolerance(float tolerance)
2162 PHP_METHOD(CairoContext, set_tolerance)
2164 zend_class_entry * _this_ce;
2166 zval * _this_zval = NULL;
2167 double tolerance = 0.0;
2171 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Od", &_this_zval, CairoContext_ce_ptr, &tolerance) == FAILURE) {
2172 return;
2175 _this_ce = Z_OBJCE_P(_this_zval);
2178 php_error(E_WARNING, "set_tolerance: not yet implemented"); RETURN_FALSE;
2181 /* }}} set_tolerance */
2185 /* {{{ proto void show_glyphs(object glyphs [,int num_glyphs])
2187 PHP_METHOD(CairoContext, show_glyphs)
2189 zend_class_entry * _this_ce;
2191 zval * _this_zval = NULL;
2192 zval * glyphs = NULL;
2193 long num_glyphs = 0;
2197 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oo|l", &_this_zval, CairoContext_ce_ptr, &glyphs, &num_glyphs) == FAILURE) {
2198 return;
2201 _this_ce = Z_OBJCE_P(_this_zval);
2204 php_error(E_WARNING, "show_glyphs: not yet implemented"); RETURN_FALSE;
2207 /* }}} show_glyphs */
2211 /* {{{ proto void show_page()
2213 PHP_METHOD(CairoContext, show_page)
2215 zend_class_entry * _this_ce;
2217 zval * _this_zval = NULL;
2221 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
2222 return;
2225 _this_ce = Z_OBJCE_P(_this_zval);
2228 php_error(E_WARNING, "show_page: not yet implemented"); RETURN_FALSE;
2231 /* }}} show_page */
2235 /* {{{ proto void show_text(object obj)
2237 PHP_METHOD(CairoContext, show_text)
2239 zend_class_entry * _this_ce;
2241 zval * _this_zval = NULL;
2242 zval * obj = NULL;
2246 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oo", &_this_zval, CairoContext_ce_ptr, &obj) == FAILURE) {
2247 return;
2250 _this_ce = Z_OBJCE_P(_this_zval);
2253 php_error(E_WARNING, "show_text: not yet implemented"); RETURN_FALSE;
2256 /* }}} show_text */
2260 /* {{{ proto void stroke()
2262 PHP_METHOD(CairoContext, stroke)
2264 zend_class_entry * _this_ce;
2266 zval * _this_zval = NULL;
2270 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
2271 return;
2274 _this_ce = Z_OBJCE_P(_this_zval);
2277 php_error(E_WARNING, "stroke: not yet implemented"); RETURN_FALSE;
2280 /* }}} stroke */
2284 /* {{{ proto array stroke_extents()
2286 PHP_METHOD(CairoContext, stroke_extents)
2288 zend_class_entry * _this_ce;
2290 zval * _this_zval = NULL;
2294 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
2295 return;
2298 _this_ce = Z_OBJCE_P(_this_zval);
2301 array_init(return_value);
2303 php_error(E_WARNING, "stroke_extents: not yet implemented"); RETURN_FALSE;
2305 array_init(return_value);
2307 /* }}} stroke_extents */
2311 /* {{{ proto void stroke_preserve()
2313 PHP_METHOD(CairoContext, stroke_preserve)
2315 zend_class_entry * _this_ce;
2317 zval * _this_zval = NULL;
2321 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoContext_ce_ptr) == FAILURE) {
2322 return;
2325 _this_ce = Z_OBJCE_P(_this_zval);
2328 php_error(E_WARNING, "stroke_preserve: not yet implemented"); RETURN_FALSE;
2331 /* }}} stroke_preserve */
2335 /* {{{ proto array text_extents(object extents)
2337 PHP_METHOD(CairoContext, text_extents)
2339 zend_class_entry * _this_ce;
2341 zval * _this_zval = NULL;
2342 zval * extents = NULL;
2346 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oo", &_this_zval, CairoContext_ce_ptr, &extents) == FAILURE) {
2347 return;
2350 _this_ce = Z_OBJCE_P(_this_zval);
2353 array_init(return_value);
2355 php_error(E_WARNING, "text_extents: not yet implemented"); RETURN_FALSE;
2357 array_init(return_value);
2359 /* }}} text_extents */
2363 /* {{{ proto void text_path(object obj)
2365 PHP_METHOD(CairoContext, text_path)
2367 zend_class_entry * _this_ce;
2369 zval * _this_zval = NULL;
2370 zval * obj = NULL;
2374 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oo", &_this_zval, CairoContext_ce_ptr, &obj) == FAILURE) {
2375 return;
2378 _this_ce = Z_OBJCE_P(_this_zval);
2381 php_error(E_WARNING, "text_path: not yet implemented"); RETURN_FALSE;
2384 /* }}} text_path */
2388 /* {{{ proto void transform(object matrix)
2390 PHP_METHOD(CairoContext, transform)
2392 zend_class_entry * _this_ce;
2394 zval * _this_zval = NULL;
2395 zval * matrix = NULL;
2399 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oo", &_this_zval, CairoContext_ce_ptr, &matrix) == FAILURE) {
2400 return;
2403 _this_ce = Z_OBJCE_P(_this_zval);
2406 php_error(E_WARNING, "transform: not yet implemented"); RETURN_FALSE;
2409 /* }}} transform */
2413 /* {{{ proto void translate(float tx, float ty)
2415 PHP_METHOD(CairoContext, translate)
2417 zend_class_entry * _this_ce;
2419 zval * _this_zval = NULL;
2420 double tx = 0.0;
2421 double ty = 0.0;
2425 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odd", &_this_zval, CairoContext_ce_ptr, &tx, &ty) == FAILURE) {
2426 return;
2429 _this_ce = Z_OBJCE_P(_this_zval);
2432 php_error(E_WARNING, "translate: not yet implemented"); RETURN_FALSE;
2435 /* }}} translate */
2439 /* {{{ proto array user_to_device(float x, float y)
2441 PHP_METHOD(CairoContext, user_to_device)
2443 zend_class_entry * _this_ce;
2445 zval * _this_zval = NULL;
2446 double x = 0.0;
2447 double y = 0.0;
2451 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odd", &_this_zval, CairoContext_ce_ptr, &x, &y) == FAILURE) {
2452 return;
2455 _this_ce = Z_OBJCE_P(_this_zval);
2458 array_init(return_value);
2460 php_error(E_WARNING, "user_to_device: not yet implemented"); RETURN_FALSE;
2462 array_init(return_value);
2464 /* }}} user_to_device */
2468 /* {{{ proto array user_to_device_distance(float dx, float dy)
2470 PHP_METHOD(CairoContext, user_to_device_distance)
2472 zend_class_entry * _this_ce;
2474 zval * _this_zval = NULL;
2475 double dx = 0.0;
2476 double dy = 0.0;
2480 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odd", &_this_zval, CairoContext_ce_ptr, &dx, &dy) == FAILURE) {
2481 return;
2484 _this_ce = Z_OBJCE_P(_this_zval);
2487 array_init(return_value);
2489 php_error(E_WARNING, "user_to_device_distance: not yet implemented"); RETURN_FALSE;
2491 array_init(return_value);
2493 /* }}} user_to_device_distance */
2496 static zend_function_entry CairoContext_methods[] = {
2497 PHP_ME(CairoContext, append_path, CairoContext__append_path_args, /**/ZEND_ACC_PUBLIC)
2498 PHP_ME(CairoContext, arc, CairoContext__arc_args, /**/ZEND_ACC_PUBLIC)
2499 PHP_ME(CairoContext, arc_negative, CairoContext__arc_negative_args, /**/ZEND_ACC_PUBLIC)
2500 PHP_ME(CairoContext, clip, NULL, /**/ZEND_ACC_PUBLIC)
2501 PHP_ME(CairoContext, clip_extents, NULL, /**/ZEND_ACC_PUBLIC)
2502 PHP_ME(CairoContext, clip_preserve, NULL, /**/ZEND_ACC_PUBLIC)
2503 PHP_ME(CairoContext, close_path, NULL, /**/ZEND_ACC_PUBLIC)
2504 PHP_ME(CairoContext, copy_clip_rectangle_list, NULL, /**/ZEND_ACC_PUBLIC)
2505 PHP_ME(CairoContext, copy_page, NULL, /**/ZEND_ACC_PUBLIC)
2506 PHP_ME(CairoContext, copy_path, NULL, /**/ZEND_ACC_PUBLIC)
2507 PHP_ME(CairoContext, copy_path_flat, NULL, /**/ZEND_ACC_PUBLIC)
2508 PHP_ME(CairoContext, curve_to, CairoContext__curve_to_args, /**/ZEND_ACC_PUBLIC)
2509 PHP_ME(CairoContext, device_to_user, CairoContext__device_to_user_args, /**/ZEND_ACC_PUBLIC)
2510 PHP_ME(CairoContext, device_to_user_distance, CairoContext__device_to_user_distance_args, /**/ZEND_ACC_PUBLIC)
2511 PHP_ME(CairoContext, fill, NULL, /**/ZEND_ACC_PUBLIC)
2512 PHP_ME(CairoContext, fill_extents, NULL, /**/ZEND_ACC_PUBLIC)
2513 PHP_ME(CairoContext, fill_preserve, NULL, /**/ZEND_ACC_PUBLIC)
2514 PHP_ME(CairoContext, font_extents, NULL, /**/ZEND_ACC_PUBLIC)
2515 PHP_ME(CairoContext, get_antialias, NULL, /**/ZEND_ACC_PUBLIC)
2516 PHP_ME(CairoContext, get_current_point, NULL, /**/ZEND_ACC_PUBLIC)
2517 PHP_ME(CairoContext, get_dash, NULL, /**/ZEND_ACC_PUBLIC)
2518 PHP_ME(CairoContext, get_dash_count, NULL, /**/ZEND_ACC_PUBLIC)
2519 PHP_ME(CairoContext, get_fill_rule, NULL, /**/ZEND_ACC_PUBLIC)
2520 PHP_ME(CairoContext, get_font_face, NULL, /**/ZEND_ACC_PUBLIC)
2521 PHP_ME(CairoContext, get_font_matrix, NULL, /**/ZEND_ACC_PUBLIC)
2522 PHP_ME(CairoContext, get_font_options, NULL, /**/ZEND_ACC_PUBLIC)
2523 PHP_ME(CairoContext, get_group_target, NULL, /**/ZEND_ACC_PUBLIC)
2524 PHP_ME(CairoContext, get_line_cap, NULL, /**/ZEND_ACC_PUBLIC)
2525 PHP_ME(CairoContext, get_line_join, NULL, /**/ZEND_ACC_PUBLIC)
2526 PHP_ME(CairoContext, get_line_width, NULL, /**/ZEND_ACC_PUBLIC)
2527 PHP_ME(CairoContext, get_matrix, NULL, /**/ZEND_ACC_PUBLIC)
2528 PHP_ME(CairoContext, get_matrix_limit, NULL, /**/ZEND_ACC_PUBLIC)
2529 PHP_ME(CairoContext, get_operator, NULL, /**/ZEND_ACC_PUBLIC)
2530 PHP_ME(CairoContext, get_scaled_font, NULL, /**/ZEND_ACC_PUBLIC)
2531 PHP_ME(CairoContext, get_source, NULL, /**/ZEND_ACC_PUBLIC)
2532 PHP_ME(CairoContext, get_target, NULL, /**/ZEND_ACC_PUBLIC)
2533 PHP_ME(CairoContext, get_tolerance, NULL, /**/ZEND_ACC_PUBLIC)
2534 PHP_ME(CairoContext, glyph_extents, CairoContext__glyph_extents_args, /**/ZEND_ACC_PUBLIC)
2535 PHP_ME(CairoContext, glyph_path, CairoContext__glyph_path_args, /**/ZEND_ACC_PUBLIC)
2536 PHP_ME(CairoContext, has_current_point, NULL, /**/ZEND_ACC_PUBLIC)
2537 PHP_ME(CairoContext, identity_matrix, NULL, /**/ZEND_ACC_PUBLIC)
2538 PHP_ME(CairoContext, in_fill, CairoContext__in_fill_args, /**/ZEND_ACC_PUBLIC)
2539 PHP_ME(CairoContext, in_stroke, CairoContext__in_stroke_args, /**/ZEND_ACC_PUBLIC)
2540 PHP_ME(CairoContext, line_to, CairoContext__line_to_args, /**/ZEND_ACC_PUBLIC)
2541 PHP_ME(CairoContext, mask, CairoContext__mask_args, /**/ZEND_ACC_PUBLIC)
2542 PHP_ME(CairoContext, mask_surface, CairoContext__mask_surface_args, /**/ZEND_ACC_PUBLIC)
2543 PHP_ME(CairoContext, move_to, CairoContext__move_to_args, /**/ZEND_ACC_PUBLIC)
2544 PHP_ME(CairoContext, new_path, NULL, /**/ZEND_ACC_PUBLIC)
2545 PHP_ME(CairoContext, new_sub_path, NULL, /**/ZEND_ACC_PUBLIC)
2546 PHP_ME(CairoContext, paint, NULL, /**/ZEND_ACC_PUBLIC)
2547 PHP_ME(CairoContext, paint_with_alpha, CairoContext__paint_with_alpha_args, /**/ZEND_ACC_PUBLIC)
2548 PHP_ME(CairoContext, path_extents, CairoContext__path_extents_args, /**/ZEND_ACC_PUBLIC)
2549 PHP_ME(CairoContext, pop_group, NULL, /**/ZEND_ACC_PUBLIC)
2550 PHP_ME(CairoContext, pop_group_to_source, NULL, /**/ZEND_ACC_PUBLIC)
2551 PHP_ME(CairoContext, push_group, NULL, /**/ZEND_ACC_PUBLIC)
2552 PHP_ME(CairoContext, push_group_with_content, CairoContext__push_group_with_content_args, /**/ZEND_ACC_PUBLIC)
2553 PHP_ME(CairoContext, rectangle, CairoContext__rectangle_args, /**/ZEND_ACC_PUBLIC)
2554 PHP_ME(CairoContext, rel_curve_to, CairoContext__rel_curve_to_args, /**/ZEND_ACC_PUBLIC)
2555 PHP_ME(CairoContext, rel_line_to, CairoContext__rel_line_to_args, /**/ZEND_ACC_PUBLIC)
2556 PHP_ME(CairoContext, rel_move_to, CairoContext__rel_move_to_args, /**/ZEND_ACC_PUBLIC)
2557 PHP_ME(CairoContext, reset_clip, NULL, /**/ZEND_ACC_PUBLIC)
2558 PHP_ME(CairoContext, restore, NULL, /**/ZEND_ACC_PUBLIC)
2559 PHP_ME(CairoContext, rotate, CairoContext__rotate_args, /**/ZEND_ACC_PUBLIC)
2560 PHP_ME(CairoContext, save, NULL, /**/ZEND_ACC_PUBLIC)
2561 PHP_ME(CairoContext, scale, CairoContext__scale_args, /**/ZEND_ACC_PUBLIC)
2562 PHP_ME(CairoContext, select_font_face, CairoContext__select_font_face_args, /**/ZEND_ACC_PUBLIC)
2563 PHP_ME(CairoContext, set_antialias, CairoContext__set_antialias_args, /**/ZEND_ACC_PUBLIC)
2564 PHP_ME(CairoContext, set_dash, CairoContext__set_dash_args, /**/ZEND_ACC_PUBLIC)
2565 PHP_ME(CairoContext, set_fill_rule, CairoContext__set_fill_rule_args, /**/ZEND_ACC_PUBLIC)
2566 PHP_ME(CairoContext, set_font_face, CairoContext__set_font_face_args, /**/ZEND_ACC_PUBLIC)
2567 PHP_ME(CairoContext, set_font_matrix, CairoContext__set_font_matrix_args, /**/ZEND_ACC_PUBLIC)
2568 PHP_ME(CairoContext, set_font_options, CairoContext__set_font_options_args, /**/ZEND_ACC_PUBLIC)
2569 PHP_ME(CairoContext, set_font_size, CairoContext__set_font_size_args, /**/ZEND_ACC_PUBLIC)
2570 PHP_ME(CairoContext, set_line_cap, CairoContext__set_line_cap_args, /**/ZEND_ACC_PUBLIC)
2571 PHP_ME(CairoContext, set_line_join, CairoContext__set_line_join_args, /**/ZEND_ACC_PUBLIC)
2572 PHP_ME(CairoContext, set_line_width, CairoContext__set_line_width_args, /**/ZEND_ACC_PUBLIC)
2573 PHP_ME(CairoContext, set_matrix, CairoContext__set_matrix_args, /**/ZEND_ACC_PUBLIC)
2574 PHP_ME(CairoContext, set_miter_limit, CairoContext__set_miter_limit_args, /**/ZEND_ACC_PUBLIC)
2575 PHP_ME(CairoContext, set_operator, CairoContext__set_operator_args, /**/ZEND_ACC_PUBLIC)
2576 PHP_ME(CairoContext, set_source, CairoContext__set_source_args, /**/ZEND_ACC_PUBLIC)
2577 PHP_ME(CairoContext, set_source_rgb, CairoContext__set_source_rgb_args, /**/ZEND_ACC_PUBLIC)
2578 PHP_ME(CairoContext, set_source_rgba, CairoContext__set_source_rgba_args, /**/ZEND_ACC_PUBLIC)
2579 PHP_ME(CairoContext, set_source_surface, CairoContext__set_source_surface_args, /**/ZEND_ACC_PUBLIC)
2580 PHP_ME(CairoContext, set_tolerance, CairoContext__set_tolerance_args, /**/ZEND_ACC_PUBLIC)
2581 PHP_ME(CairoContext, show_glyphs, CairoContext__show_glyphs_args, /**/ZEND_ACC_PUBLIC)
2582 PHP_ME(CairoContext, show_page, NULL, /**/ZEND_ACC_PUBLIC)
2583 PHP_ME(CairoContext, show_text, CairoContext__show_text_args, /**/ZEND_ACC_PUBLIC)
2584 PHP_ME(CairoContext, stroke, NULL, /**/ZEND_ACC_PUBLIC)
2585 PHP_ME(CairoContext, stroke_extents, NULL, /**/ZEND_ACC_PUBLIC)
2586 PHP_ME(CairoContext, stroke_preserve, NULL, /**/ZEND_ACC_PUBLIC)
2587 PHP_ME(CairoContext, text_extents, CairoContext__text_extents_args, /**/ZEND_ACC_PUBLIC)
2588 PHP_ME(CairoContext, text_path, CairoContext__text_path_args, /**/ZEND_ACC_PUBLIC)
2589 PHP_ME(CairoContext, transform, CairoContext__transform_args, /**/ZEND_ACC_PUBLIC)
2590 PHP_ME(CairoContext, translate, CairoContext__translate_args, /**/ZEND_ACC_PUBLIC)
2591 PHP_ME(CairoContext, user_to_device, CairoContext__user_to_device_args, /**/ZEND_ACC_PUBLIC)
2592 PHP_ME(CairoContext, user_to_device_distance, CairoContext__user_to_device_distance_args, /**/ZEND_ACC_PUBLIC)
2593 { NULL, NULL, NULL }
2596 /* }}} Methods */
2598 static void class_init_CairoContext(void)
2600 zend_class_entry ce;
2602 INIT_CLASS_ENTRY(ce, "CairoContext", CairoContext_methods);
2603 CairoContext_ce_ptr = zend_register_internal_class(&ce);
2606 /* }}} Class CairoContext */
2608 /* {{{ Class CairoFontFace */
2610 static zend_class_entry * CairoFontFace_ce_ptr = NULL;
2612 /* {{{ Methods */
2615 /* {{{ proto void construct()
2617 PHP_METHOD(CairoFontFace, __construct)
2619 zend_class_entry * _this_ce;
2620 zval * _this_zval;
2624 if (ZEND_NUM_ARGS()>0) {
2625 WRONG_PARAM_COUNT;
2629 do {
2630 /* not allowede to create an object directly*/
2631 } while (0);
2633 /* }}} __construct */
2637 /* {{{ proto void destruct()
2639 PHP_METHOD(CairoFontFace, __destruct)
2641 zend_class_entry * _this_ce;
2643 zval * _this_zval = NULL;
2647 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoFontFace_ce_ptr) == FAILURE) {
2648 return;
2651 _this_ce = Z_OBJCE_P(_this_zval);
2654 php_error(E_WARNING, "__destruct: not yet implemented"); RETURN_FALSE;
2657 /* }}} __destruct */
2660 static zend_function_entry CairoFontFace_methods[] = {
2661 PHP_ME(CairoFontFace, __construct, NULL, /**/ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
2662 PHP_ME(CairoFontFace, __destruct, NULL, /**/ZEND_ACC_PUBLIC)
2663 { NULL, NULL, NULL }
2666 /* }}} Methods */
2668 static void class_init_CairoFontFace(void)
2670 zend_class_entry ce;
2672 INIT_CLASS_ENTRY(ce, "CairoFontFace", CairoFontFace_methods);
2673 CairoFontFace_ce_ptr = zend_register_internal_class(&ce);
2676 /* }}} Class CairoFontFace */
2678 /* {{{ Class CairoFontOptions */
2680 static zend_class_entry * CairoFontOptions_ce_ptr = NULL;
2682 /* {{{ Methods */
2685 /* {{{ proto void construct()
2687 PHP_METHOD(CairoFontOptions, __construct)
2689 zend_class_entry * _this_ce;
2690 zval * _this_zval;
2694 if (ZEND_NUM_ARGS()>0) {
2695 WRONG_PARAM_COUNT;
2699 php_error(E_WARNING, "__construct: not yet implemented"); RETURN_FALSE;
2702 /* }}} __construct */
2706 /* {{{ proto int get_antialias()
2708 PHP_METHOD(CairoFontOptions, get_antialias)
2710 zend_class_entry * _this_ce;
2712 zval * _this_zval = NULL;
2716 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoFontOptions_ce_ptr) == FAILURE) {
2717 return;
2720 _this_ce = Z_OBJCE_P(_this_zval);
2723 php_error(E_WARNING, "get_antialias: not yet implemented"); RETURN_FALSE;
2725 RETURN_LONG(0);
2727 /* }}} get_antialias */
2731 /* {{{ proto int get_hint_metrics()
2733 PHP_METHOD(CairoFontOptions, get_hint_metrics)
2735 zend_class_entry * _this_ce;
2737 zval * _this_zval = NULL;
2741 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoFontOptions_ce_ptr) == FAILURE) {
2742 return;
2745 _this_ce = Z_OBJCE_P(_this_zval);
2748 php_error(E_WARNING, "get_hint_metrics: not yet implemented"); RETURN_FALSE;
2750 RETURN_LONG(0);
2752 /* }}} get_hint_metrics */
2756 /* {{{ proto int get_hint_style()
2758 PHP_METHOD(CairoFontOptions, get_hint_style)
2760 zend_class_entry * _this_ce;
2762 zval * _this_zval = NULL;
2766 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoFontOptions_ce_ptr) == FAILURE) {
2767 return;
2770 _this_ce = Z_OBJCE_P(_this_zval);
2773 php_error(E_WARNING, "get_hint_style: not yet implemented"); RETURN_FALSE;
2775 RETURN_LONG(0);
2777 /* }}} get_hint_style */
2781 /* {{{ proto int get_subpixel_order()
2783 PHP_METHOD(CairoFontOptions, get_subpixel_order)
2785 zend_class_entry * _this_ce;
2787 zval * _this_zval = NULL;
2791 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoFontOptions_ce_ptr) == FAILURE) {
2792 return;
2795 _this_ce = Z_OBJCE_P(_this_zval);
2798 php_error(E_WARNING, "get_subpixel_order: not yet implemented"); RETURN_FALSE;
2800 RETURN_LONG(0);
2802 /* }}} get_subpixel_order */
2806 /* {{{ proto void set_antialias([int aa])
2808 PHP_METHOD(CairoFontOptions, set_antialias)
2810 zend_class_entry * _this_ce;
2812 zval * _this_zval = NULL;
2813 long aa = 0;
2817 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O|l", &_this_zval, CairoFontOptions_ce_ptr, &aa) == FAILURE) {
2818 return;
2821 _this_ce = Z_OBJCE_P(_this_zval);
2824 php_error(E_WARNING, "set_antialias: not yet implemented"); RETURN_FALSE;
2827 /* }}} set_antialias */
2831 /* {{{ proto void set_hint_metrics([int hm])
2833 PHP_METHOD(CairoFontOptions, set_hint_metrics)
2835 zend_class_entry * _this_ce;
2837 zval * _this_zval = NULL;
2838 long hm = 0;
2842 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O|l", &_this_zval, CairoFontOptions_ce_ptr, &hm) == FAILURE) {
2843 return;
2846 _this_ce = Z_OBJCE_P(_this_zval);
2849 php_error(E_WARNING, "set_hint_metrics: not yet implemented"); RETURN_FALSE;
2852 /* }}} set_hint_metrics */
2856 /* {{{ proto void set_hint_style([int hs])
2858 PHP_METHOD(CairoFontOptions, set_hint_style)
2860 zend_class_entry * _this_ce;
2862 zval * _this_zval = NULL;
2863 long hs = 0;
2867 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O|l", &_this_zval, CairoFontOptions_ce_ptr, &hs) == FAILURE) {
2868 return;
2871 _this_ce = Z_OBJCE_P(_this_zval);
2874 php_error(E_WARNING, "set_hint_style: not yet implemented"); RETURN_FALSE;
2877 /* }}} set_hint_style */
2881 /* {{{ proto void set_subpixel_order([int so])
2883 PHP_METHOD(CairoFontOptions, set_subpixel_order)
2885 zend_class_entry * _this_ce;
2887 zval * _this_zval = NULL;
2888 long so = 0;
2892 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O|l", &_this_zval, CairoFontOptions_ce_ptr, &so) == FAILURE) {
2893 return;
2896 _this_ce = Z_OBJCE_P(_this_zval);
2899 php_error(E_WARNING, "set_subpixel_order: not yet implemented"); RETURN_FALSE;
2902 /* }}} set_subpixel_order */
2905 static zend_function_entry CairoFontOptions_methods[] = {
2906 PHP_ME(CairoFontOptions, __construct, NULL, /**/ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
2907 PHP_ME(CairoFontOptions, get_antialias, NULL, /**/ZEND_ACC_PUBLIC)
2908 PHP_ME(CairoFontOptions, get_hint_metrics, NULL, /**/ZEND_ACC_PUBLIC)
2909 PHP_ME(CairoFontOptions, get_hint_style, NULL, /**/ZEND_ACC_PUBLIC)
2910 PHP_ME(CairoFontOptions, get_subpixel_order, NULL, /**/ZEND_ACC_PUBLIC)
2911 PHP_ME(CairoFontOptions, set_antialias, CairoFontOptions__set_antialias_args, /**/ZEND_ACC_PUBLIC)
2912 PHP_ME(CairoFontOptions, set_hint_metrics, CairoFontOptions__set_hint_metrics_args, /**/ZEND_ACC_PUBLIC)
2913 PHP_ME(CairoFontOptions, set_hint_style, CairoFontOptions__set_hint_style_args, /**/ZEND_ACC_PUBLIC)
2914 PHP_ME(CairoFontOptions, set_subpixel_order, CairoFontOptions__set_subpixel_order_args, /**/ZEND_ACC_PUBLIC)
2915 { NULL, NULL, NULL }
2918 /* }}} Methods */
2920 static void class_init_CairoFontOptions(void)
2922 zend_class_entry ce;
2924 INIT_CLASS_ENTRY(ce, "CairoFontOptions", CairoFontOptions_methods);
2925 CairoFontOptions_ce_ptr = zend_register_internal_class(&ce);
2928 /* }}} Class CairoFontOptions */
2930 /* {{{ Class CairoMatrix */
2932 static zend_class_entry * CairoMatrix_ce_ptr = NULL;
2934 /* {{{ Methods */
2937 /* {{{ proto void construct([float xx, float yx, float xy, float yy, float x0, float y0])
2939 PHP_METHOD(CairoMatrix, __construct)
2941 zend_class_entry * _this_ce;
2942 zval * _this_zval;
2944 double xx = 0.0;
2945 double yx = 0.0;
2946 double xy = 0.0;
2947 double yy = 0.0;
2948 double x0 = 0.0;
2949 double y0 = 0.0;
2953 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|dddddd", &xx, &yx, &xy, &yy, &x0, &y0) == FAILURE) {
2954 return;
2957 _this_zval = getThis();
2958 _this_ce = Z_OBJCE_P(_this_zval);
2961 php_error(E_WARNING, "__construct: not yet implemented"); RETURN_FALSE;
2964 /* }}} __construct */
2968 /* {{{ proto object inti_rotate(float radians)
2970 PHP_METHOD(CairoMatrix, init_rotate)
2972 zend_class_entry * _this_ce;
2974 zval * _this_zval = NULL;
2975 double radians = 0.0;
2979 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Od", &_this_zval, CairoMatrix_ce_ptr, &radians) == FAILURE) {
2980 return;
2983 _this_ce = Z_OBJCE_P(_this_zval);
2986 php_error(E_WARNING, "init_rotate: not yet implemented"); RETURN_FALSE;
2988 object_init(return_value)
2990 /* }}} init_rotate */
2994 /* {{{ proto void invert()
2996 PHP_METHOD(CairoMatrix, invert)
2998 zend_class_entry * _this_ce;
3000 zval * _this_zval = NULL;
3004 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoMatrix_ce_ptr) == FAILURE) {
3005 return;
3008 _this_ce = Z_OBJCE_P(_this_zval);
3011 php_error(E_WARNING, "invert: not yet implemented"); RETURN_FALSE;
3014 /* }}} invert */
3018 /* {{{ proto object multiply(object o2)
3020 PHP_METHOD(CairoMatrix, multiply)
3022 zend_class_entry * _this_ce;
3024 zval * _this_zval = NULL;
3025 zval * o2 = NULL;
3029 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oo", &_this_zval, CairoMatrix_ce_ptr, &o2) == FAILURE) {
3030 return;
3033 _this_ce = Z_OBJCE_P(_this_zval);
3036 php_error(E_WARNING, "multiply: not yet implemented"); RETURN_FALSE;
3038 object_init(return_value)
3040 /* }}} multiply */
3044 /* {{{ proto void rotate(float radians)
3046 PHP_METHOD(CairoMatrix, rotate)
3048 zend_class_entry * _this_ce;
3050 zval * _this_zval = NULL;
3051 double radians = 0.0;
3055 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Od", &_this_zval, CairoMatrix_ce_ptr, &radians) == FAILURE) {
3056 return;
3059 _this_ce = Z_OBJCE_P(_this_zval);
3062 php_error(E_WARNING, "rotate: not yet implemented"); RETURN_FALSE;
3065 /* }}} rotate */
3069 /* {{{ proto void scale(float sx, float xy)
3071 PHP_METHOD(CairoMatrix, scale)
3073 zend_class_entry * _this_ce;
3075 zval * _this_zval = NULL;
3076 double sx = 0.0;
3077 double xy = 0.0;
3081 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odd", &_this_zval, CairoMatrix_ce_ptr, &sx, &xy) == FAILURE) {
3082 return;
3085 _this_ce = Z_OBJCE_P(_this_zval);
3088 php_error(E_WARNING, "scale: not yet implemented"); RETURN_FALSE;
3091 /* }}} scale */
3095 /* {{{ proto array transform_distance(float dx, float dy)
3097 PHP_METHOD(CairoMatrix, transform_distance)
3099 zend_class_entry * _this_ce;
3101 zval * _this_zval = NULL;
3102 double dx = 0.0;
3103 double dy = 0.0;
3107 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odd", &_this_zval, CairoMatrix_ce_ptr, &dx, &dy) == FAILURE) {
3108 return;
3111 _this_ce = Z_OBJCE_P(_this_zval);
3114 array_init(return_value);
3116 php_error(E_WARNING, "transform_distance: not yet implemented"); RETURN_FALSE;
3118 array_init(return_value);
3120 /* }}} transform_distance */
3124 /* {{{ proto array transform_point(float x, float y)
3126 PHP_METHOD(CairoMatrix, transform_point)
3128 zend_class_entry * _this_ce;
3130 zval * _this_zval = NULL;
3131 double x = 0.0;
3132 double y = 0.0;
3136 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odd", &_this_zval, CairoMatrix_ce_ptr, &x, &y) == FAILURE) {
3137 return;
3140 _this_ce = Z_OBJCE_P(_this_zval);
3143 array_init(return_value);
3145 php_error(E_WARNING, "transform_point: not yet implemented"); RETURN_FALSE;
3147 array_init(return_value);
3149 /* }}} transform_point */
3153 /* {{{ proto void translate(float tx, float ty)
3155 PHP_METHOD(CairoMatrix, translate)
3157 zend_class_entry * _this_ce;
3159 zval * _this_zval = NULL;
3160 double tx = 0.0;
3161 double ty = 0.0;
3165 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odd", &_this_zval, CairoMatrix_ce_ptr, &tx, &ty) == FAILURE) {
3166 return;
3169 _this_ce = Z_OBJCE_P(_this_zval);
3172 php_error(E_WARNING, "translate: not yet implemented"); RETURN_FALSE;
3175 /* }}} translate */
3178 static zend_function_entry CairoMatrix_methods[] = {
3179 PHP_ME(CairoMatrix, __construct, CairoMatrix____construct_args, /**/ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
3180 PHP_ME(CairoMatrix, init_rotate, CairoMatrix__init_rotate_args, /**/ZEND_ACC_PRIVATE)
3181 PHP_ME(CairoMatrix, invert, NULL, /**/ZEND_ACC_PUBLIC)
3182 PHP_ME(CairoMatrix, multiply, CairoMatrix__multiply_args, /**/ZEND_ACC_PUBLIC)
3183 PHP_ME(CairoMatrix, rotate, CairoMatrix__rotate_args, /**/ZEND_ACC_PUBLIC)
3184 PHP_ME(CairoMatrix, scale, CairoMatrix__scale_args, /**/ZEND_ACC_PUBLIC)
3185 PHP_ME(CairoMatrix, transform_distance, CairoMatrix__transform_distance_args, /**/ZEND_ACC_PUBLIC)
3186 PHP_ME(CairoMatrix, transform_point, CairoMatrix__transform_point_args, /**/ZEND_ACC_PUBLIC)
3187 PHP_ME(CairoMatrix, translate, CairoMatrix__translate_args, /**/ZEND_ACC_PUBLIC)
3188 { NULL, NULL, NULL }
3191 /* }}} Methods */
3193 static void class_init_CairoMatrix(void)
3195 zend_class_entry ce;
3197 INIT_CLASS_ENTRY(ce, "CairoMatrix", CairoMatrix_methods);
3198 CairoMatrix_ce_ptr = zend_register_internal_class(&ce);
3201 /* }}} Class CairoMatrix */
3203 /* {{{ Class CairoPattern */
3205 static zend_class_entry * CairoPattern_ce_ptr = NULL;
3207 /* {{{ Methods */
3210 /* {{{ proto void contruct()
3212 PHP_METHOD(CairoPattern, __construct)
3214 zend_class_entry * _this_ce;
3215 zval * _this_zval;
3219 if (ZEND_NUM_ARGS()>0) {
3220 WRONG_PARAM_COUNT;
3224 php_error(E_WARNING, "__construct: not yet implemented"); RETURN_FALSE;
3227 /* }}} __construct */
3231 /* {{{ proto object get_matrix()
3233 PHP_METHOD(CairoPattern, get_matrix)
3235 zend_class_entry * _this_ce;
3237 zval * _this_zval = NULL;
3241 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoPattern_ce_ptr) == FAILURE) {
3242 return;
3245 _this_ce = Z_OBJCE_P(_this_zval);
3248 php_error(E_WARNING, "get_matrix: not yet implemented"); RETURN_FALSE;
3250 object_init(return_value)
3252 /* }}} get_matrix */
3256 /* {{{ proto void set_matrix(object m)
3258 PHP_METHOD(CairoPattern, set_matrix)
3260 zend_class_entry * _this_ce;
3262 zval * _this_zval = NULL;
3263 zval * m = NULL;
3267 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oo", &_this_zval, CairoPattern_ce_ptr, &m) == FAILURE) {
3268 return;
3271 _this_ce = Z_OBJCE_P(_this_zval);
3274 php_error(E_WARNING, "set_matrix: not yet implemented"); RETURN_FALSE;
3277 /* }}} set_matrix */
3280 static zend_function_entry CairoPattern_methods[] = {
3281 PHP_ME(CairoPattern, __construct, NULL, /**/ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
3282 PHP_ME(CairoPattern, get_matrix, NULL, /**/ZEND_ACC_PUBLIC)
3283 PHP_ME(CairoPattern, set_matrix, CairoPattern__set_matrix_args, /**/ZEND_ACC_PUBLIC)
3284 { NULL, NULL, NULL }
3287 /* }}} Methods */
3289 static void class_init_CairoPattern(void)
3291 zend_class_entry ce;
3293 INIT_CLASS_ENTRY(ce, "CairoPattern", CairoPattern_methods);
3294 CairoPattern_ce_ptr = zend_register_internal_class(&ce);
3297 /* }}} Class CairoPattern */
3299 /* {{{ Class CairoGradient */
3301 static zend_class_entry * CairoGradient_ce_ptr = NULL;
3303 /* {{{ Methods */
3306 /* {{{ proto void construct()
3308 PHP_METHOD(CairoGradient, __contruct)
3310 zend_class_entry * _this_ce;
3312 zval * _this_zval = NULL;
3316 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoGradient_ce_ptr) == FAILURE) {
3317 return;
3320 _this_ce = Z_OBJCE_P(_this_zval);
3323 php_error(E_WARNING, "__contruct: not yet implemented"); RETURN_FALSE;
3326 /* }}} __contruct */
3330 /* {{{ proto void add_color_stop_rgb(float offset, float red, float green, float blue)
3332 PHP_METHOD(CairoGradient, add_color_stop_rgb)
3334 zend_class_entry * _this_ce;
3336 zval * _this_zval = NULL;
3337 double offset = 0.0;
3338 double red = 0.0;
3339 double green = 0.0;
3340 double blue = 0.0;
3344 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odddd", &_this_zval, CairoGradient_ce_ptr, &offset, &red, &green, &blue) == FAILURE) {
3345 return;
3348 _this_ce = Z_OBJCE_P(_this_zval);
3351 php_error(E_WARNING, "add_color_stop_rgb: not yet implemented"); RETURN_FALSE;
3354 /* }}} add_color_stop_rgb */
3358 /* {{{ proto void add_color_stop_rgba(float offset, float red, float green, float blue, float alpha)
3360 PHP_METHOD(CairoGradient, add_color_stop_rgba)
3362 zend_class_entry * _this_ce;
3364 zval * _this_zval = NULL;
3365 double offset = 0.0;
3366 double red = 0.0;
3367 double green = 0.0;
3368 double blue = 0.0;
3369 double alpha = 0.0;
3373 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oddddd", &_this_zval, CairoGradient_ce_ptr, &offset, &red, &green, &blue, &alpha) == FAILURE) {
3374 return;
3377 _this_ce = Z_OBJCE_P(_this_zval);
3380 php_error(E_WARNING, "add_color_stop_rgba: not yet implemented"); RETURN_FALSE;
3383 /* }}} add_color_stop_rgba */
3386 static zend_function_entry CairoGradient_methods[] = {
3387 PHP_ME(CairoGradient, __contruct, NULL, /**/ZEND_ACC_PUBLIC)
3388 PHP_ME(CairoGradient, add_color_stop_rgb, CairoGradient__add_color_stop_rgb_args, /**/ZEND_ACC_PUBLIC)
3389 PHP_ME(CairoGradient, add_color_stop_rgba, CairoGradient__add_color_stop_rgba_args, /**/ZEND_ACC_PUBLIC)
3390 { NULL, NULL, NULL }
3393 /* }}} Methods */
3395 static void class_init_CairoGradient(void)
3397 zend_class_entry ce;
3399 INIT_CLASS_ENTRY(ce, "CairoGradient", CairoGradient_methods);
3400 CairoGradient_ce_ptr = zend_register_internal_class_ex(&ce, NULL, "CairoPattern" TSRMLS_CC);
3403 /* }}} Class CairoGradient */
3405 /* {{{ Class CairoLinearGradient */
3407 static zend_class_entry * CairoLinearGradient_ce_ptr = NULL;
3409 /* {{{ Methods */
3412 /* {{{ proto void construct(float x0, float y0, float x1, float y1)
3414 PHP_METHOD(CairoLinearGradient, __construct)
3416 zend_class_entry * _this_ce;
3417 zval * _this_zval;
3419 double x0 = 0.0;
3420 double y0 = 0.0;
3421 double x1 = 0.0;
3422 double y1 = 0.0;
3426 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dddd", &x0, &y0, &x1, &y1) == FAILURE) {
3427 return;
3430 _this_zval = getThis();
3431 _this_ce = Z_OBJCE_P(_this_zval);
3434 php_error(E_WARNING, "__construct: not yet implemented"); RETURN_FALSE;
3437 /* }}} __construct */
3441 /* {{{ proto array get_linear_points()
3443 PHP_METHOD(CairoLinearGradient, get_linear_points)
3445 zend_class_entry * _this_ce;
3447 zval * _this_zval = NULL;
3451 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoLinearGradient_ce_ptr) == FAILURE) {
3452 return;
3455 _this_ce = Z_OBJCE_P(_this_zval);
3458 array_init(return_value);
3460 php_error(E_WARNING, "get_linear_points: not yet implemented"); RETURN_FALSE;
3462 array_init(return_value);
3464 /* }}} get_linear_points */
3467 static zend_function_entry CairoLinearGradient_methods[] = {
3468 PHP_ME(CairoLinearGradient, __construct, CairoLinearGradient____construct_args, /**/ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
3469 PHP_ME(CairoLinearGradient, get_linear_points, NULL, /**/ZEND_ACC_PUBLIC)
3470 { NULL, NULL, NULL }
3473 /* }}} Methods */
3475 static void class_init_CairoLinearGradient(void)
3477 zend_class_entry ce;
3479 INIT_CLASS_ENTRY(ce, "CairoLinearGradient", CairoLinearGradient_methods);
3480 CairoLinearGradient_ce_ptr = zend_register_internal_class_ex(&ce, NULL, "CairoGradient" TSRMLS_CC);
3483 /* }}} Class CairoLinearGradient */
3485 /* {{{ Class CairoRadialGradient */
3487 static zend_class_entry * CairoRadialGradient_ce_ptr = NULL;
3489 /* {{{ Methods */
3492 /* {{{ proto void construct(float cx0, float cy0, float radius0, float cx1, float cy1, float radius1)
3494 PHP_METHOD(CairoRadialGradient, __constuct)
3496 zend_class_entry * _this_ce;
3498 zval * _this_zval = NULL;
3499 double cx0 = 0.0;
3500 double cy0 = 0.0;
3501 double radius0 = 0.0;
3502 double cx1 = 0.0;
3503 double cy1 = 0.0;
3504 double radius1 = 0.0;
3508 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odddddd", &_this_zval, CairoRadialGradient_ce_ptr, &cx0, &cy0, &radius0, &cx1, &cy1, &radius1) == FAILURE) {
3509 return;
3512 _this_ce = Z_OBJCE_P(_this_zval);
3515 php_error(E_WARNING, "__constuct: not yet implemented"); RETURN_FALSE;
3518 /* }}} __constuct */
3522 /* {{{ proto array get_radial_circles()
3524 PHP_METHOD(CairoRadialGradient, get_radial_circles)
3526 zend_class_entry * _this_ce;
3528 zval * _this_zval = NULL;
3532 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoRadialGradient_ce_ptr) == FAILURE) {
3533 return;
3536 _this_ce = Z_OBJCE_P(_this_zval);
3539 array_init(return_value);
3541 php_error(E_WARNING, "get_radial_circles: not yet implemented"); RETURN_FALSE;
3543 array_init(return_value);
3545 /* }}} get_radial_circles */
3548 static zend_function_entry CairoRadialGradient_methods[] = {
3549 PHP_ME(CairoRadialGradient, __constuct, CairoRadialGradient____constuct_args, /**/ZEND_ACC_PUBLIC)
3550 PHP_ME(CairoRadialGradient, get_radial_circles, NULL, /**/ZEND_ACC_PUBLIC)
3551 { NULL, NULL, NULL }
3554 /* }}} Methods */
3556 static void class_init_CairoRadialGradient(void)
3558 zend_class_entry ce;
3560 INIT_CLASS_ENTRY(ce, "CairoRadialGradient", CairoRadialGradient_methods);
3561 CairoRadialGradient_ce_ptr = zend_register_internal_class_ex(&ce, NULL, "CairoGradient" TSRMLS_CC);
3564 /* }}} Class CairoRadialGradient */
3566 /* {{{ Class CairoSolidPattern */
3568 static zend_class_entry * CairoSolidPattern_ce_ptr = NULL;
3570 /* {{{ Methods */
3573 /* {{{ proto void construct(float r, float g, float b [, float a])
3575 PHP_METHOD(CairoSolidPattern, __construct)
3577 zend_class_entry * _this_ce;
3578 zval * _this_zval;
3580 double r = 0.0;
3581 double g = 0.0;
3582 double b = 0.0;
3583 double a = 0.0;
3587 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ddd|d", &r, &g, &b, &a) == FAILURE) {
3588 return;
3591 _this_zval = getThis();
3592 _this_ce = Z_OBJCE_P(_this_zval);
3595 php_error(E_WARNING, "__construct: not yet implemented"); RETURN_FALSE;
3598 /* }}} __construct */
3602 /* {{{ proto array get_rgba()
3604 PHP_METHOD(CairoSolidPattern, get_rgba)
3606 zend_class_entry * _this_ce;
3608 zval * _this_zval = NULL;
3612 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoSolidPattern_ce_ptr) == FAILURE) {
3613 return;
3616 _this_ce = Z_OBJCE_P(_this_zval);
3619 array_init(return_value);
3621 php_error(E_WARNING, "get_rgba: not yet implemented"); RETURN_FALSE;
3623 array_init(return_value);
3625 /* }}} get_rgba */
3628 static zend_function_entry CairoSolidPattern_methods[] = {
3629 PHP_ME(CairoSolidPattern, __construct, CairoSolidPattern____construct_args, /**/ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
3630 PHP_ME(CairoSolidPattern, get_rgba, NULL, /**/ZEND_ACC_PUBLIC)
3631 { NULL, NULL, NULL }
3634 /* }}} Methods */
3636 static void class_init_CairoSolidPattern(void)
3638 zend_class_entry ce;
3640 INIT_CLASS_ENTRY(ce, "CairoSolidPattern", CairoSolidPattern_methods);
3641 CairoSolidPattern_ce_ptr = zend_register_internal_class_ex(&ce, NULL, "CairoPattern" TSRMLS_CC);
3644 /* }}} Class CairoSolidPattern */
3646 /* {{{ Class CairoSurfacePattern */
3648 static zend_class_entry * CairoSurfacePattern_ce_ptr = NULL;
3650 /* {{{ Methods */
3653 /* {{{ proto void construct(object s)
3655 PHP_METHOD(CairoSurfacePattern, __construct)
3657 zend_class_entry * _this_ce;
3658 zval * _this_zval;
3660 zval * s = NULL;
3664 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "o", &s) == FAILURE) {
3665 return;
3668 _this_zval = getThis();
3669 _this_ce = Z_OBJCE_P(_this_zval);
3672 php_error(E_WARNING, "__construct: not yet implemented"); RETURN_FALSE;
3675 /* }}} __construct */
3679 /* {{{ proto int get_extend()
3681 PHP_METHOD(CairoSurfacePattern, get_extend)
3683 zend_class_entry * _this_ce;
3685 zval * _this_zval = NULL;
3689 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoSurfacePattern_ce_ptr) == FAILURE) {
3690 return;
3693 _this_ce = Z_OBJCE_P(_this_zval);
3696 php_error(E_WARNING, "get_extend: not yet implemented"); RETURN_FALSE;
3698 RETURN_LONG(0);
3700 /* }}} get_extend */
3704 /* {{{ proto int get_filter()
3706 PHP_METHOD(CairoSurfacePattern, get_filter)
3708 zend_class_entry * _this_ce;
3710 zval * _this_zval = NULL;
3714 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoSurfacePattern_ce_ptr) == FAILURE) {
3715 return;
3718 _this_ce = Z_OBJCE_P(_this_zval);
3721 php_error(E_WARNING, "get_filter: not yet implemented"); RETURN_FALSE;
3723 RETURN_LONG(0);
3725 /* }}} get_filter */
3729 /* {{{ proto object get_surface()
3731 PHP_METHOD(CairoSurfacePattern, get_surface)
3733 zend_class_entry * _this_ce;
3735 zval * _this_zval = NULL;
3739 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoSurfacePattern_ce_ptr) == FAILURE) {
3740 return;
3743 _this_ce = Z_OBJCE_P(_this_zval);
3746 php_error(E_WARNING, "get_surface: not yet implemented"); RETURN_FALSE;
3748 object_init(return_value)
3750 /* }}} get_surface */
3754 /* {{{ proto void set_extend(int extend)
3756 PHP_METHOD(CairoSurfacePattern, set_extend)
3758 zend_class_entry * _this_ce;
3760 zval * _this_zval = NULL;
3761 long extend = 0;
3765 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Ol", &_this_zval, CairoSurfacePattern_ce_ptr, &extend) == FAILURE) {
3766 return;
3769 _this_ce = Z_OBJCE_P(_this_zval);
3772 php_error(E_WARNING, "set_extend: not yet implemented"); RETURN_FALSE;
3775 /* }}} set_extend */
3779 /* {{{ proto void set_filter(int filter)
3781 PHP_METHOD(CairoSurfacePattern, set_filter)
3783 zend_class_entry * _this_ce;
3785 zval * _this_zval = NULL;
3786 long filter = 0;
3790 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Ol", &_this_zval, CairoSurfacePattern_ce_ptr, &filter) == FAILURE) {
3791 return;
3794 _this_ce = Z_OBJCE_P(_this_zval);
3797 php_error(E_WARNING, "set_filter: not yet implemented"); RETURN_FALSE;
3800 /* }}} set_filter */
3803 static zend_function_entry CairoSurfacePattern_methods[] = {
3804 PHP_ME(CairoSurfacePattern, __construct, NULL, /**/ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
3805 PHP_ME(CairoSurfacePattern, get_extend, NULL, /**/ZEND_ACC_PUBLIC)
3806 PHP_ME(CairoSurfacePattern, get_filter, NULL, /**/ZEND_ACC_PUBLIC)
3807 PHP_ME(CairoSurfacePattern, get_surface, NULL, /**/ZEND_ACC_PUBLIC)
3808 PHP_ME(CairoSurfacePattern, set_extend, CairoSurfacePattern__set_extend_args, /**/ZEND_ACC_PUBLIC)
3809 PHP_ME(CairoSurfacePattern, set_filter, CairoSurfacePattern__set_filter_args, /**/ZEND_ACC_PUBLIC)
3810 { NULL, NULL, NULL }
3813 /* }}} Methods */
3815 static void class_init_CairoSurfacePattern(void)
3817 zend_class_entry ce;
3819 INIT_CLASS_ENTRY(ce, "CairoSurfacePattern", CairoSurfacePattern_methods);
3820 CairoSurfacePattern_ce_ptr = zend_register_internal_class_ex(&ce, NULL, "CairoPattern" TSRMLS_CC);
3823 /* }}} Class CairoSurfacePattern */
3825 /* {{{ Class CairoScaledFont */
3827 static zend_class_entry * CairoScaledFont_ce_ptr = NULL;
3829 /* {{{ Methods */
3832 /* {{{ proto void construct(object ff, object mx1, object mx2, object fo)
3834 PHP_METHOD(CairoScaledFont, __construct)
3836 zend_class_entry * _this_ce;
3837 zval * _this_zval;
3839 zval * ff = NULL;
3840 zval * mx1 = NULL;
3841 zval * mx2 = NULL;
3842 zval * fo = NULL;
3846 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "oooo", &ff, &mx1, &mx2, &fo) == FAILURE) {
3847 return;
3850 _this_zval = getThis();
3851 _this_ce = Z_OBJCE_P(_this_zval);
3854 php_error(E_WARNING, "__construct: not yet implemented"); RETURN_FALSE;
3857 /* }}} __construct */
3861 /* {{{ proto array extents()
3863 PHP_METHOD(CairoScaledFont, extents)
3865 zend_class_entry * _this_ce;
3867 zval * _this_zval = NULL;
3871 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoScaledFont_ce_ptr) == FAILURE) {
3872 return;
3875 _this_ce = Z_OBJCE_P(_this_zval);
3878 array_init(return_value);
3880 php_error(E_WARNING, "extents: not yet implemented"); RETURN_FALSE;
3882 array_init(return_value);
3884 /* }}} extents */
3888 /* {{{ proto object get_font_face()
3890 PHP_METHOD(CairoScaledFont, get_font_face)
3892 zend_class_entry * _this_ce;
3894 zval * _this_zval = NULL;
3898 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoScaledFont_ce_ptr) == FAILURE) {
3899 return;
3902 _this_ce = Z_OBJCE_P(_this_zval);
3905 php_error(E_WARNING, "get_font_face: not yet implemented"); RETURN_FALSE;
3907 object_init(return_value)
3909 /* }}} get_font_face */
3913 /* {{{ proto array text_extents(string str)
3915 PHP_METHOD(CairoScaledFont, text_extents)
3917 zend_class_entry * _this_ce;
3919 zval * _this_zval = NULL;
3920 const char * str = NULL;
3921 int str_len = 0;
3925 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os", &_this_zval, CairoScaledFont_ce_ptr, &str, &str_len) == FAILURE) {
3926 return;
3929 _this_ce = Z_OBJCE_P(_this_zval);
3932 array_init(return_value);
3934 php_error(E_WARNING, "text_extents: not yet implemented"); RETURN_FALSE;
3936 array_init(return_value);
3938 /* }}} text_extents */
3941 static zend_function_entry CairoScaledFont_methods[] = {
3942 PHP_ME(CairoScaledFont, __construct, CairoScaledFont____construct_args, /**/ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
3943 PHP_ME(CairoScaledFont, extents, NULL, /**/ZEND_ACC_PUBLIC)
3944 PHP_ME(CairoScaledFont, get_font_face, NULL, /**/ZEND_ACC_PUBLIC)
3945 PHP_ME(CairoScaledFont, text_extents, CairoScaledFont__text_extents_args, /**/ZEND_ACC_PUBLIC)
3946 { NULL, NULL, NULL }
3949 /* }}} Methods */
3951 static void class_init_CairoScaledFont(void)
3953 zend_class_entry ce;
3955 INIT_CLASS_ENTRY(ce, "CairoScaledFont", CairoScaledFont_methods);
3956 CairoScaledFont_ce_ptr = zend_register_internal_class(&ce);
3959 /* }}} Class CairoScaledFont */
3961 /* {{{ Class CairoSurface */
3963 static zend_class_entry * CairoSurface_ce_ptr = NULL;
3965 /* {{{ Methods */
3968 /* {{{ proto void construct()
3970 PHP_METHOD(CairoSurface, __construct)
3972 zend_class_entry * _this_ce;
3973 zval * _this_zval;
3977 if (ZEND_NUM_ARGS()>0) {
3978 WRONG_PARAM_COUNT;
3982 php_error(E_WARNING, "__construct: not yet implemented"); RETURN_FALSE;
3985 /* }}} __construct */
3989 /* {{{ proto object create_similar(int content, int width, int height)
3991 PHP_METHOD(CairoSurface, create_similar)
3993 zend_class_entry * _this_ce;
3995 zval * _this_zval = NULL;
3996 long content = 0;
3997 long width = 0;
3998 long height = 0;
4002 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Olll", &_this_zval, CairoSurface_ce_ptr, &content, &width, &height) == FAILURE) {
4003 return;
4006 _this_ce = Z_OBJCE_P(_this_zval);
4009 php_error(E_WARNING, "create_similar: not yet implemented"); RETURN_FALSE;
4011 object_init(return_value)
4013 /* }}} create_similar */
4017 /* {{{ proto void finish()
4019 PHP_METHOD(CairoSurface, finish)
4021 zend_class_entry * _this_ce;
4023 zval * _this_zval = NULL;
4027 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoSurface_ce_ptr) == FAILURE) {
4028 return;
4031 _this_ce = Z_OBJCE_P(_this_zval);
4034 php_error(E_WARNING, "finish: not yet implemented"); RETURN_FALSE;
4037 /* }}} finish */
4041 /* {{{ proto void flush()
4043 PHP_METHOD(CairoSurface, flush)
4045 zend_class_entry * _this_ce;
4047 zval * _this_zval = NULL;
4051 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoSurface_ce_ptr) == FAILURE) {
4052 return;
4055 _this_ce = Z_OBJCE_P(_this_zval);
4058 php_error(E_WARNING, "flush: not yet implemented"); RETURN_FALSE;
4061 /* }}} flush */
4065 /* {{{ proto int get_content()
4067 PHP_METHOD(CairoSurface, get_content)
4069 zend_class_entry * _this_ce;
4071 zval * _this_zval = NULL;
4075 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoSurface_ce_ptr) == FAILURE) {
4076 return;
4079 _this_ce = Z_OBJCE_P(_this_zval);
4082 php_error(E_WARNING, "get_content: not yet implemented"); RETURN_FALSE;
4084 RETURN_LONG(0);
4086 /* }}} get_content */
4090 /* {{{ proto array get_device_offset()
4092 PHP_METHOD(CairoSurface, get_device_offset)
4094 zend_class_entry * _this_ce;
4096 zval * _this_zval = NULL;
4100 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoSurface_ce_ptr) == FAILURE) {
4101 return;
4104 _this_ce = Z_OBJCE_P(_this_zval);
4107 array_init(return_value);
4109 php_error(E_WARNING, "get_device_offset: not yet implemented"); RETURN_FALSE;
4111 array_init(return_value);
4113 /* }}} get_device_offset */
4117 /* {{{ proto object get_font_options()
4119 PHP_METHOD(CairoSurface, get_font_options)
4121 zend_class_entry * _this_ce;
4123 zval * _this_zval = NULL;
4127 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoSurface_ce_ptr) == FAILURE) {
4128 return;
4131 _this_ce = Z_OBJCE_P(_this_zval);
4134 php_error(E_WARNING, "get_font_options: not yet implemented"); RETURN_FALSE;
4136 object_init(return_value)
4138 /* }}} get_font_options */
4142 /* {{{ proto void mark_dirty_rectangle([int x, int y, int width, int height])
4144 PHP_METHOD(CairoSurface, mark_dirty_rectangle)
4146 zend_class_entry * _this_ce;
4148 zval * _this_zval = NULL;
4149 long x = 0;
4150 long y = 0;
4151 long width = 0;
4152 long height = 0;
4156 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O|llll", &_this_zval, CairoSurface_ce_ptr, &x, &y, &width, &height) == FAILURE) {
4157 return;
4160 _this_ce = Z_OBJCE_P(_this_zval);
4163 php_error(E_WARNING, "mark_dirty_rectangle: not yet implemented"); RETURN_FALSE;
4166 /* }}} mark_dirty_rectangle */
4170 /* {{{ proto void set_device_offset(float x_offset, float y_offset)
4172 PHP_METHOD(CairoSurface, set_device_offset)
4174 zend_class_entry * _this_ce;
4176 zval * _this_zval = NULL;
4177 double x_offset = 0.0;
4178 double y_offset = 0.0;
4182 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odd", &_this_zval, CairoSurface_ce_ptr, &x_offset, &y_offset) == FAILURE) {
4183 return;
4186 _this_ce = Z_OBJCE_P(_this_zval);
4189 php_error(E_WARNING, "set_device_offset: not yet implemented"); RETURN_FALSE;
4192 /* }}} set_device_offset */
4196 /* {{{ proto void set_fallback_resolution(float x_ppi, float y_ppi)
4198 PHP_METHOD(CairoSurface, set_fallback_resolution)
4200 zend_class_entry * _this_ce;
4202 zval * _this_zval = NULL;
4203 double x_ppi = 0.0;
4204 double y_ppi = 0.0;
4208 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odd", &_this_zval, CairoSurface_ce_ptr, &x_ppi, &y_ppi) == FAILURE) {
4209 return;
4212 _this_ce = Z_OBJCE_P(_this_zval);
4215 php_error(E_WARNING, "set_fallback_resolution: not yet implemented"); RETURN_FALSE;
4218 /* }}} set_fallback_resolution */
4222 /* {{{ proto void write_to_png(string file)
4224 PHP_METHOD(CairoSurface, write_to_png)
4226 zend_class_entry * _this_ce;
4228 zval * _this_zval = NULL;
4229 const char * file = NULL;
4230 int file_len = 0;
4234 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os", &_this_zval, CairoSurface_ce_ptr, &file, &file_len) == FAILURE) {
4235 return;
4238 _this_ce = Z_OBJCE_P(_this_zval);
4241 php_error(E_WARNING, "write_to_png: not yet implemented"); RETURN_FALSE;
4244 /* }}} write_to_png */
4247 static zend_function_entry CairoSurface_methods[] = {
4248 PHP_ME(CairoSurface, __construct, NULL, /**/ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
4249 PHP_ME(CairoSurface, create_similar, CairoSurface__create_similar_args, /**/ZEND_ACC_PUBLIC)
4250 PHP_ME(CairoSurface, finish, NULL, /**/ZEND_ACC_PUBLIC)
4251 PHP_ME(CairoSurface, flush, NULL, /**/ZEND_ACC_PUBLIC)
4252 PHP_ME(CairoSurface, get_content, NULL, /**/ZEND_ACC_PUBLIC)
4253 PHP_ME(CairoSurface, get_device_offset, NULL, /**/ZEND_ACC_PUBLIC)
4254 PHP_ME(CairoSurface, get_font_options, NULL, /**/ZEND_ACC_PUBLIC)
4255 PHP_ME(CairoSurface, mark_dirty_rectangle, CairoSurface__mark_dirty_rectangle_args, /**/ZEND_ACC_PUBLIC)
4256 PHP_ME(CairoSurface, set_device_offset, CairoSurface__set_device_offset_args, /**/ZEND_ACC_PUBLIC)
4257 PHP_ME(CairoSurface, set_fallback_resolution, CairoSurface__set_fallback_resolution_args, /**/ZEND_ACC_PUBLIC)
4258 PHP_ME(CairoSurface, write_to_png, CairoSurface__write_to_png_args, /**/ZEND_ACC_PUBLIC)
4259 { NULL, NULL, NULL }
4262 /* }}} Methods */
4264 static void class_init_CairoSurface(void)
4266 zend_class_entry ce;
4268 INIT_CLASS_ENTRY(ce, "CairoSurface", CairoSurface_methods);
4269 CairoSurface_ce_ptr = zend_register_internal_class(&ce);
4272 /* }}} Class CairoSurface */
4274 /* {{{ Class CairoImageSurface */
4276 static zend_class_entry * CairoImageSurface_ce_ptr = NULL;
4278 /* {{{ Methods */
4281 /* {{{ proto void construct(int format, int widthm, int height)
4283 PHP_METHOD(CairoImageSurface, __construct)
4285 zend_class_entry * _this_ce;
4286 zval * _this_zval;
4288 long format = 0;
4289 long widthm = 0;
4290 long height = 0;
4294 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lll", &format, &widthm, &height) == FAILURE) {
4295 return;
4298 _this_zval = getThis();
4299 _this_ce = Z_OBJCE_P(_this_zval);
4302 php_error(E_WARNING, "__construct: not yet implemented"); RETURN_FALSE;
4305 /* }}} __construct */
4309 /* {{{ proto object create_from_data(object obj, int format, int width, int height [, int stride])
4311 PHP_METHOD(CairoImageSurface, create_from_data)
4313 zend_class_entry * _this_ce;
4315 zval * _this_zval = NULL;
4316 zval * obj = NULL;
4317 long format = 0;
4318 long width = 0;
4319 long height = 0;
4320 long stride = 0;
4324 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oolll|l", &_this_zval, CairoImageSurface_ce_ptr, &obj, &format, &width, &height, &stride) == FAILURE) {
4325 return;
4328 _this_ce = Z_OBJCE_P(_this_zval);
4331 php_error(E_WARNING, "create_from_data: not yet implemented"); RETURN_FALSE;
4333 object_init(return_value)
4335 /* }}} create_from_data */
4339 /* {{{ proto object create_from_png(string file)
4341 PHP_METHOD(CairoImageSurface, create_from_png)
4343 zend_class_entry * _this_ce;
4345 zval * _this_zval = NULL;
4346 const char * file = NULL;
4347 int file_len = 0;
4351 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os", &_this_zval, CairoImageSurface_ce_ptr, &file, &file_len) == FAILURE) {
4352 return;
4355 _this_ce = Z_OBJCE_P(_this_zval);
4358 php_error(E_WARNING, "create_from_png: not yet implemented"); RETURN_FALSE;
4360 object_init(return_value)
4362 /* }}} create_from_png */
4366 /* {{{ proto string get_data()
4368 PHP_METHOD(CairoImageSurface, get_data)
4370 zend_class_entry * _this_ce;
4372 zval * _this_zval = NULL;
4376 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoImageSurface_ce_ptr) == FAILURE) {
4377 return;
4380 _this_ce = Z_OBJCE_P(_this_zval);
4383 php_error(E_WARNING, "get_data: not yet implemented"); RETURN_FALSE;
4385 RETURN_STRINGL("", 0, 1);
4387 /* }}} get_data */
4391 /* {{{ proto int get_format()
4393 PHP_METHOD(CairoImageSurface, get_format)
4395 zend_class_entry * _this_ce;
4397 zval * _this_zval = NULL;
4401 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoImageSurface_ce_ptr) == FAILURE) {
4402 return;
4405 _this_ce = Z_OBJCE_P(_this_zval);
4408 php_error(E_WARNING, "get_format: not yet implemented"); RETURN_FALSE;
4410 RETURN_LONG(0);
4412 /* }}} get_format */
4416 /* {{{ proto int get_height()
4418 PHP_METHOD(CairoImageSurface, get_height)
4420 zend_class_entry * _this_ce;
4422 zval * _this_zval = NULL;
4426 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoImageSurface_ce_ptr) == FAILURE) {
4427 return;
4430 _this_ce = Z_OBJCE_P(_this_zval);
4433 php_error(E_WARNING, "get_height: not yet implemented"); RETURN_FALSE;
4435 RETURN_LONG(0);
4437 /* }}} get_height */
4441 /* {{{ proto int get_stride()
4443 PHP_METHOD(CairoImageSurface, get_stride)
4445 zend_class_entry * _this_ce;
4447 zval * _this_zval = NULL;
4451 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoImageSurface_ce_ptr) == FAILURE) {
4452 return;
4455 _this_ce = Z_OBJCE_P(_this_zval);
4458 php_error(E_WARNING, "get_stride: not yet implemented"); RETURN_FALSE;
4460 RETURN_LONG(0);
4462 /* }}} get_stride */
4466 /* {{{ proto int get_width()
4468 PHP_METHOD(CairoImageSurface, get_width)
4470 zend_class_entry * _this_ce;
4472 zval * _this_zval = NULL;
4476 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoImageSurface_ce_ptr) == FAILURE) {
4477 return;
4480 _this_ce = Z_OBJCE_P(_this_zval);
4483 php_error(E_WARNING, "get_width: not yet implemented"); RETURN_FALSE;
4485 RETURN_LONG(0);
4487 /* }}} get_width */
4490 static zend_function_entry CairoImageSurface_methods[] = {
4491 PHP_ME(CairoImageSurface, __construct, CairoImageSurface____construct_args, /**/ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
4492 PHP_ME(CairoImageSurface, create_from_data, CairoImageSurface__create_from_data_args, /**/ZEND_ACC_PRIVATE)
4493 PHP_ME(CairoImageSurface, create_from_png, CairoImageSurface__create_from_png_args, /**/ZEND_ACC_PRIVATE)
4494 PHP_ME(CairoImageSurface, get_data, NULL, /**/ZEND_ACC_PUBLIC)
4495 PHP_ME(CairoImageSurface, get_format, NULL, /**/ZEND_ACC_PUBLIC)
4496 PHP_ME(CairoImageSurface, get_height, NULL, /**/ZEND_ACC_PUBLIC)
4497 PHP_ME(CairoImageSurface, get_stride, NULL, /**/ZEND_ACC_PUBLIC)
4498 PHP_ME(CairoImageSurface, get_width, NULL, /**/ZEND_ACC_PUBLIC)
4499 { NULL, NULL, NULL }
4502 /* }}} Methods */
4504 static void class_init_CairoImageSurface(void)
4506 zend_class_entry ce;
4508 INIT_CLASS_ENTRY(ce, "CairoImageSurface", CairoImageSurface_methods);
4509 CairoImageSurface_ce_ptr = zend_register_internal_class_ex(&ce, NULL, "CairoSurface" TSRMLS_CC);
4512 /* }}} Class CairoImageSurface */
4514 /* {{{ Class CairoPDFSurface */
4516 static zend_class_entry * CairoPDFSurface_ce_ptr = NULL;
4518 /* {{{ Methods */
4521 /* {{{ proto void construct(string file, float wpts, float hpts)
4523 PHP_METHOD(CairoPDFSurface, __construct)
4525 zend_class_entry * _this_ce;
4526 zval * _this_zval;
4528 const char * file = NULL;
4529 int file_len = 0;
4530 double wpts = 0.0;
4531 double hpts = 0.0;
4535 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sdd", &file, &file_len, &wpts, &hpts) == FAILURE) {
4536 return;
4539 _this_zval = getThis();
4540 _this_ce = Z_OBJCE_P(_this_zval);
4543 php_error(E_WARNING, "__construct: not yet implemented"); RETURN_FALSE;
4546 /* }}} __construct */
4550 /* {{{ proto void set_size(float wptd, float hpts)
4552 PHP_METHOD(CairoPDFSurface, set_size)
4554 zend_class_entry * _this_ce;
4556 zval * _this_zval = NULL;
4557 double wptd = 0.0;
4558 double hpts = 0.0;
4562 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odd", &_this_zval, CairoPDFSurface_ce_ptr, &wptd, &hpts) == FAILURE) {
4563 return;
4566 _this_ce = Z_OBJCE_P(_this_zval);
4569 php_error(E_WARNING, "set_size: not yet implemented"); RETURN_FALSE;
4572 /* }}} set_size */
4575 static zend_function_entry CairoPDFSurface_methods[] = {
4576 PHP_ME(CairoPDFSurface, __construct, CairoPDFSurface____construct_args, /**/ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
4577 PHP_ME(CairoPDFSurface, set_size, CairoPDFSurface__set_size_args, /**/ZEND_ACC_PUBLIC)
4578 { NULL, NULL, NULL }
4581 /* }}} Methods */
4583 static void class_init_CairoPDFSurface(void)
4585 zend_class_entry ce;
4587 INIT_CLASS_ENTRY(ce, "CairoPDFSurface", CairoPDFSurface_methods);
4588 CairoPDFSurface_ce_ptr = zend_register_internal_class_ex(&ce, NULL, "CairoSurface" TSRMLS_CC);
4591 /* }}} Class CairoPDFSurface */
4593 /* {{{ Class CairoPSSurface */
4595 static zend_class_entry * CairoPSSurface_ce_ptr = NULL;
4597 /* {{{ Methods */
4600 /* {{{ proto void construct(string file, float wpts, float hpts)
4602 PHP_METHOD(CairoPSSurface, __construct)
4604 zend_class_entry * _this_ce;
4605 zval * _this_zval;
4607 const char * file = NULL;
4608 int file_len = 0;
4609 double wpts = 0.0;
4610 double hpts = 0.0;
4614 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sdd", &file, &file_len, &wpts, &hpts) == FAILURE) {
4615 return;
4618 _this_zval = getThis();
4619 _this_ce = Z_OBJCE_P(_this_zval);
4622 php_error(E_WARNING, "__construct: not yet implemented"); RETURN_FALSE;
4625 /* }}} __construct */
4629 /* {{{ proto void dsc_begin_page_setup()
4631 PHP_METHOD(CairoPSSurface, dsc_begin_page_setup)
4633 zend_class_entry * _this_ce;
4635 zval * _this_zval = NULL;
4639 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoPSSurface_ce_ptr) == FAILURE) {
4640 return;
4643 _this_ce = Z_OBJCE_P(_this_zval);
4646 php_error(E_WARNING, "dsc_begin_page_setup: not yet implemented"); RETURN_FALSE;
4649 /* }}} dsc_begin_page_setup */
4653 /* {{{ proto void dsc_begin_setup()
4655 PHP_METHOD(CairoPSSurface, dsc_begin_setup)
4657 zend_class_entry * _this_ce;
4659 zval * _this_zval = NULL;
4663 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoPSSurface_ce_ptr) == FAILURE) {
4664 return;
4667 _this_ce = Z_OBJCE_P(_this_zval);
4670 php_error(E_WARNING, "dsc_begin_setup: not yet implemented"); RETURN_FALSE;
4673 /* }}} dsc_begin_setup */
4677 /* {{{ proto void dsc_comment()
4679 PHP_METHOD(CairoPSSurface, dsc_comment)
4681 zend_class_entry * _this_ce;
4683 zval * _this_zval = NULL;
4687 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoPSSurface_ce_ptr) == FAILURE) {
4688 return;
4691 _this_ce = Z_OBJCE_P(_this_zval);
4694 php_error(E_WARNING, "dsc_comment: not yet implemented"); RETURN_FALSE;
4697 /* }}} dsc_comment */
4701 /* {{{ proto array get_levels()
4703 PHP_METHOD(CairoPSSurface, get_levels)
4705 zend_class_entry * _this_ce;
4707 zval * _this_zval = NULL;
4711 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoPSSurface_ce_ptr) == FAILURE) {
4712 return;
4715 _this_ce = Z_OBJCE_P(_this_zval);
4718 array_init(return_value);
4720 do {
4721 /* ONLY for CAIRO 1.6
4722 } while (0);
4724 /* }}} get_levels */
4728 /* {{{ proto string get_level_string()
4730 PHP_METHOD(CairoPSSurface, get_level_string)
4732 zend_class_entry * _this_ce;
4734 zval * _this_zval = NULL;
4738 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoPSSurface_ce_ptr) == FAILURE) {
4739 return;
4742 _this_ce = Z_OBJCE_P(_this_zval);
4745 do {
4746 /* ONLY for CAIRO 1.6*/
4747 } while (0);
4749 /* }}} get_level_string */
4753 /* {{{ proto void restrict_to_level(int level)
4755 PHP_METHOD(CairoPSSurface, restrict_to_level)
4757 zend_class_entry * _this_ce;
4759 zval * _this_zval = NULL;
4760 long level = 0;
4764 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Ol", &_this_zval, CairoPSSurface_ce_ptr, &level) == FAILURE) {
4765 return;
4768 _this_ce = Z_OBJCE_P(_this_zval);
4771 do {
4772 /* ONLY for CAIRO 1.6 */
4773 } while (0);
4775 /* }}} restrict_to_level */
4779 /* {{{ proto void set_eps()
4781 PHP_METHOD(CairoPSSurface, set_eps)
4783 zend_class_entry * _this_ce;
4785 zval * _this_zval = NULL;
4789 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoPSSurface_ce_ptr) == FAILURE) {
4790 return;
4793 _this_ce = Z_OBJCE_P(_this_zval);
4796 do {
4797 /* ONLY for CAIRO 1.6 */
4798 } while (0);
4800 /* }}} set_eps */
4804 /* {{{ proto void set_size(float wpts, float hpts)
4806 PHP_METHOD(CairoPSSurface, set_size)
4808 zend_class_entry * _this_ce;
4810 zval * _this_zval = NULL;
4811 double wpts = 0.0;
4812 double hpts = 0.0;
4816 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Odd", &_this_zval, CairoPSSurface_ce_ptr, &wpts, &hpts) == FAILURE) {
4817 return;
4820 _this_ce = Z_OBJCE_P(_this_zval);
4823 php_error(E_WARNING, "set_size: not yet implemented"); RETURN_FALSE;
4826 /* }}} set_size */
4829 static zend_function_entry CairoPSSurface_methods[] = {
4830 PHP_ME(CairoPSSurface, __construct, CairoPSSurface____construct_args, /**/ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
4831 PHP_ME(CairoPSSurface, dsc_begin_page_setup, NULL, /**/ZEND_ACC_PUBLIC)
4832 PHP_ME(CairoPSSurface, dsc_begin_setup, NULL, /**/ZEND_ACC_PUBLIC)
4833 PHP_ME(CairoPSSurface, dsc_comment, NULL, /**/ZEND_ACC_PUBLIC)
4834 PHP_ME(CairoPSSurface, get_levels, NULL, /**/ZEND_ACC_PUBLIC)
4835 PHP_ME(CairoPSSurface, get_level_string, NULL, /**/ZEND_ACC_PUBLIC)
4836 PHP_ME(CairoPSSurface, restrict_to_level, CairoPSSurface__restrict_to_level_args, /**/ZEND_ACC_PUBLIC)
4837 PHP_ME(CairoPSSurface, set_eps, NULL, /**/ZEND_ACC_PUBLIC)
4838 PHP_ME(CairoPSSurface, set_size, CairoPSSurface__set_size_args, /**/ZEND_ACC_PUBLIC)
4839 { NULL, NULL, NULL }
4842 /* }}} Methods */
4844 static void class_init_CairoPSSurface(void)
4846 zend_class_entry ce;
4848 INIT_CLASS_ENTRY(ce, "CairoPSSurface", CairoPSSurface_methods);
4849 CairoPSSurface_ce_ptr = zend_register_internal_class_ex(&ce, NULL, "CairoSurface" TSRMLS_CC);
4852 /* }}} Class CairoPSSurface */
4854 /* {{{ Class CairoQuartzSurface */
4856 static zend_class_entry * CairoQuartzSurface_ce_ptr = NULL;
4858 /* {{{ Methods */
4861 /* {{{ proto void construct(float wpixels, float hpixels [, int format])
4863 PHP_METHOD(CairoQuartzSurface, __construct)
4865 zend_class_entry * _this_ce;
4866 zval * _this_zval;
4868 double wpixels = 0.0;
4869 double hpixels = 0.0;
4870 long format = 0;
4874 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd|l", &wpixels, &hpixels, &format) == FAILURE) {
4875 return;
4878 _this_zval = getThis();
4879 _this_ce = Z_OBJCE_P(_this_zval);
4882 php_error(E_WARNING, "__construct: not yet implemented"); RETURN_FALSE;
4885 /* }}} __construct */
4888 static zend_function_entry CairoQuartzSurface_methods[] = {
4889 PHP_ME(CairoQuartzSurface, __construct, CairoQuartzSurface____construct_args, /**/ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
4890 { NULL, NULL, NULL }
4893 /* }}} Methods */
4895 static void class_init_CairoQuartzSurface(void)
4897 zend_class_entry ce;
4899 INIT_CLASS_ENTRY(ce, "CairoQuartzSurface", CairoQuartzSurface_methods);
4900 CairoQuartzSurface_ce_ptr = zend_register_internal_class_ex(&ce, NULL, "CairoSurface" TSRMLS_CC);
4903 /* }}} Class CairoQuartzSurface */
4905 /* {{{ Class CairoSVGSurface */
4907 static zend_class_entry * CairoSVGSurface_ce_ptr = NULL;
4909 /* {{{ Methods */
4912 /* {{{ proto void construct(string file, float wpts, float hpts)
4914 PHP_METHOD(CairoSVGSurface, __construct)
4916 zend_class_entry * _this_ce;
4917 zval * _this_zval;
4919 const char * file = NULL;
4920 int file_len = 0;
4921 double wpts = 0.0;
4922 double hpts = 0.0;
4926 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sdd", &file, &file_len, &wpts, &hpts) == FAILURE) {
4927 return;
4930 _this_zval = getThis();
4931 _this_ce = Z_OBJCE_P(_this_zval);
4934 php_error(E_WARNING, "__construct: not yet implemented"); RETURN_FALSE;
4937 /* }}} __construct */
4940 static zend_function_entry CairoSVGSurface_methods[] = {
4941 PHP_ME(CairoSVGSurface, __construct, CairoSVGSurface____construct_args, /**/ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
4942 { NULL, NULL, NULL }
4945 /* }}} Methods */
4947 static void class_init_CairoSVGSurface(void)
4949 zend_class_entry ce;
4951 INIT_CLASS_ENTRY(ce, "CairoSVGSurface", CairoSVGSurface_methods);
4952 CairoSVGSurface_ce_ptr = zend_register_internal_class_ex(&ce, NULL, "CairoSurface" TSRMLS_CC);
4955 /* }}} Class CairoSVGSurface */
4957 /* {{{ Class CairoWin32Surface */
4959 static zend_class_entry * CairoWin32Surface_ce_ptr = NULL;
4961 /* {{{ Methods */
4964 /* {{{ proto void construct(int hdc)
4966 PHP_METHOD(CairoWin32Surface, __construct)
4968 zend_class_entry * _this_ce;
4969 zval * _this_zval;
4971 long hdc = 0;
4975 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &hdc) == FAILURE) {
4976 return;
4979 _this_zval = getThis();
4980 _this_ce = Z_OBJCE_P(_this_zval);
4983 php_error(E_WARNING, "__construct: not yet implemented"); RETURN_FALSE;
4986 /* }}} __construct */
4989 static zend_function_entry CairoWin32Surface_methods[] = {
4990 PHP_ME(CairoWin32Surface, __construct, NULL, /**/ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
4991 { NULL, NULL, NULL }
4994 /* }}} Methods */
4996 static void class_init_CairoWin32Surface(void)
4998 zend_class_entry ce;
5000 INIT_CLASS_ENTRY(ce, "CairoWin32Surface", CairoWin32Surface_methods);
5001 CairoWin32Surface_ce_ptr = zend_register_internal_class_ex(&ce, NULL, "CairoSurface" TSRMLS_CC);
5004 /* }}} Class CairoWin32Surface */
5006 /* {{{ Class CairoXlibSurface */
5008 static zend_class_entry * CairoXlibSurface_ce_ptr = NULL;
5010 /* {{{ Methods */
5013 /* {{{ proto void construct()
5015 PHP_METHOD(CairoXlibSurface, __construct)
5017 zend_class_entry * _this_ce;
5018 zval * _this_zval;
5022 if (ZEND_NUM_ARGS()>0) {
5023 WRONG_PARAM_COUNT;
5027 php_error(E_WARNING, "__construct: not yet implemented"); RETURN_FALSE;
5030 /* }}} __construct */
5034 /* {{{ proto int get_depth()
5036 PHP_METHOD(CairoXlibSurface, get_depth)
5038 zend_class_entry * _this_ce;
5040 zval * _this_zval = NULL;
5044 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoXlibSurface_ce_ptr) == FAILURE) {
5045 return;
5048 _this_ce = Z_OBJCE_P(_this_zval);
5051 php_error(E_WARNING, "get_depth: not yet implemented"); RETURN_FALSE;
5053 RETURN_LONG(0);
5055 /* }}} get_depth */
5059 /* {{{ proto int get_height()
5061 PHP_METHOD(CairoXlibSurface, get_height)
5063 zend_class_entry * _this_ce;
5065 zval * _this_zval = NULL;
5069 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoXlibSurface_ce_ptr) == FAILURE) {
5070 return;
5073 _this_ce = Z_OBJCE_P(_this_zval);
5076 php_error(E_WARNING, "get_height: not yet implemented"); RETURN_FALSE;
5078 RETURN_LONG(0);
5080 /* }}} get_height */
5084 /* {{{ proto int get_width()
5086 PHP_METHOD(CairoXlibSurface, get_width)
5088 zend_class_entry * _this_ce;
5090 zval * _this_zval = NULL;
5094 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &_this_zval, CairoXlibSurface_ce_ptr) == FAILURE) {
5095 return;
5098 _this_ce = Z_OBJCE_P(_this_zval);
5101 php_error(E_WARNING, "get_width: not yet implemented"); RETURN_FALSE;
5103 RETURN_LONG(0);
5105 /* }}} get_width */
5108 static zend_function_entry CairoXlibSurface_methods[] = {
5109 PHP_ME(CairoXlibSurface, __construct, NULL, /**/ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
5110 PHP_ME(CairoXlibSurface, get_depth, NULL, /**/ZEND_ACC_PUBLIC)
5111 PHP_ME(CairoXlibSurface, get_height, NULL, /**/ZEND_ACC_PUBLIC)
5112 PHP_ME(CairoXlibSurface, get_width, NULL, /**/ZEND_ACC_PUBLIC)
5113 { NULL, NULL, NULL }
5116 /* }}} Methods */
5118 static void class_init_CairoXlibSurface(void)
5120 zend_class_entry ce;
5122 INIT_CLASS_ENTRY(ce, "CairoXlibSurface", CairoXlibSurface_methods);
5123 CairoXlibSurface_ce_ptr = zend_register_internal_class_ex(&ce, NULL, "CairoSurface" TSRMLS_CC);
5126 /* }}} Class CairoXlibSurface */
5128 /* {{{ Class CairoException */
5130 static zend_class_entry * CairoException_ce_ptr = NULL;
5132 /* {{{ Methods */
5134 static zend_function_entry CairoException_methods[] = {
5135 { NULL, NULL, NULL }
5138 /* }}} Methods */
5140 static void class_init_CairoException(void)
5142 zend_class_entry ce;
5144 INIT_CLASS_ENTRY(ce, "CairoException", CairoException_methods);
5145 CairoException_ce_ptr = zend_register_internal_class_ex(&ce, NULL, "Exception" TSRMLS_CC);
5148 /* }}} Class CairoException */
5150 /* }}} Class definitions*/
5152 /* {{{ phpCairo_functions[] */
5153 function_entry phpCairo_functions[] = {
5154 PHP_FE(cairo_version , cairo_version_arg_info)
5155 PHP_FE(cairo_version_string, cairo_version_string_arg_info)
5156 { NULL, NULL, NULL }
5158 /* }}} */
5161 /* {{{ phpCairo_module_entry
5163 zend_module_entry phpCairo_module_entry = {
5164 STANDARD_MODULE_HEADER,
5165 "phpCairo",
5166 phpCairo_functions,
5167 PHP_MINIT(phpCairo), /* Replace with NULL if there is nothing to do at php startup */
5168 PHP_MSHUTDOWN(phpCairo), /* Replace with NULL if there is nothing to do at php shutdown */
5169 PHP_RINIT(phpCairo), /* Replace with NULL if there is nothing to do at request start */
5170 PHP_RSHUTDOWN(phpCairo), /* Replace with NULL if there is nothing to do at request end */
5171 PHP_MINFO(phpCairo),
5172 "0.0.1",
5173 STANDARD_MODULE_PROPERTIES
5175 /* }}} */
5177 #ifdef COMPILE_DL_PHPCAIRO
5178 ZEND_GET_MODULE(phpCairo)
5179 #endif
5182 /* {{{ PHP_MINIT_FUNCTION */
5183 PHP_MINIT_FUNCTION(phpCairo)
5185 class_init_CairoContext();
5186 class_init_CairoFontFace();
5187 class_init_CairoFontOptions();
5188 class_init_CairoMatrix();
5189 class_init_CairoPattern();
5190 class_init_CairoGradient();
5191 class_init_CairoLinearGradient();
5192 class_init_CairoRadialGradient();
5193 class_init_CairoSolidPattern();
5194 class_init_CairoSurfacePattern();
5195 class_init_CairoScaledFont();
5196 class_init_CairoSurface();
5197 class_init_CairoImageSurface();
5198 class_init_CairoPDFSurface();
5199 class_init_CairoPSSurface();
5200 class_init_CairoQuartzSurface();
5201 class_init_CairoSVGSurface();
5202 class_init_CairoWin32Surface();
5203 class_init_CairoXlibSurface();
5204 class_init_CairoException();
5206 /* add your stuff here */
5208 return SUCCESS;
5210 /* }}} */
5213 /* {{{ PHP_MSHUTDOWN_FUNCTION */
5214 PHP_MSHUTDOWN_FUNCTION(phpCairo)
5217 /* add your stuff here */
5219 return SUCCESS;
5221 /* }}} */
5224 /* {{{ PHP_RINIT_FUNCTION */
5225 PHP_RINIT_FUNCTION(phpCairo)
5227 /* add your stuff here */
5229 return SUCCESS;
5231 /* }}} */
5234 /* {{{ PHP_RSHUTDOWN_FUNCTION */
5235 PHP_RSHUTDOWN_FUNCTION(phpCairo)
5237 /* add your stuff here */
5239 return SUCCESS;
5241 /* }}} */
5244 /* {{{ PHP_MINFO_FUNCTION */
5245 PHP_MINFO_FUNCTION(phpCairo)
5247 php_info_print_box_start(0);
5248 php_printf("<p>PHP bindings for Cairo Graphic Library</p>\n");
5249 php_printf("<p>Version 0.0.1devel (2008-05-06)</p>\n");
5250 php_printf("<p><b>Authors:</b></p>\n");
5251 php_printf("<p>Akshat Gupta &lt;g.akshat@gmail.com&gt; (lead)</p>\n");
5252 php_info_print_box_end();
5253 /* add your stuff here */
5256 /* }}} */
5259 /* {{{ proto int cairo_version()
5261 PHP_FUNCTION(cairo_version)
5266 if (ZEND_NUM_ARGS()>0) {
5267 WRONG_PARAM_COUNT;
5271 php_error(E_WARNING, "cairo_version: not yet implemented"); RETURN_FALSE;
5273 RETURN_LONG(0);
5275 /* }}} cairo_version */
5278 /* {{{ proto string cairo_version_string()
5280 PHP_FUNCTION(cairo_version_string)
5285 if (ZEND_NUM_ARGS()>0) {
5286 WRONG_PARAM_COUNT;
5290 php_error(E_WARNING, "cairo_version_string: not yet implemented"); RETURN_FALSE;
5292 RETURN_STRINGL("", 0, 1);
5294 /* }}} cairo_version_string */
5296 #endif /* HAVE_PHPCAIRO */
5300 * Local variables:
5301 * tab-width: 4
5302 * c-basic-offset: 4
5303 * End:
5304 * vim600: noet sw=4 ts=4 fdm=marker
5305 * vim<600: noet sw=4 ts=4