Changed the entire file structure to remove the .c includes from cairo.c
[phpCairo.git] / src / cairo / CairoContext.h
blob48f1391340ca368350c872589a537286b42a7fcf
2 PHP_METHOD(CairoContext, __construct);
3 #if (PHP_MAJOR_VERSION >= 5)
4 ZEND_BEGIN_ARG_INFO_EX(CairoContext____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
5 ZEND_ARG_OBJ_INFO(0, obj, CairoSurface, 1)
6 ZEND_END_ARG_INFO()
7 #endif
9 PHP_METHOD(CairoContext, appendPath);
10 #if (PHP_MAJOR_VERSION >= 5)
11 ZEND_BEGIN_ARG_INFO_EX(CairoContext__append_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
12 ZEND_ARG_OBJ_INFO(0, p, CairoPath, 1)
13 ZEND_END_ARG_INFO()
14 #endif
16 PHP_METHOD(CairoContext, arc);
17 #if (PHP_MAJOR_VERSION >= 5)
18 ZEND_BEGIN_ARG_INFO_EX(CairoContext__arc_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 5)
19 ZEND_ARG_INFO(0, xc)
20 ZEND_ARG_INFO(0, yc)
21 ZEND_ARG_INFO(0, radius)
22 ZEND_ARG_INFO(0, angle1)
23 ZEND_ARG_INFO(0, angle2)
24 ZEND_END_ARG_INFO()
25 #endif
27 PHP_METHOD(CairoContext, arcNegative);
28 #if (PHP_MAJOR_VERSION >= 5)
29 ZEND_BEGIN_ARG_INFO_EX(CairoContext__arc_negative_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 5)
30 ZEND_ARG_INFO(0, xc)
31 ZEND_ARG_INFO(0, yc)
32 ZEND_ARG_INFO(0, radius)
33 ZEND_ARG_INFO(0, angle1)
34 ZEND_ARG_INFO(0, angle2)
35 ZEND_END_ARG_INFO()
36 #endif
38 PHP_METHOD(CairoContext, clip);
39 #if (PHP_MAJOR_VERSION >= 5)
40 ZEND_BEGIN_ARG_INFO_EX(CairoContext__clip_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
41 ZEND_END_ARG_INFO()
42 #endif
44 PHP_METHOD(CairoContext, clipExtents);
45 #if (PHP_MAJOR_VERSION >= 5)
46 ZEND_BEGIN_ARG_INFO_EX(CairoContext__clip_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
47 ZEND_END_ARG_INFO()
48 #endif
50 PHP_METHOD(CairoContext, clipPreserve);
51 #if (PHP_MAJOR_VERSION >= 5)
52 ZEND_BEGIN_ARG_INFO_EX(CairoContext__clip_preserve_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
53 ZEND_END_ARG_INFO()
54 #endif
56 PHP_METHOD(CairoContext, closePath);
57 #if (PHP_MAJOR_VERSION >= 5)
58 ZEND_BEGIN_ARG_INFO_EX(CairoContext__close_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
59 ZEND_END_ARG_INFO()
60 #endif
62 PHP_METHOD(CairoContext, copyClipRectangleList);
63 #if (PHP_MAJOR_VERSION >= 5)
64 ZEND_BEGIN_ARG_INFO_EX(CairoContext__copy_clip_rectangle_list_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
65 ZEND_END_ARG_INFO()
66 #endif
68 PHP_METHOD(CairoContext, copyPage);
69 #if (PHP_MAJOR_VERSION >= 5)
70 ZEND_BEGIN_ARG_INFO_EX(CairoContext__copy_page_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
71 ZEND_END_ARG_INFO()
72 #endif
74 PHP_METHOD(CairoContext, copyPath);
75 #if (PHP_MAJOR_VERSION >= 5)
76 ZEND_BEGIN_ARG_INFO_EX(CairoContext__copy_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
77 ZEND_END_ARG_INFO()
78 #endif
80 PHP_METHOD(CairoContext, copyPathFlat);
81 #if (PHP_MAJOR_VERSION >= 5)
82 ZEND_BEGIN_ARG_INFO_EX(CairoContext__copy_path_flat_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
83 ZEND_END_ARG_INFO()
84 #endif
86 PHP_METHOD(CairoContext, curveTo);
87 #if (PHP_MAJOR_VERSION >= 5)
88 ZEND_BEGIN_ARG_INFO_EX(CairoContext__curve_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 6)
89 ZEND_ARG_INFO(0, x1)
90 ZEND_ARG_INFO(0, y1)
91 ZEND_ARG_INFO(0, x2)
92 ZEND_ARG_INFO(0, y2)
93 ZEND_ARG_INFO(0, x3)
94 ZEND_ARG_INFO(0, y3)
95 ZEND_END_ARG_INFO()
96 #endif
98 PHP_METHOD(CairoContext, deviceToUser);
99 #if (PHP_MAJOR_VERSION >= 5)
100 ZEND_BEGIN_ARG_INFO_EX(CairoContext__device_to_user_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
101 ZEND_ARG_INFO(0, x)
102 ZEND_ARG_INFO(0, y)
103 ZEND_END_ARG_INFO()
104 #endif
106 PHP_METHOD(CairoContext, deviceToUserDistance);
107 #if (PHP_MAJOR_VERSION >= 5)
108 ZEND_BEGIN_ARG_INFO_EX(CairoContext__device_to_user_distance_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
109 ZEND_ARG_INFO(0, x)
110 ZEND_ARG_INFO(0, y)
111 ZEND_END_ARG_INFO()
112 #endif
114 PHP_METHOD(CairoContext, fill);
115 #if (PHP_MAJOR_VERSION >= 5)
116 ZEND_BEGIN_ARG_INFO_EX(CairoContext__fill_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
117 ZEND_END_ARG_INFO()
118 #endif
120 PHP_METHOD(CairoContext, fillExtents);
121 #if (PHP_MAJOR_VERSION >= 5)
122 ZEND_BEGIN_ARG_INFO_EX(CairoContext__fill_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
123 ZEND_END_ARG_INFO()
124 #endif
126 PHP_METHOD(CairoContext, fillPreserve);
127 #if (PHP_MAJOR_VERSION >= 5)
128 ZEND_BEGIN_ARG_INFO_EX(CairoContext__fill_preserve_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
129 ZEND_END_ARG_INFO()
130 #endif
132 PHP_METHOD(CairoContext, fontExtents);
133 #if (PHP_MAJOR_VERSION >= 5)
134 ZEND_BEGIN_ARG_INFO_EX(CairoContext__font_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
135 ZEND_END_ARG_INFO()
136 #endif
138 PHP_METHOD(CairoContext, getAntialias);
139 #if (PHP_MAJOR_VERSION >= 5)
140 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_antialias_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
141 ZEND_END_ARG_INFO()
142 #endif
144 PHP_METHOD(CairoContext, getCurrentPoint);
145 #if (PHP_MAJOR_VERSION >= 5)
146 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_current_point_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
147 ZEND_END_ARG_INFO()
148 #endif
150 PHP_METHOD(CairoContext, getDash);
151 #if (PHP_MAJOR_VERSION >= 5)
152 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_dash_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
153 ZEND_END_ARG_INFO()
154 #endif
156 PHP_METHOD(CairoContext, getDashCount);
157 #if (PHP_MAJOR_VERSION >= 5)
158 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_dash_count_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
159 ZEND_END_ARG_INFO()
160 #endif
162 PHP_METHOD(CairoContext, getFillRule);
163 #if (PHP_MAJOR_VERSION >= 5)
164 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_fill_rule_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
165 ZEND_END_ARG_INFO()
166 #endif
168 PHP_METHOD(CairoContext, getFontFace);
169 #if (PHP_MAJOR_VERSION >= 5)
170 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_font_face_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
171 ZEND_END_ARG_INFO()
172 #endif
174 PHP_METHOD(CairoContext, getFontMatrix);
175 #if (PHP_MAJOR_VERSION >= 5)
176 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_font_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
177 ZEND_END_ARG_INFO()
178 #endif
180 PHP_METHOD(CairoContext, getFontOptions);
181 #if (PHP_MAJOR_VERSION >= 5)
182 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_font_options_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
183 ZEND_END_ARG_INFO()
184 #endif
186 PHP_METHOD(CairoContext, getGroupTarget);
187 #if (PHP_MAJOR_VERSION >= 5)
188 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_group_target_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
189 ZEND_END_ARG_INFO()
190 #endif
192 PHP_METHOD(CairoContext, getLineCap);
193 #if (PHP_MAJOR_VERSION >= 5)
194 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_line_cap_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
195 ZEND_END_ARG_INFO()
196 #endif
198 PHP_METHOD(CairoContext, getLineJoin);
199 #if (PHP_MAJOR_VERSION >= 5)
200 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_line_join_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
201 ZEND_END_ARG_INFO()
202 #endif
204 PHP_METHOD(CairoContext, getLineWidth);
205 #if (PHP_MAJOR_VERSION >= 5)
206 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_line_width_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
207 ZEND_END_ARG_INFO()
208 #endif
210 PHP_METHOD(CairoContext, getMatrix);
211 #if (PHP_MAJOR_VERSION >= 5)
212 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
213 ZEND_END_ARG_INFO()
214 #endif
216 PHP_METHOD(CairoContext, getMiterLimit);
217 #if (PHP_MAJOR_VERSION >= 5)
218 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_miter_limit_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
219 ZEND_END_ARG_INFO()
220 #endif
222 PHP_METHOD(CairoContext, getOperator);
223 #if (PHP_MAJOR_VERSION >= 5)
224 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_operator_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
225 ZEND_END_ARG_INFO()
226 #endif
228 PHP_METHOD(CairoContext, getScaledFont);
229 #if (PHP_MAJOR_VERSION >= 5)
230 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_scaled_font_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
231 ZEND_END_ARG_INFO()
232 #endif
234 PHP_METHOD(CairoContext, getSource);
235 #if (PHP_MAJOR_VERSION >= 5)
236 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_source_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
237 ZEND_END_ARG_INFO()
238 #endif
240 PHP_METHOD(CairoContext, getTarget);
241 #if (PHP_MAJOR_VERSION >= 5)
242 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_target_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
243 ZEND_END_ARG_INFO()
244 #endif
246 PHP_METHOD(CairoContext, getTolerance);
247 #if (PHP_MAJOR_VERSION >= 5)
248 ZEND_BEGIN_ARG_INFO_EX(CairoContext__get_tolerance_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
249 ZEND_END_ARG_INFO()
250 #endif
252 PHP_METHOD(CairoContext, glyphExtents);
253 #if (PHP_MAJOR_VERSION >= 5)
254 ZEND_BEGIN_ARG_INFO_EX(CairoContext__glyph_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
255 #if (PHP_MINOR_VERSION > 0)
256 ZEND_ARG_ARRAY_INFO(0, obj, 1)
257 #else
258 ZEND_ARG_INFO(0, obj)
259 #endif
260 ZEND_ARG_INFO(0, num)
261 ZEND_END_ARG_INFO()
262 #endif
264 PHP_METHOD(CairoContext, glyphPath);
265 #if (PHP_MAJOR_VERSION >= 5)
266 ZEND_BEGIN_ARG_INFO_EX(CairoContext__glyph_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
267 #if (PHP_MINOR_VERSION > 0)
268 ZEND_ARG_ARRAY_INFO(0, obh, 1)
269 #else
270 ZEND_ARG_INFO(0, obh);
271 #endif
272 ZEND_ARG_INFO(0, num)
273 ZEND_END_ARG_INFO()
274 #endif
276 PHP_METHOD(CairoContext, hasCurrentPoint);
277 #if (PHP_MAJOR_VERSION >= 5)
278 ZEND_BEGIN_ARG_INFO_EX(CairoContext__has_current_point_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
279 ZEND_END_ARG_INFO()
280 #endif
282 PHP_METHOD(CairoContext, identityMatrix);
283 #if (PHP_MAJOR_VERSION >= 5)
284 ZEND_BEGIN_ARG_INFO_EX(CairoContext__identity_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
285 ZEND_END_ARG_INFO()
286 #endif
288 PHP_METHOD(CairoContext, inFill);
289 #if (PHP_MAJOR_VERSION >= 5)
290 ZEND_BEGIN_ARG_INFO_EX(CairoContext__in_fill_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
291 ZEND_ARG_INFO(0, x)
292 ZEND_ARG_INFO(0, y)
293 ZEND_END_ARG_INFO()
294 #endif
296 PHP_METHOD(CairoContext, inStroke);
297 #if (PHP_MAJOR_VERSION >= 5)
298 ZEND_BEGIN_ARG_INFO_EX(CairoContext__in_stroke_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
299 ZEND_ARG_INFO(0, x)
300 ZEND_ARG_INFO(0, y)
301 ZEND_END_ARG_INFO()
302 #endif
304 PHP_METHOD(CairoContext, lineTo);
305 #if (PHP_MAJOR_VERSION >= 5)
306 ZEND_BEGIN_ARG_INFO_EX(CairoContext__line_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
307 ZEND_ARG_INFO(0, x)
308 ZEND_ARG_INFO(0, y)
309 ZEND_END_ARG_INFO()
310 #endif
312 PHP_METHOD(CairoContext, mask);
313 #if (PHP_MAJOR_VERSION >= 5)
314 ZEND_BEGIN_ARG_INFO_EX(CairoContext__mask_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
315 ZEND_ARG_OBJ_INFO(0, p, CairoPattern, 1)
316 ZEND_END_ARG_INFO()
317 #endif
319 PHP_METHOD(CairoContext, maskSurface);
320 #if (PHP_MAJOR_VERSION >= 5)
321 ZEND_BEGIN_ARG_INFO_EX(CairoContext__mask_surface_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
322 ZEND_ARG_OBJ_INFO(0, s, CairoSurface, 1)
323 ZEND_ARG_INFO(0, surface_x)
324 ZEND_ARG_INFO(0, surface_y)
325 ZEND_END_ARG_INFO()
326 #endif
328 PHP_METHOD(CairoContext, moveTo);
329 #if (PHP_MAJOR_VERSION >= 5)
330 ZEND_BEGIN_ARG_INFO_EX(CairoContext__move_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
331 ZEND_ARG_INFO(0, x)
332 ZEND_ARG_INFO(0, y)
333 ZEND_END_ARG_INFO()
334 #endif
336 PHP_METHOD(CairoContext, newPath);
337 #if (PHP_MAJOR_VERSION >= 5)
338 ZEND_BEGIN_ARG_INFO_EX(CairoContext__new_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
339 ZEND_END_ARG_INFO()
340 #endif
342 PHP_METHOD(CairoContext, newSubPath);
343 #if (PHP_MAJOR_VERSION >= 5)
344 ZEND_BEGIN_ARG_INFO_EX(CairoContext__new_sub_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
345 ZEND_END_ARG_INFO()
346 #endif
348 PHP_METHOD(CairoContext, paint);
349 #if (PHP_MAJOR_VERSION >= 5)
350 ZEND_BEGIN_ARG_INFO_EX(CairoContext__paint_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
351 ZEND_END_ARG_INFO()
352 #endif
354 PHP_METHOD(CairoContext, paintWithAlpha);
355 #if (PHP_MAJOR_VERSION >= 5)
356 ZEND_BEGIN_ARG_INFO_EX(CairoContext__paint_with_alpha_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
357 ZEND_ARG_INFO(0, alpha)
358 ZEND_END_ARG_INFO()
359 #endif
361 PHP_METHOD(CairoContext, pathExtents);
362 #if (PHP_MAJOR_VERSION >= 5)
363 ZEND_BEGIN_ARG_INFO_EX(CairoContext__path_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
364 ZEND_ARG_OBJ_INFO(0, path, CairoPath, 1)
365 ZEND_END_ARG_INFO()
366 #endif
368 PHP_METHOD(CairoContext, popGroup);
369 #if (PHP_MAJOR_VERSION >= 5)
370 ZEND_BEGIN_ARG_INFO_EX(CairoContext__pop_group_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
371 ZEND_END_ARG_INFO()
372 #endif
374 PHP_METHOD(CairoContext, popGroupToSource);
375 #if (PHP_MAJOR_VERSION >= 5)
376 ZEND_BEGIN_ARG_INFO_EX(CairoContext__pop_group_to_source_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
377 ZEND_END_ARG_INFO()
378 #endif
380 PHP_METHOD(CairoContext, pushGroup);
381 #if (PHP_MAJOR_VERSION >= 5)
382 ZEND_BEGIN_ARG_INFO_EX(CairoContext__push_group_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
383 ZEND_END_ARG_INFO()
384 #endif
386 PHP_METHOD(CairoContext, pushGroupWithContent);
387 #if (PHP_MAJOR_VERSION >= 5)
388 ZEND_BEGIN_ARG_INFO_EX(CairoContext__push_group_with_content_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
389 ZEND_ARG_INFO(0, content)
390 ZEND_END_ARG_INFO()
391 #endif
393 PHP_METHOD(CairoContext, rectangle);
394 #if (PHP_MAJOR_VERSION >= 5)
395 ZEND_BEGIN_ARG_INFO_EX(CairoContext__rectangle_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 4)
396 ZEND_ARG_INFO(0, x)
397 ZEND_ARG_INFO(0, y)
398 ZEND_ARG_INFO(0, width)
399 ZEND_ARG_INFO(0, height)
400 ZEND_END_ARG_INFO()
401 #endif
403 PHP_METHOD(CairoContext, relCurveTo);
404 #if (PHP_MAJOR_VERSION >= 5)
405 ZEND_BEGIN_ARG_INFO_EX(CairoContext__rel_curve_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 6)
406 ZEND_ARG_INFO(0, x1)
407 ZEND_ARG_INFO(0, y1)
408 ZEND_ARG_INFO(0, x2)
409 ZEND_ARG_INFO(0, y2)
410 ZEND_ARG_INFO(0, x3)
411 ZEND_ARG_INFO(0, y3)
412 ZEND_END_ARG_INFO()
413 #endif
415 PHP_METHOD(CairoContext, relLineTo);
416 #if (PHP_MAJOR_VERSION >= 5)
417 ZEND_BEGIN_ARG_INFO_EX(CairoContext__rel_line_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
418 ZEND_ARG_INFO(0, x)
419 ZEND_ARG_INFO(0, y)
420 ZEND_END_ARG_INFO()
421 #endif
423 PHP_METHOD(CairoContext, relMoveTo);
424 #if (PHP_MAJOR_VERSION >= 5)
425 ZEND_BEGIN_ARG_INFO_EX(CairoContext__rel_move_to_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
426 ZEND_ARG_INFO(0, x)
427 ZEND_ARG_INFO(0, y)
428 ZEND_END_ARG_INFO()
429 #endif
431 PHP_METHOD(CairoContext, resetClip);
432 #if (PHP_MAJOR_VERSION >= 5)
433 ZEND_BEGIN_ARG_INFO_EX(CairoContext__reset_clip_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
434 ZEND_END_ARG_INFO()
435 #endif
437 PHP_METHOD(CairoContext, restore);
438 #if (PHP_MAJOR_VERSION >= 5)
439 ZEND_BEGIN_ARG_INFO_EX(CairoContext__restore_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
440 ZEND_END_ARG_INFO()
441 #endif
443 PHP_METHOD(CairoContext, rotate);
444 #if (PHP_MAJOR_VERSION >= 5)
445 ZEND_BEGIN_ARG_INFO_EX(CairoContext__rotate_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
446 ZEND_ARG_INFO(0, angle)
447 ZEND_END_ARG_INFO()
448 #endif
450 PHP_METHOD(CairoContext, save);
451 #if (PHP_MAJOR_VERSION >= 5)
452 ZEND_BEGIN_ARG_INFO_EX(CairoContext__save_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
453 ZEND_END_ARG_INFO()
454 #endif
456 PHP_METHOD(CairoContext, scale);
457 #if (PHP_MAJOR_VERSION >= 5)
458 ZEND_BEGIN_ARG_INFO_EX(CairoContext__scale_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
459 ZEND_ARG_INFO(0, x)
460 ZEND_ARG_INFO(0, y)
461 ZEND_END_ARG_INFO()
462 #endif
464 PHP_METHOD(CairoContext, selectFontFace);
465 #if (PHP_MAJOR_VERSION >= 5)
466 ZEND_BEGIN_ARG_INFO_EX(CairoContext__select_font_face_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
467 ZEND_ARG_INFO(0, family)
468 ZEND_ARG_INFO(0, slant)
469 ZEND_ARG_INFO(0, weight)
470 ZEND_END_ARG_INFO()
471 #endif
473 PHP_METHOD(CairoContext, setAntialias);
474 #if (PHP_MAJOR_VERSION >= 5)
475 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_antialias_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
476 ZEND_ARG_INFO(0, antialias)
477 ZEND_END_ARG_INFO()
478 #endif
480 PHP_METHOD(CairoContext, setDash);
481 #if (PHP_MAJOR_VERSION >= 5)
482 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_dash_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
483 #if (PHP_MINOR_VERSION > 0)
484 ZEND_ARG_ARRAY_INFO(0, dashes, 1)
485 #else
486 ZEND_ARG_INFO(0, dashes)
487 #endif
488 ZEND_ARG_INFO(0, num_dashes)
489 ZEND_ARG_INFO(0, offset)
490 ZEND_END_ARG_INFO()
491 #endif
493 PHP_METHOD(CairoContext, setFillRule);
494 #if (PHP_MAJOR_VERSION >= 5)
495 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_fill_rule_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
496 ZEND_ARG_INFO(0, fill_rule)
497 ZEND_END_ARG_INFO()
498 #endif
500 PHP_METHOD(CairoContext, setFontFace);
501 #if (PHP_MAJOR_VERSION >= 5)
502 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_font_face_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
503 ZEND_ARG_OBJ_INFO(0, obj, CairoFontFace, 1)
504 ZEND_END_ARG_INFO()
505 #endif
507 PHP_METHOD(CairoContext, setFontMatrix);
508 #if (PHP_MAJOR_VERSION >= 5)
509 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_font_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
510 ZEND_ARG_OBJ_INFO(0, matrix, CairoMatrix, 1)
511 ZEND_END_ARG_INFO()
512 #endif
514 PHP_METHOD(CairoContext, setFontOptions);
515 #if (PHP_MAJOR_VERSION >= 5)
516 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_font_options_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
517 ZEND_ARG_OBJ_INFO(0, options, CairoFontOptions, 1)
518 ZEND_END_ARG_INFO()
519 #endif
521 PHP_METHOD(CairoContext, setFontSize);
522 #if (PHP_MAJOR_VERSION >= 5)
523 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_font_size_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
524 ZEND_ARG_INFO(0, size)
525 ZEND_END_ARG_INFO()
526 #endif
528 PHP_METHOD(CairoContext, setLineCap);
529 #if (PHP_MAJOR_VERSION >= 5)
530 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_line_cap_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
531 ZEND_ARG_INFO(0, line_cap)
532 ZEND_END_ARG_INFO()
533 #endif
535 PHP_METHOD(CairoContext, setLineJoin);
536 #if (PHP_MAJOR_VERSION >= 5)
537 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_line_join_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
538 ZEND_ARG_INFO(0, line_join)
539 ZEND_END_ARG_INFO()
540 #endif
542 PHP_METHOD(CairoContext, setLineWidth);
543 #if (PHP_MAJOR_VERSION >= 5)
544 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_line_width_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
545 ZEND_ARG_INFO(0, width)
546 ZEND_END_ARG_INFO()
547 #endif
549 PHP_METHOD(CairoContext, setMatrix);
550 #if (PHP_MAJOR_VERSION >= 5)
551 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_matrix_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
552 ZEND_ARG_OBJ_INFO(0, matix, CairoMatrix, 1)
553 ZEND_END_ARG_INFO()
554 #endif
556 PHP_METHOD(CairoContext, setMiterLimit);
557 #if (PHP_MAJOR_VERSION >= 5)
558 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_miter_limit_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
559 ZEND_ARG_INFO(0, limit)
560 ZEND_END_ARG_INFO()
561 #endif
563 PHP_METHOD(CairoContext, setOperator);
564 #if (PHP_MAJOR_VERSION >= 5)
565 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_operator_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
566 ZEND_ARG_INFO(0, op)
567 ZEND_END_ARG_INFO()
568 #endif
570 PHP_METHOD(CairoContext, setSource);
571 #if (PHP_MAJOR_VERSION >= 5)
572 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_source_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
573 ZEND_ARG_OBJ_INFO(0, p, CairoPattern, 1)
574 ZEND_END_ARG_INFO()
575 #endif
577 PHP_METHOD(CairoContext, setSourceRgb);
578 #if (PHP_MAJOR_VERSION >= 5)
579 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_source_rgb_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 3)
580 ZEND_ARG_INFO(0, red)
581 ZEND_ARG_INFO(0, green)
582 ZEND_ARG_INFO(0, blue)
583 ZEND_END_ARG_INFO()
584 #endif
586 PHP_METHOD(CairoContext, setSourceRgba);
587 #if (PHP_MAJOR_VERSION >= 5)
588 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_source_rgba_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 3)
589 ZEND_ARG_INFO(0, red)
590 ZEND_ARG_INFO(0, green)
591 ZEND_ARG_INFO(0, blue)
592 ZEND_ARG_INFO(0, alpha)
593 ZEND_END_ARG_INFO()
594 #endif
596 PHP_METHOD(CairoContext, setSourceSurface);
597 #if (PHP_MAJOR_VERSION >= 5)
598 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_source_surface_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
599 ZEND_ARG_OBJ_INFO(0, surface, CairoSurface, 1)
600 ZEND_ARG_INFO(0, x)
601 ZEND_ARG_INFO(0, y)
602 ZEND_END_ARG_INFO()
603 #endif
605 PHP_METHOD(CairoContext, setTolerance);
606 #if (PHP_MAJOR_VERSION >= 5)
607 ZEND_BEGIN_ARG_INFO_EX(CairoContext__set_tolerance_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
608 ZEND_ARG_INFO(0, tolerance)
609 ZEND_END_ARG_INFO()
610 #endif
612 PHP_METHOD(CairoContext, showGlyphs);
613 #if (PHP_MAJOR_VERSION >= 5)
614 ZEND_BEGIN_ARG_INFO_EX(CairoContext__show_glyphs_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
615 #if (PHP_MINOR_VERSION > 0)
616 ZEND_ARG_ARRAY_INFO(0, obj, 1)
617 #else
618 ZEND_ARG_INFO(0, obj)
619 #endif
620 ZEND_ARG_INFO(0, num_glyphs)
621 ZEND_END_ARG_INFO()
622 #endif
624 PHP_METHOD(CairoContext, showPage);
625 #if (PHP_MAJOR_VERSION >= 5)
626 ZEND_BEGIN_ARG_INFO_EX(CairoContext__show_page_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
627 ZEND_END_ARG_INFO()
628 #endif
630 PHP_METHOD(CairoContext, showText);
631 #if (PHP_MAJOR_VERSION >= 5)
632 ZEND_BEGIN_ARG_INFO_EX(CairoContext__show_text_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
633 ZEND_ARG_INFO(0, obj)
634 ZEND_END_ARG_INFO()
635 #endif
637 PHP_METHOD(CairoContext, stroke);
638 #if (PHP_MAJOR_VERSION >= 5)
639 ZEND_BEGIN_ARG_INFO_EX(CairoContext__stroke_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
640 ZEND_END_ARG_INFO()
641 #endif
643 PHP_METHOD(CairoContext, strokeExtents);
644 #if (PHP_MAJOR_VERSION >= 5)
645 ZEND_BEGIN_ARG_INFO_EX(CairoContext__stroke_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
646 ZEND_END_ARG_INFO()
647 #endif
649 PHP_METHOD(CairoContext, strokePreserve);
650 #if (PHP_MAJOR_VERSION >= 5)
651 ZEND_BEGIN_ARG_INFO_EX(CairoContext__stroke_preserve_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
652 ZEND_END_ARG_INFO()
653 #endif
655 PHP_METHOD(CairoContext, textExtents);
656 #if (PHP_MAJOR_VERSION >= 5)
657 ZEND_BEGIN_ARG_INFO_EX(CairoContext__text_extents_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
658 ZEND_ARG_INFO(0, str)
659 ZEND_END_ARG_INFO()
660 #endif
662 PHP_METHOD(CairoContext, textPath);
663 #if (PHP_MAJOR_VERSION >= 5)
664 ZEND_BEGIN_ARG_INFO_EX(CairoContext__text_path_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
665 ZEND_ARG_INFO(0, obj)
666 ZEND_END_ARG_INFO()
667 #endif
669 PHP_METHOD(CairoContext, transform);
670 #if (PHP_MAJOR_VERSION >= 5)
671 ZEND_BEGIN_ARG_INFO_EX(CairoContext__transform_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
672 ZEND_ARG_OBJ_INFO(0, matrix, CairoMatrix, 1)
673 ZEND_END_ARG_INFO()
674 #endif
676 PHP_METHOD(CairoContext, translate);
677 #if (PHP_MAJOR_VERSION >= 5)
678 ZEND_BEGIN_ARG_INFO_EX(CairoContext__translate_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
679 ZEND_ARG_INFO(0, tx)
680 ZEND_ARG_INFO(0, ty)
681 ZEND_END_ARG_INFO()
682 #endif
684 PHP_METHOD(CairoContext, userToDevice);
685 #if (PHP_MAJOR_VERSION >= 5)
686 ZEND_BEGIN_ARG_INFO_EX(CairoContext__user_to_device_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
687 ZEND_ARG_INFO(0, x)
688 ZEND_ARG_INFO(0, y)
689 ZEND_END_ARG_INFO()
690 #endif
692 PHP_METHOD(CairoContext, userToDeviceDistance);
693 #if (PHP_MAJOR_VERSION >= 5)
694 ZEND_BEGIN_ARG_INFO_EX(CairoContext__user_to_device_distance_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
695 ZEND_ARG_INFO(0, dx)
696 ZEND_ARG_INFO(0, dy)
697 ZEND_END_ARG_INFO()
698 #endif