Changed the entire file structure to remove the .c includes from cairo.c
[phpCairo.git] / src / cairo / CairoSurface.h
bloba39756a86d7a0ec683de2130c8130162605f6e35
1 PHP_METHOD(CairoSurface, __construct);
2 #if (PHP_MAJOR_VERSION >= 5)
3 ZEND_BEGIN_ARG_INFO_EX(CairoSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
4 ZEND_END_ARG_INFO()
5 #endif
7 PHP_METHOD(CairoSurface, createSimilar);
8 #if (PHP_MAJOR_VERSION >= 5)
9 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__create_similar_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 3)
10 ZEND_ARG_INFO(0, content)
11 ZEND_ARG_INFO(0, width)
12 ZEND_ARG_INFO(0, height)
13 ZEND_END_ARG_INFO()
14 #endif
16 PHP_METHOD(CairoSurface, finish);
17 #if (PHP_MAJOR_VERSION >= 5)
18 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__finish_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
19 ZEND_END_ARG_INFO()
20 #endif
22 PHP_METHOD(CairoSurface, flush);
23 #if (PHP_MAJOR_VERSION >= 5)
24 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__flush_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
25 ZEND_END_ARG_INFO()
26 #endif
28 PHP_METHOD(CairoSurface, getContent);
29 #if (PHP_MAJOR_VERSION >= 5)
30 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__get_content_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
31 ZEND_END_ARG_INFO()
32 #endif
34 PHP_METHOD(CairoSurface, getDeviceOffset);
35 #if (PHP_MAJOR_VERSION >= 5)
36 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__get_device_offset_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
37 ZEND_END_ARG_INFO()
38 #endif
40 PHP_METHOD(CairoSurface, getFontOptions);
41 #if (PHP_MAJOR_VERSION >= 5)
42 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__get_font_options_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
43 ZEND_END_ARG_INFO()
44 #endif
46 PHP_METHOD(CairoSurface, markDirtyRectangle);
47 #if (PHP_MAJOR_VERSION >= 5)
48 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__mark_dirty_rectangle_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
49 ZEND_ARG_INFO(0, x)
50 ZEND_ARG_INFO(0, y)
51 ZEND_ARG_INFO(0, width)
52 ZEND_ARG_INFO(0, height)
53 ZEND_END_ARG_INFO()
54 #endif
56 PHP_METHOD(CairoSurface, setDeviceOffset);
57 #if (PHP_MAJOR_VERSION >= 5)
58 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__set_device_offset_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
59 ZEND_ARG_INFO(0, x_offset)
60 ZEND_ARG_INFO(0, y_offset)
61 ZEND_END_ARG_INFO()
62 #endif
64 PHP_METHOD(CairoSurface, setFallbackResolution);
65 #if (PHP_MAJOR_VERSION >= 5)
66 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__set_fallback_resolution_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
67 ZEND_ARG_INFO(0, x_ppi)
68 ZEND_ARG_INFO(0, y_ppi)
69 ZEND_END_ARG_INFO()
70 #endif
72 PHP_METHOD(CairoSurface, writeToPng);
73 #if (PHP_MAJOR_VERSION >= 5)
74 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__write_to_png_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
75 ZEND_ARG_INFO(0, file)
76 ZEND_END_ARG_INFO()
77 #endif
79 PHP_METHOD(CairoSurface, writeToPngStream);
80 #if (PHP_MAJOR_VERSION >=5)
81 ZEND_BEGIN_ARG_INFO_EX(CairoSurface__write_to_png_stream_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
82 ZEND_ARG_INFO(0, zstream)
83 ZEND_END_ARG_INFO()
84 #endif
86 PHP_METHOD(CairoImageSurface, __construct);
87 #if (PHP_MAJOR_VERSION >= 5)
88 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
89 ZEND_ARG_INFO(0, widthm)
90 ZEND_ARG_INFO(0, height)
91 ZEND_END_ARG_INFO()
92 #endif
94 PHP_METHOD(CairoImageSurface, createFromData);
95 #if (PHP_MAJOR_VERSION >= 5)
96 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__create_from_data_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 4)
97 ZEND_ARG_INFO(0, obj)
98 ZEND_ARG_INFO(0, format)
99 ZEND_ARG_INFO(0, width)
100 ZEND_ARG_INFO(0, height)
101 ZEND_ARG_INFO(0, stride)
102 ZEND_END_ARG_INFO()
103 #endif
105 PHP_METHOD(CairoImageSurface, createFromPng);
106 #if (PHP_MAJOR_VERSION >= 5)
107 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__create_from_png_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
108 ZEND_ARG_INFO(0, file)
109 ZEND_END_ARG_INFO()
110 #endif
113 PHP_METHOD(CairoImageSurface, createFromPngStream);
114 #if (PHP_MAJOR_VERSION >= 5)
115 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__create_from_png_stream_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
116 ZEND_ARG_INFO(0, zstream)
117 ZEND_END_ARG_INFO()
118 #endif
120 PHP_METHOD(CairoImageSurface, getData);
121 #if (PHP_MAJOR_VERSION >= 5)
122 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_data_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
123 ZEND_END_ARG_INFO()
124 #endif
126 PHP_METHOD(CairoImageSurface, getFormat);
127 #if (PHP_MAJOR_VERSION >= 5)
128 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_format_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
129 ZEND_END_ARG_INFO()
130 #endif
132 PHP_METHOD(CairoImageSurface, getHeight);
133 #if (PHP_MAJOR_VERSION >= 5)
134 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_height_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
135 ZEND_END_ARG_INFO()
136 #endif
138 PHP_METHOD(CairoImageSurface, getStride);
139 #if (PHP_MAJOR_VERSION >= 5)
140 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_stride_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
141 ZEND_END_ARG_INFO()
142 #endif
144 PHP_METHOD(CairoImageSurface, getWidth);
145 #if (PHP_MAJOR_VERSION >= 5)
146 ZEND_BEGIN_ARG_INFO_EX(CairoImageSurface__get_width_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
147 ZEND_END_ARG_INFO()
148 #endif
150 PHP_METHOD(CairoPDFSurface, __construct);
151 #if (PHP_MAJOR_VERSION >= 5)
152 ZEND_BEGIN_ARG_INFO_EX(CairoPDFSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
153 ZEND_ARG_INFO(0, wpts)
154 ZEND_ARG_INFO(0, hpts)
155 ZEND_END_ARG_INFO()
156 #endif
158 PHP_METHOD(CairoPDFSurface, setSize);
159 #if (PHP_MAJOR_VERSION >= 5)
160 ZEND_BEGIN_ARG_INFO_EX(CairoPDFSurface__set_size_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
161 ZEND_ARG_INFO(0, wpts)
162 ZEND_ARG_INFO(0, hpts)
163 ZEND_END_ARG_INFO()
164 #endif
166 PHP_METHOD(CairoPSSurface, __construct);
167 #if (PHP_MAJOR_VERSION >= 5)
168 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
169 ZEND_ARG_INFO(0, wpts)
170 ZEND_ARG_INFO(0, hpts)
171 ZEND_END_ARG_INFO()
172 #endif
174 PHP_METHOD(CairoPSSurface, dscBeginPageSetup);
175 #if (PHP_MAJOR_VERSION >= 5)
176 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__dsc_begin_page_setup_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
177 ZEND_END_ARG_INFO()
178 #endif
180 PHP_METHOD(CairoPSSurface, dscBeginSetup);
181 #if (PHP_MAJOR_VERSION >= 5)
182 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__dsc_begin_setup_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
183 ZEND_END_ARG_INFO()
184 #endif
186 PHP_METHOD(CairoPSSurface, dscComment);
187 #if (PHP_MAJOR_VERSION >= 5)
188 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__dsc_comment_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
189 ZEND_END_ARG_INFO()
190 #endif
192 PHP_METHOD(CairoPSSurface, getLevels);
193 #if (PHP_MAJOR_VERSION >= 5)
194 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__get_levels_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
195 ZEND_END_ARG_INFO()
196 #endif
198 PHP_METHOD(CairoPSSurface, getLevelString);
199 #if (PHP_MAJOR_VERSION >= 5)
200 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__get_level_string_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
201 ZEND_END_ARG_INFO()
202 #endif
204 PHP_METHOD(CairoPSSurface, restrictToLevel);
205 #if (PHP_MAJOR_VERSION >= 5)
206 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__restrict_to_level_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
207 ZEND_ARG_INFO(0, level)
208 ZEND_END_ARG_INFO()
209 #endif
211 PHP_METHOD(CairoPSSurface, setEps);
212 #if (PHP_MAJOR_VERSION >= 5)
213 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__set_eps_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
214 ZEND_END_ARG_INFO()
215 #endif
217 PHP_METHOD(CairoPSSurface, setSize);
218 #if (PHP_MAJOR_VERSION >= 5)
219 ZEND_BEGIN_ARG_INFO_EX(CairoPSSurface__set_size_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
220 ZEND_ARG_INFO(0, wpts)
221 ZEND_ARG_INFO(0, hpts)
222 ZEND_END_ARG_INFO()
223 #endif
225 PHP_METHOD(CairoQuartzSurface, __construct);
226 #if (PHP_MAJOR_VERSION >= 5)
227 ZEND_BEGIN_ARG_INFO_EX(CairoQuartzSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
228 ZEND_ARG_INFO(0, hpixels)
229 ZEND_ARG_INFO(0, format)
230 ZEND_END_ARG_INFO()
231 #endif
233 PHP_METHOD(CairoSVGSurface, __construct);
234 #if (PHP_MAJOR_VERSION >= 5)
235 ZEND_BEGIN_ARG_INFO_EX(CairoSVGSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 2)
236 ZEND_ARG_INFO(0, wpts)
237 ZEND_ARG_INFO(0, hpts)
238 ZEND_END_ARG_INFO()
239 #endif
241 PHP_METHOD(CairoWin32Surface, __construct);
242 #if (PHP_MAJOR_VERSION >= 5)
243 ZEND_BEGIN_ARG_INFO_EX(CairoWin32Surface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
244 ZEND_END_ARG_INFO()
245 #endif
247 PHP_METHOD(CairoXlibSurface, __construct);
248 #if (PHP_MAJOR_VERSION >= 5)
249 ZEND_BEGIN_ARG_INFO_EX(CairoXlibSurface____construct_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
250 ZEND_END_ARG_INFO()
251 #endif
253 PHP_METHOD(CairoXlibSurface, getDepth);
254 #if (PHP_MAJOR_VERSION >= 5)
255 ZEND_BEGIN_ARG_INFO_EX(CairoXlibSurface__get_depth_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
256 ZEND_END_ARG_INFO()
257 #endif
259 PHP_METHOD(CairoXlibSurface, getHeight);
260 #if (PHP_MAJOR_VERSION >= 5)
261 ZEND_BEGIN_ARG_INFO_EX(CairoXlibSurface__get_height_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
262 ZEND_END_ARG_INFO()
263 #endif
265 PHP_METHOD(CairoXlibSurface, getWidth);
266 #if (PHP_MAJOR_VERSION >= 5)
267 ZEND_BEGIN_ARG_INFO_EX(CairoXlibSurface__get_width_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
268 ZEND_END_ARG_INFO()
269 #endif