3 ** Generated automatically by tolua++-1.0.93 on Thu Mar 25 13:31:24 2010.
13 /* Exported function */
14 TOLUA_API int tolua_cairo_open (lua_State* tolua_S);
16 #include <cairo-features.h>
17 #include <cairo-deprecated.h>
19 #include <cairo-xlib.h>
21 #include "libcairo-helper.h"
23 /* function to release collected object via destructor */
26 static int tolua_collect_cairo_user_scaled_font_render_glyph_func_t (lua_State* tolua_S)
28 cairo_user_scaled_font_render_glyph_func_t* self = (cairo_user_scaled_font_render_glyph_func_t*) tolua_tousertype(tolua_S,1,0);
33 static int tolua_collect_Drawable (lua_State* tolua_S)
35 Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
40 static int tolua_collect_cairo_user_scaled_font_init_func_t (lua_State* tolua_S)
42 cairo_user_scaled_font_init_func_t* self = (cairo_user_scaled_font_init_func_t*) tolua_tousertype(tolua_S,1,0);
47 static int tolua_collect_cairo_user_scaled_font_text_to_glyphs_func_t (lua_State* tolua_S)
49 cairo_user_scaled_font_text_to_glyphs_func_t* self = (cairo_user_scaled_font_text_to_glyphs_func_t*) tolua_tousertype(tolua_S,1,0);
54 static int tolua_collect_cairo_user_scaled_font_unicode_to_glyph_func_t (lua_State* tolua_S)
56 cairo_user_scaled_font_unicode_to_glyph_func_t* self = (cairo_user_scaled_font_unicode_to_glyph_func_t*) tolua_tousertype(tolua_S,1,0);
63 /* function to register type */
64 static void tolua_reg_types (lua_State* tolua_S)
66 tolua_usertype(tolua_S,"cairo_text_cluster_t");
67 tolua_usertype(tolua_S,"cairo_user_scaled_font_init_func_t");
68 tolua_usertype(tolua_S,"Screen");
69 tolua_usertype(tolua_S,"cairo_read_func_t");
70 tolua_usertype(tolua_S,"cairo_write_func_t");
71 tolua_usertype(tolua_S,"_cairo_surface");
72 tolua_usertype(tolua_S,"Drawable");
73 tolua_usertype(tolua_S,"_cairo_font_options");
74 tolua_usertype(tolua_S,"cairo_path_t");
75 tolua_usertype(tolua_S,"cairo_user_scaled_font_unicode_to_glyph_func_t");
76 tolua_usertype(tolua_S,"_cairo_pattern");
77 tolua_usertype(tolua_S,"cairo_destroy_func_t");
78 tolua_usertype(tolua_S,"Visual");
79 tolua_usertype(tolua_S,"cairo_text_extents_t");
80 tolua_usertype(tolua_S,"_cairo_path_data_t");
81 tolua_usertype(tolua_S,"cairo_user_scaled_font_render_glyph_func_t");
82 tolua_usertype(tolua_S,"_cairo_scaled_font");
83 tolua_usertype(tolua_S,"_cairo_font_face");
84 tolua_usertype(tolua_S,"cairo_user_scaled_font_text_to_glyphs_func_t");
85 tolua_usertype(tolua_S,"cairo_rectangle_list_t");
86 tolua_usertype(tolua_S,"Pixmap");
87 tolua_usertype(tolua_S,"cairo_font_extents_t");
88 tolua_usertype(tolua_S,"_cairo");
89 tolua_usertype(tolua_S,"cairo_rectangle_t");
90 tolua_usertype(tolua_S,"Display");
91 tolua_usertype(tolua_S,"cairo_user_data_key_t");
92 tolua_usertype(tolua_S,"cairo_matrix_t");
93 tolua_usertype(tolua_S,"cairo_glyph_t");
96 /* get function: xx of class cairo_matrix_t */
97 #ifndef TOLUA_DISABLE_tolua_get_cairo_matrix_t_xx
98 static int tolua_get_cairo_matrix_t_xx(lua_State* tolua_S)
100 cairo_matrix_t* self = (cairo_matrix_t*) tolua_tousertype(tolua_S,1,0);
101 #ifndef TOLUA_RELEASE
102 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'xx'",NULL);
104 tolua_pushnumber(tolua_S,(lua_Number)self->xx);
107 #endif //#ifndef TOLUA_DISABLE
109 /* set function: xx of class cairo_matrix_t */
110 #ifndef TOLUA_DISABLE_tolua_set_cairo_matrix_t_xx
111 static int tolua_set_cairo_matrix_t_xx(lua_State* tolua_S)
113 cairo_matrix_t* self = (cairo_matrix_t*) tolua_tousertype(tolua_S,1,0);
114 #ifndef TOLUA_RELEASE
115 tolua_Error tolua_err;
116 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'xx'",NULL);
117 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
118 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
120 self->xx = ((double) tolua_tonumber(tolua_S,2,0))
124 #endif //#ifndef TOLUA_DISABLE
126 /* get function: yx of class cairo_matrix_t */
127 #ifndef TOLUA_DISABLE_tolua_get_cairo_matrix_t_yx
128 static int tolua_get_cairo_matrix_t_yx(lua_State* tolua_S)
130 cairo_matrix_t* self = (cairo_matrix_t*) tolua_tousertype(tolua_S,1,0);
131 #ifndef TOLUA_RELEASE
132 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'yx'",NULL);
134 tolua_pushnumber(tolua_S,(lua_Number)self->yx);
137 #endif //#ifndef TOLUA_DISABLE
139 /* set function: yx of class cairo_matrix_t */
140 #ifndef TOLUA_DISABLE_tolua_set_cairo_matrix_t_yx
141 static int tolua_set_cairo_matrix_t_yx(lua_State* tolua_S)
143 cairo_matrix_t* self = (cairo_matrix_t*) tolua_tousertype(tolua_S,1,0);
144 #ifndef TOLUA_RELEASE
145 tolua_Error tolua_err;
146 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'yx'",NULL);
147 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
148 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
150 self->yx = ((double) tolua_tonumber(tolua_S,2,0))
154 #endif //#ifndef TOLUA_DISABLE
156 /* get function: xy of class cairo_matrix_t */
157 #ifndef TOLUA_DISABLE_tolua_get_cairo_matrix_t_xy
158 static int tolua_get_cairo_matrix_t_xy(lua_State* tolua_S)
160 cairo_matrix_t* self = (cairo_matrix_t*) tolua_tousertype(tolua_S,1,0);
161 #ifndef TOLUA_RELEASE
162 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'xy'",NULL);
164 tolua_pushnumber(tolua_S,(lua_Number)self->xy);
167 #endif //#ifndef TOLUA_DISABLE
169 /* set function: xy of class cairo_matrix_t */
170 #ifndef TOLUA_DISABLE_tolua_set_cairo_matrix_t_xy
171 static int tolua_set_cairo_matrix_t_xy(lua_State* tolua_S)
173 cairo_matrix_t* self = (cairo_matrix_t*) tolua_tousertype(tolua_S,1,0);
174 #ifndef TOLUA_RELEASE
175 tolua_Error tolua_err;
176 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'xy'",NULL);
177 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
178 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
180 self->xy = ((double) tolua_tonumber(tolua_S,2,0))
184 #endif //#ifndef TOLUA_DISABLE
186 /* get function: yy of class cairo_matrix_t */
187 #ifndef TOLUA_DISABLE_tolua_get_cairo_matrix_t_yy
188 static int tolua_get_cairo_matrix_t_yy(lua_State* tolua_S)
190 cairo_matrix_t* self = (cairo_matrix_t*) tolua_tousertype(tolua_S,1,0);
191 #ifndef TOLUA_RELEASE
192 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'yy'",NULL);
194 tolua_pushnumber(tolua_S,(lua_Number)self->yy);
197 #endif //#ifndef TOLUA_DISABLE
199 /* set function: yy of class cairo_matrix_t */
200 #ifndef TOLUA_DISABLE_tolua_set_cairo_matrix_t_yy
201 static int tolua_set_cairo_matrix_t_yy(lua_State* tolua_S)
203 cairo_matrix_t* self = (cairo_matrix_t*) tolua_tousertype(tolua_S,1,0);
204 #ifndef TOLUA_RELEASE
205 tolua_Error tolua_err;
206 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'yy'",NULL);
207 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
208 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
210 self->yy = ((double) tolua_tonumber(tolua_S,2,0))
214 #endif //#ifndef TOLUA_DISABLE
216 /* get function: x0 of class cairo_matrix_t */
217 #ifndef TOLUA_DISABLE_tolua_get_cairo_matrix_t_x0
218 static int tolua_get_cairo_matrix_t_x0(lua_State* tolua_S)
220 cairo_matrix_t* self = (cairo_matrix_t*) tolua_tousertype(tolua_S,1,0);
221 #ifndef TOLUA_RELEASE
222 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x0'",NULL);
224 tolua_pushnumber(tolua_S,(lua_Number)self->x0);
227 #endif //#ifndef TOLUA_DISABLE
229 /* set function: x0 of class cairo_matrix_t */
230 #ifndef TOLUA_DISABLE_tolua_set_cairo_matrix_t_x0
231 static int tolua_set_cairo_matrix_t_x0(lua_State* tolua_S)
233 cairo_matrix_t* self = (cairo_matrix_t*) tolua_tousertype(tolua_S,1,0);
234 #ifndef TOLUA_RELEASE
235 tolua_Error tolua_err;
236 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x0'",NULL);
237 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
238 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
240 self->x0 = ((double) tolua_tonumber(tolua_S,2,0))
244 #endif //#ifndef TOLUA_DISABLE
246 /* get function: y0 of class cairo_matrix_t */
247 #ifndef TOLUA_DISABLE_tolua_get_cairo_matrix_t_y0
248 static int tolua_get_cairo_matrix_t_y0(lua_State* tolua_S)
250 cairo_matrix_t* self = (cairo_matrix_t*) tolua_tousertype(tolua_S,1,0);
251 #ifndef TOLUA_RELEASE
252 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y0'",NULL);
254 tolua_pushnumber(tolua_S,(lua_Number)self->y0);
257 #endif //#ifndef TOLUA_DISABLE
259 /* set function: y0 of class cairo_matrix_t */
260 #ifndef TOLUA_DISABLE_tolua_set_cairo_matrix_t_y0
261 static int tolua_set_cairo_matrix_t_y0(lua_State* tolua_S)
263 cairo_matrix_t* self = (cairo_matrix_t*) tolua_tousertype(tolua_S,1,0);
264 #ifndef TOLUA_RELEASE
265 tolua_Error tolua_err;
266 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y0'",NULL);
267 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
268 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
270 self->y0 = ((double) tolua_tonumber(tolua_S,2,0))
274 #endif //#ifndef TOLUA_DISABLE
276 /* method: create_cairo_matrix_t of class cairo_matrix_t */
277 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_matrix_t_create00
278 static int tolua_cairo_cairo_matrix_t_create00(lua_State* tolua_S)
280 #ifndef TOLUA_RELEASE
281 tolua_Error tolua_err;
283 !tolua_isusertable(tolua_S,1,"cairo_matrix_t",0,&tolua_err) ||
284 !tolua_isnoobj(tolua_S,2,&tolua_err)
291 tolua_outside cairo_matrix_t* tolua_ret = (tolua_outside cairo_matrix_t*) create_cairo_matrix_t();
292 tolua_pushusertype(tolua_S,(void*)tolua_ret,"cairo_matrix_t");
296 #ifndef TOLUA_RELEASE
298 tolua_error(tolua_S,"#ferror in function 'create'.",&tolua_err);
302 #endif //#ifndef TOLUA_DISABLE
304 /* get function: unused of class cairo_user_data_key_t */
305 #ifndef TOLUA_DISABLE_tolua_get_cairo_user_data_key_t_unused
306 static int tolua_get_cairo_user_data_key_t_unused(lua_State* tolua_S)
308 cairo_user_data_key_t* self = (cairo_user_data_key_t*) tolua_tousertype(tolua_S,1,0);
309 #ifndef TOLUA_RELEASE
310 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'unused'",NULL);
312 tolua_pushnumber(tolua_S,(lua_Number)self->unused);
315 #endif //#ifndef TOLUA_DISABLE
317 /* set function: unused of class cairo_user_data_key_t */
318 #ifndef TOLUA_DISABLE_tolua_set_cairo_user_data_key_t_unused
319 static int tolua_set_cairo_user_data_key_t_unused(lua_State* tolua_S)
321 cairo_user_data_key_t* self = (cairo_user_data_key_t*) tolua_tousertype(tolua_S,1,0);
322 #ifndef TOLUA_RELEASE
323 tolua_Error tolua_err;
324 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'unused'",NULL);
325 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
326 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
328 self->unused = ((int) tolua_tonumber(tolua_S,2,0))
332 #endif //#ifndef TOLUA_DISABLE
334 /* function: cairo_xlib_surface_create */
335 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_xlib_surface_create00
336 static int tolua_cairo_cairo_xlib_surface_create00(lua_State* tolua_S)
338 #ifndef TOLUA_RELEASE
339 tolua_Error tolua_err;
341 !tolua_isusertype(tolua_S,1,"Display",0,&tolua_err) ||
342 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Drawable",0,&tolua_err)) ||
343 !tolua_isusertype(tolua_S,3,"Visual",0,&tolua_err) ||
344 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
345 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
346 !tolua_isnoobj(tolua_S,6,&tolua_err)
352 Display* dpy = ((Display*) tolua_tousertype(tolua_S,1,0));
353 Drawable drawable = *((Drawable*) tolua_tousertype(tolua_S,2,0));
354 Visual* visual = ((Visual*) tolua_tousertype(tolua_S,3,0));
355 int width = ((int) tolua_tonumber(tolua_S,4,0));
356 int height = ((int) tolua_tonumber(tolua_S,5,0));
358 struct _cairo_surface* tolua_ret = ( struct _cairo_surface*) cairo_xlib_surface_create(dpy,drawable,visual,width,height);
359 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_surface");
363 #ifndef TOLUA_RELEASE
365 tolua_error(tolua_S,"#ferror in function 'cairo_xlib_surface_create'.",&tolua_err);
369 #endif //#ifndef TOLUA_DISABLE
371 /* function: cairo_xlib_surface_create_for_bitmap */
372 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_xlib_surface_create_for_bitmap00
373 static int tolua_cairo_cairo_xlib_surface_create_for_bitmap00(lua_State* tolua_S)
375 #ifndef TOLUA_RELEASE
376 tolua_Error tolua_err;
378 !tolua_isusertype(tolua_S,1,"Display",0,&tolua_err) ||
379 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Pixmap",0,&tolua_err)) ||
380 !tolua_isusertype(tolua_S,3,"Screen",0,&tolua_err) ||
381 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
382 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
383 !tolua_isnoobj(tolua_S,6,&tolua_err)
389 Display* dpy = ((Display*) tolua_tousertype(tolua_S,1,0));
390 Pixmap bitmap = *((Pixmap*) tolua_tousertype(tolua_S,2,0));
391 Screen* screen = ((Screen*) tolua_tousertype(tolua_S,3,0));
392 int width = ((int) tolua_tonumber(tolua_S,4,0));
393 int height = ((int) tolua_tonumber(tolua_S,5,0));
395 struct _cairo_surface* tolua_ret = ( struct _cairo_surface*) cairo_xlib_surface_create_for_bitmap(dpy,bitmap,screen,width,height);
396 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_surface");
400 #ifndef TOLUA_RELEASE
402 tolua_error(tolua_S,"#ferror in function 'cairo_xlib_surface_create_for_bitmap'.",&tolua_err);
406 #endif //#ifndef TOLUA_DISABLE
408 /* function: cairo_xlib_surface_set_size */
409 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_xlib_surface_set_size00
410 static int tolua_cairo_cairo_xlib_surface_set_size00(lua_State* tolua_S)
412 #ifndef TOLUA_RELEASE
413 tolua_Error tolua_err;
415 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
416 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
417 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
418 !tolua_isnoobj(tolua_S,4,&tolua_err)
424 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
425 int width = ((int) tolua_tonumber(tolua_S,2,0));
426 int height = ((int) tolua_tonumber(tolua_S,3,0));
428 cairo_xlib_surface_set_size(surface,width,height);
432 #ifndef TOLUA_RELEASE
434 tolua_error(tolua_S,"#ferror in function 'cairo_xlib_surface_set_size'.",&tolua_err);
438 #endif //#ifndef TOLUA_DISABLE
440 /* function: cairo_xlib_surface_set_drawable */
441 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_xlib_surface_set_drawable00
442 static int tolua_cairo_cairo_xlib_surface_set_drawable00(lua_State* tolua_S)
444 #ifndef TOLUA_RELEASE
445 tolua_Error tolua_err;
447 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
448 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Drawable",0,&tolua_err)) ||
449 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
450 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
451 !tolua_isnoobj(tolua_S,5,&tolua_err)
457 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
458 Drawable drawable = *((Drawable*) tolua_tousertype(tolua_S,2,0));
459 int width = ((int) tolua_tonumber(tolua_S,3,0));
460 int height = ((int) tolua_tonumber(tolua_S,4,0));
462 cairo_xlib_surface_set_drawable(surface,drawable,width,height);
466 #ifndef TOLUA_RELEASE
468 tolua_error(tolua_S,"#ferror in function 'cairo_xlib_surface_set_drawable'.",&tolua_err);
472 #endif //#ifndef TOLUA_DISABLE
474 /* function: cairo_xlib_surface_get_display */
475 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_xlib_surface_get_display00
476 static int tolua_cairo_cairo_xlib_surface_get_display00(lua_State* tolua_S)
478 #ifndef TOLUA_RELEASE
479 tolua_Error tolua_err;
481 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
482 !tolua_isnoobj(tolua_S,2,&tolua_err)
488 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
490 Display* tolua_ret = (Display*) cairo_xlib_surface_get_display(surface);
491 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Display");
495 #ifndef TOLUA_RELEASE
497 tolua_error(tolua_S,"#ferror in function 'cairo_xlib_surface_get_display'.",&tolua_err);
501 #endif //#ifndef TOLUA_DISABLE
503 /* function: cairo_xlib_surface_get_drawable */
504 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_xlib_surface_get_drawable00
505 static int tolua_cairo_cairo_xlib_surface_get_drawable00(lua_State* tolua_S)
507 #ifndef TOLUA_RELEASE
508 tolua_Error tolua_err;
510 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
511 !tolua_isnoobj(tolua_S,2,&tolua_err)
517 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
519 Drawable tolua_ret = (Drawable) cairo_xlib_surface_get_drawable(surface);
522 void* tolua_obj = Mtolua_new((Drawable)(tolua_ret));
523 tolua_pushusertype(tolua_S,tolua_obj,"Drawable");
524 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
526 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Drawable));
527 tolua_pushusertype(tolua_S,tolua_obj,"Drawable");
528 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
534 #ifndef TOLUA_RELEASE
536 tolua_error(tolua_S,"#ferror in function 'cairo_xlib_surface_get_drawable'.",&tolua_err);
540 #endif //#ifndef TOLUA_DISABLE
542 /* function: cairo_xlib_surface_get_screen */
543 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_xlib_surface_get_screen00
544 static int tolua_cairo_cairo_xlib_surface_get_screen00(lua_State* tolua_S)
546 #ifndef TOLUA_RELEASE
547 tolua_Error tolua_err;
549 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
550 !tolua_isnoobj(tolua_S,2,&tolua_err)
556 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
558 Screen* tolua_ret = (Screen*) cairo_xlib_surface_get_screen(surface);
559 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Screen");
563 #ifndef TOLUA_RELEASE
565 tolua_error(tolua_S,"#ferror in function 'cairo_xlib_surface_get_screen'.",&tolua_err);
569 #endif //#ifndef TOLUA_DISABLE
571 /* function: cairo_xlib_surface_get_visual */
572 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_xlib_surface_get_visual00
573 static int tolua_cairo_cairo_xlib_surface_get_visual00(lua_State* tolua_S)
575 #ifndef TOLUA_RELEASE
576 tolua_Error tolua_err;
578 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
579 !tolua_isnoobj(tolua_S,2,&tolua_err)
585 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
587 Visual* tolua_ret = (Visual*) cairo_xlib_surface_get_visual(surface);
588 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Visual");
592 #ifndef TOLUA_RELEASE
594 tolua_error(tolua_S,"#ferror in function 'cairo_xlib_surface_get_visual'.",&tolua_err);
598 #endif //#ifndef TOLUA_DISABLE
600 /* function: cairo_xlib_surface_get_depth */
601 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_xlib_surface_get_depth00
602 static int tolua_cairo_cairo_xlib_surface_get_depth00(lua_State* tolua_S)
604 #ifndef TOLUA_RELEASE
605 tolua_Error tolua_err;
607 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
608 !tolua_isnoobj(tolua_S,2,&tolua_err)
614 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
616 int tolua_ret = (int) cairo_xlib_surface_get_depth(surface);
617 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
621 #ifndef TOLUA_RELEASE
623 tolua_error(tolua_S,"#ferror in function 'cairo_xlib_surface_get_depth'.",&tolua_err);
627 #endif //#ifndef TOLUA_DISABLE
629 /* function: cairo_xlib_surface_get_width */
630 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_xlib_surface_get_width00
631 static int tolua_cairo_cairo_xlib_surface_get_width00(lua_State* tolua_S)
633 #ifndef TOLUA_RELEASE
634 tolua_Error tolua_err;
636 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
637 !tolua_isnoobj(tolua_S,2,&tolua_err)
643 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
645 int tolua_ret = (int) cairo_xlib_surface_get_width(surface);
646 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
650 #ifndef TOLUA_RELEASE
652 tolua_error(tolua_S,"#ferror in function 'cairo_xlib_surface_get_width'.",&tolua_err);
656 #endif //#ifndef TOLUA_DISABLE
658 /* function: cairo_xlib_surface_get_height */
659 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_xlib_surface_get_height00
660 static int tolua_cairo_cairo_xlib_surface_get_height00(lua_State* tolua_S)
662 #ifndef TOLUA_RELEASE
663 tolua_Error tolua_err;
665 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
666 !tolua_isnoobj(tolua_S,2,&tolua_err)
672 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
674 int tolua_ret = (int) cairo_xlib_surface_get_height(surface);
675 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
679 #ifndef TOLUA_RELEASE
681 tolua_error(tolua_S,"#ferror in function 'cairo_xlib_surface_get_height'.",&tolua_err);
685 #endif //#ifndef TOLUA_DISABLE
687 /* function: cairo_version */
688 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_version00
689 static int tolua_cairo_cairo_version00(lua_State* tolua_S)
691 #ifndef TOLUA_RELEASE
692 tolua_Error tolua_err;
694 !tolua_isnoobj(tolua_S,1,&tolua_err)
701 int tolua_ret = (int) cairo_version();
702 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
706 #ifndef TOLUA_RELEASE
708 tolua_error(tolua_S,"#ferror in function 'cairo_version'.",&tolua_err);
712 #endif //#ifndef TOLUA_DISABLE
714 /* function: cairo_version_string */
715 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_version_string00
716 static int tolua_cairo_cairo_version_string00(lua_State* tolua_S)
718 #ifndef TOLUA_RELEASE
719 tolua_Error tolua_err;
721 !tolua_isnoobj(tolua_S,1,&tolua_err)
728 const char* tolua_ret = (const char*) cairo_version_string();
729 tolua_pushstring(tolua_S,(const char*)tolua_ret);
733 #ifndef TOLUA_RELEASE
735 tolua_error(tolua_S,"#ferror in function 'cairo_version_string'.",&tolua_err);
739 #endif //#ifndef TOLUA_DISABLE
741 /* function: cairo_create */
742 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_create00
743 static int tolua_cairo_cairo_create00(lua_State* tolua_S)
745 #ifndef TOLUA_RELEASE
746 tolua_Error tolua_err;
748 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
749 !tolua_isnoobj(tolua_S,2,&tolua_err)
755 struct _cairo_surface* target = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
757 struct _cairo* tolua_ret = ( struct _cairo*) cairo_create(target);
758 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo");
762 #ifndef TOLUA_RELEASE
764 tolua_error(tolua_S,"#ferror in function 'cairo_create'.",&tolua_err);
768 #endif //#ifndef TOLUA_DISABLE
770 /* function: cairo_reference */
771 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_reference00
772 static int tolua_cairo_cairo_reference00(lua_State* tolua_S)
774 #ifndef TOLUA_RELEASE
775 tolua_Error tolua_err;
777 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
778 !tolua_isnoobj(tolua_S,2,&tolua_err)
784 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
786 struct _cairo* tolua_ret = ( struct _cairo*) cairo_reference(cr);
787 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo");
791 #ifndef TOLUA_RELEASE
793 tolua_error(tolua_S,"#ferror in function 'cairo_reference'.",&tolua_err);
797 #endif //#ifndef TOLUA_DISABLE
799 /* function: cairo_destroy */
800 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_destroy00
801 static int tolua_cairo_cairo_destroy00(lua_State* tolua_S)
803 #ifndef TOLUA_RELEASE
804 tolua_Error tolua_err;
806 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
807 !tolua_isnoobj(tolua_S,2,&tolua_err)
813 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
819 #ifndef TOLUA_RELEASE
821 tolua_error(tolua_S,"#ferror in function 'cairo_destroy'.",&tolua_err);
825 #endif //#ifndef TOLUA_DISABLE
827 /* function: cairo_get_reference_count */
828 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_get_reference_count00
829 static int tolua_cairo_cairo_get_reference_count00(lua_State* tolua_S)
831 #ifndef TOLUA_RELEASE
832 tolua_Error tolua_err;
834 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
835 !tolua_isnoobj(tolua_S,2,&tolua_err)
841 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
843 unsigned int tolua_ret = (unsigned int) cairo_get_reference_count(cr);
844 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
848 #ifndef TOLUA_RELEASE
850 tolua_error(tolua_S,"#ferror in function 'cairo_get_reference_count'.",&tolua_err);
854 #endif //#ifndef TOLUA_DISABLE
856 /* function: cairo_get_user_data */
857 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_get_user_data00
858 static int tolua_cairo_cairo_get_user_data00(lua_State* tolua_S)
860 #ifndef TOLUA_RELEASE
861 tolua_Error tolua_err;
863 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
864 !tolua_isusertype(tolua_S,2,"const cairo_user_data_key_t",0,&tolua_err) ||
865 !tolua_isnoobj(tolua_S,3,&tolua_err)
871 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
872 const cairo_user_data_key_t* key = ((const cairo_user_data_key_t*) tolua_tousertype(tolua_S,2,0));
874 void* tolua_ret = (void*) cairo_get_user_data(cr,key);
875 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
879 #ifndef TOLUA_RELEASE
881 tolua_error(tolua_S,"#ferror in function 'cairo_get_user_data'.",&tolua_err);
885 #endif //#ifndef TOLUA_DISABLE
887 /* function: cairo_set_user_data */
888 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_set_user_data00
889 static int tolua_cairo_cairo_set_user_data00(lua_State* tolua_S)
891 #ifndef TOLUA_RELEASE
892 tolua_Error tolua_err;
894 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
895 !tolua_isusertype(tolua_S,2,"const cairo_user_data_key_t",0,&tolua_err) ||
896 !tolua_isuserdata(tolua_S,3,0,&tolua_err) ||
897 (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"cairo_destroy_func_t",0,&tolua_err)) ||
898 !tolua_isnoobj(tolua_S,5,&tolua_err)
904 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
905 const cairo_user_data_key_t* key = ((const cairo_user_data_key_t*) tolua_tousertype(tolua_S,2,0));
906 void* user_data = ((void*) tolua_touserdata(tolua_S,3,0));
907 cairo_destroy_func_t destroy = *((cairo_destroy_func_t*) tolua_tousertype(tolua_S,4,0));
909 cairo_status_t tolua_ret = (cairo_status_t) cairo_set_user_data(cr,key,user_data,destroy);
910 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
914 #ifndef TOLUA_RELEASE
916 tolua_error(tolua_S,"#ferror in function 'cairo_set_user_data'.",&tolua_err);
920 #endif //#ifndef TOLUA_DISABLE
922 /* function: cairo_save */
923 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_save00
924 static int tolua_cairo_cairo_save00(lua_State* tolua_S)
926 #ifndef TOLUA_RELEASE
927 tolua_Error tolua_err;
929 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
930 !tolua_isnoobj(tolua_S,2,&tolua_err)
936 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
942 #ifndef TOLUA_RELEASE
944 tolua_error(tolua_S,"#ferror in function 'cairo_save'.",&tolua_err);
948 #endif //#ifndef TOLUA_DISABLE
950 /* function: cairo_restore */
951 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_restore00
952 static int tolua_cairo_cairo_restore00(lua_State* tolua_S)
954 #ifndef TOLUA_RELEASE
955 tolua_Error tolua_err;
957 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
958 !tolua_isnoobj(tolua_S,2,&tolua_err)
964 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
970 #ifndef TOLUA_RELEASE
972 tolua_error(tolua_S,"#ferror in function 'cairo_restore'.",&tolua_err);
976 #endif //#ifndef TOLUA_DISABLE
978 /* function: cairo_push_group */
979 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_push_group00
980 static int tolua_cairo_cairo_push_group00(lua_State* tolua_S)
982 #ifndef TOLUA_RELEASE
983 tolua_Error tolua_err;
985 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
986 !tolua_isnoobj(tolua_S,2,&tolua_err)
992 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
994 cairo_push_group(cr);
998 #ifndef TOLUA_RELEASE
1000 tolua_error(tolua_S,"#ferror in function 'cairo_push_group'.",&tolua_err);
1004 #endif //#ifndef TOLUA_DISABLE
1006 /* function: cairo_push_group_with_content */
1007 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_push_group_with_content00
1008 static int tolua_cairo_cairo_push_group_with_content00(lua_State* tolua_S)
1010 #ifndef TOLUA_RELEASE
1011 tolua_Error tolua_err;
1013 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1014 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1015 !tolua_isnoobj(tolua_S,3,&tolua_err)
1021 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1022 cairo_content_t content = ((cairo_content_t) (int) tolua_tonumber(tolua_S,2,0));
1024 cairo_push_group_with_content(cr,content);
1028 #ifndef TOLUA_RELEASE
1030 tolua_error(tolua_S,"#ferror in function 'cairo_push_group_with_content'.",&tolua_err);
1034 #endif //#ifndef TOLUA_DISABLE
1036 /* function: cairo_pop_group */
1037 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pop_group00
1038 static int tolua_cairo_cairo_pop_group00(lua_State* tolua_S)
1040 #ifndef TOLUA_RELEASE
1041 tolua_Error tolua_err;
1043 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1044 !tolua_isnoobj(tolua_S,2,&tolua_err)
1050 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1052 struct _cairo_pattern* tolua_ret = ( struct _cairo_pattern*) cairo_pop_group(cr);
1053 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_pattern");
1057 #ifndef TOLUA_RELEASE
1059 tolua_error(tolua_S,"#ferror in function 'cairo_pop_group'.",&tolua_err);
1063 #endif //#ifndef TOLUA_DISABLE
1065 /* function: cairo_pop_group_to_source */
1066 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pop_group_to_source00
1067 static int tolua_cairo_cairo_pop_group_to_source00(lua_State* tolua_S)
1069 #ifndef TOLUA_RELEASE
1070 tolua_Error tolua_err;
1072 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1073 !tolua_isnoobj(tolua_S,2,&tolua_err)
1079 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1081 cairo_pop_group_to_source(cr);
1085 #ifndef TOLUA_RELEASE
1087 tolua_error(tolua_S,"#ferror in function 'cairo_pop_group_to_source'.",&tolua_err);
1091 #endif //#ifndef TOLUA_DISABLE
1093 /* function: cairo_set_operator */
1094 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_set_operator00
1095 static int tolua_cairo_cairo_set_operator00(lua_State* tolua_S)
1097 #ifndef TOLUA_RELEASE
1098 tolua_Error tolua_err;
1100 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1101 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1102 !tolua_isnoobj(tolua_S,3,&tolua_err)
1108 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1109 cairo_operator_t op = ((cairo_operator_t) (int) tolua_tonumber(tolua_S,2,0));
1111 cairo_set_operator(cr,op);
1115 #ifndef TOLUA_RELEASE
1117 tolua_error(tolua_S,"#ferror in function 'cairo_set_operator'.",&tolua_err);
1121 #endif //#ifndef TOLUA_DISABLE
1123 /* function: cairo_set_source */
1124 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_set_source00
1125 static int tolua_cairo_cairo_set_source00(lua_State* tolua_S)
1127 #ifndef TOLUA_RELEASE
1128 tolua_Error tolua_err;
1130 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1131 !tolua_isusertype(tolua_S,2,"_cairo_pattern",0,&tolua_err) ||
1132 !tolua_isnoobj(tolua_S,3,&tolua_err)
1138 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1139 struct _cairo_pattern* source = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,2,0));
1141 cairo_set_source(cr,source);
1145 #ifndef TOLUA_RELEASE
1147 tolua_error(tolua_S,"#ferror in function 'cairo_set_source'.",&tolua_err);
1151 #endif //#ifndef TOLUA_DISABLE
1153 /* function: cairo_set_source_rgb */
1154 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_set_source_rgb00
1155 static int tolua_cairo_cairo_set_source_rgb00(lua_State* tolua_S)
1157 #ifndef TOLUA_RELEASE
1158 tolua_Error tolua_err;
1160 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1161 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1162 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1163 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
1164 !tolua_isnoobj(tolua_S,5,&tolua_err)
1170 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1171 double red = ((double) tolua_tonumber(tolua_S,2,0));
1172 double green = ((double) tolua_tonumber(tolua_S,3,0));
1173 double blue = ((double) tolua_tonumber(tolua_S,4,0));
1175 cairo_set_source_rgb(cr,red,green,blue);
1179 #ifndef TOLUA_RELEASE
1181 tolua_error(tolua_S,"#ferror in function 'cairo_set_source_rgb'.",&tolua_err);
1185 #endif //#ifndef TOLUA_DISABLE
1187 /* function: cairo_set_source_rgba */
1188 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_set_source_rgba00
1189 static int tolua_cairo_cairo_set_source_rgba00(lua_State* tolua_S)
1191 #ifndef TOLUA_RELEASE
1192 tolua_Error tolua_err;
1194 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1195 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1196 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1197 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
1198 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
1199 !tolua_isnoobj(tolua_S,6,&tolua_err)
1205 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1206 double red = ((double) tolua_tonumber(tolua_S,2,0));
1207 double green = ((double) tolua_tonumber(tolua_S,3,0));
1208 double blue = ((double) tolua_tonumber(tolua_S,4,0));
1209 double alpha = ((double) tolua_tonumber(tolua_S,5,0));
1211 cairo_set_source_rgba(cr,red,green,blue,alpha);
1215 #ifndef TOLUA_RELEASE
1217 tolua_error(tolua_S,"#ferror in function 'cairo_set_source_rgba'.",&tolua_err);
1221 #endif //#ifndef TOLUA_DISABLE
1223 /* function: cairo_set_source_surface */
1224 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_set_source_surface00
1225 static int tolua_cairo_cairo_set_source_surface00(lua_State* tolua_S)
1227 #ifndef TOLUA_RELEASE
1228 tolua_Error tolua_err;
1230 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1231 !tolua_isusertype(tolua_S,2,"_cairo_surface",0,&tolua_err) ||
1232 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1233 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
1234 !tolua_isnoobj(tolua_S,5,&tolua_err)
1240 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1241 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,2,0));
1242 double x = ((double) tolua_tonumber(tolua_S,3,0));
1243 double y = ((double) tolua_tonumber(tolua_S,4,0));
1245 cairo_set_source_surface(cr,surface,x,y);
1249 #ifndef TOLUA_RELEASE
1251 tolua_error(tolua_S,"#ferror in function 'cairo_set_source_surface'.",&tolua_err);
1255 #endif //#ifndef TOLUA_DISABLE
1257 /* function: cairo_set_tolerance */
1258 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_set_tolerance00
1259 static int tolua_cairo_cairo_set_tolerance00(lua_State* tolua_S)
1261 #ifndef TOLUA_RELEASE
1262 tolua_Error tolua_err;
1264 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1265 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1266 !tolua_isnoobj(tolua_S,3,&tolua_err)
1272 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1273 double tolerance = ((double) tolua_tonumber(tolua_S,2,0));
1275 cairo_set_tolerance(cr,tolerance);
1279 #ifndef TOLUA_RELEASE
1281 tolua_error(tolua_S,"#ferror in function 'cairo_set_tolerance'.",&tolua_err);
1285 #endif //#ifndef TOLUA_DISABLE
1287 /* function: cairo_set_antialias */
1288 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_set_antialias00
1289 static int tolua_cairo_cairo_set_antialias00(lua_State* tolua_S)
1291 #ifndef TOLUA_RELEASE
1292 tolua_Error tolua_err;
1294 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1295 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1296 !tolua_isnoobj(tolua_S,3,&tolua_err)
1302 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1303 cairo_antialias_t antialias = ((cairo_antialias_t) (int) tolua_tonumber(tolua_S,2,0));
1305 cairo_set_antialias(cr,antialias);
1309 #ifndef TOLUA_RELEASE
1311 tolua_error(tolua_S,"#ferror in function 'cairo_set_antialias'.",&tolua_err);
1315 #endif //#ifndef TOLUA_DISABLE
1317 /* function: cairo_set_fill_rule */
1318 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_set_fill_rule00
1319 static int tolua_cairo_cairo_set_fill_rule00(lua_State* tolua_S)
1321 #ifndef TOLUA_RELEASE
1322 tolua_Error tolua_err;
1324 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1325 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1326 !tolua_isnoobj(tolua_S,3,&tolua_err)
1332 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1333 cairo_fill_rule_t fill_rule = ((cairo_fill_rule_t) (int) tolua_tonumber(tolua_S,2,0));
1335 cairo_set_fill_rule(cr,fill_rule);
1339 #ifndef TOLUA_RELEASE
1341 tolua_error(tolua_S,"#ferror in function 'cairo_set_fill_rule'.",&tolua_err);
1345 #endif //#ifndef TOLUA_DISABLE
1347 /* function: cairo_set_line_width */
1348 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_set_line_width00
1349 static int tolua_cairo_cairo_set_line_width00(lua_State* tolua_S)
1351 #ifndef TOLUA_RELEASE
1352 tolua_Error tolua_err;
1354 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1355 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1356 !tolua_isnoobj(tolua_S,3,&tolua_err)
1362 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1363 double width = ((double) tolua_tonumber(tolua_S,2,0));
1365 cairo_set_line_width(cr,width);
1369 #ifndef TOLUA_RELEASE
1371 tolua_error(tolua_S,"#ferror in function 'cairo_set_line_width'.",&tolua_err);
1375 #endif //#ifndef TOLUA_DISABLE
1377 /* function: cairo_set_line_cap */
1378 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_set_line_cap00
1379 static int tolua_cairo_cairo_set_line_cap00(lua_State* tolua_S)
1381 #ifndef TOLUA_RELEASE
1382 tolua_Error tolua_err;
1384 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1385 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1386 !tolua_isnoobj(tolua_S,3,&tolua_err)
1392 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1393 cairo_line_cap_t line_cap = ((cairo_line_cap_t) (int) tolua_tonumber(tolua_S,2,0));
1395 cairo_set_line_cap(cr,line_cap);
1399 #ifndef TOLUA_RELEASE
1401 tolua_error(tolua_S,"#ferror in function 'cairo_set_line_cap'.",&tolua_err);
1405 #endif //#ifndef TOLUA_DISABLE
1407 /* function: cairo_set_line_join */
1408 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_set_line_join00
1409 static int tolua_cairo_cairo_set_line_join00(lua_State* tolua_S)
1411 #ifndef TOLUA_RELEASE
1412 tolua_Error tolua_err;
1414 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1415 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1416 !tolua_isnoobj(tolua_S,3,&tolua_err)
1422 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1423 cairo_line_join_t line_join = ((cairo_line_join_t) (int) tolua_tonumber(tolua_S,2,0));
1425 cairo_set_line_join(cr,line_join);
1429 #ifndef TOLUA_RELEASE
1431 tolua_error(tolua_S,"#ferror in function 'cairo_set_line_join'.",&tolua_err);
1435 #endif //#ifndef TOLUA_DISABLE
1437 /* function: cairo_set_dash */
1438 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_set_dash00
1439 static int tolua_cairo_cairo_set_dash00(lua_State* tolua_S)
1441 #ifndef TOLUA_RELEASE
1442 tolua_Error tolua_err;
1444 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1445 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1446 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1447 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
1448 !tolua_isnoobj(tolua_S,5,&tolua_err)
1454 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1455 const double dashes = ((const double) tolua_tonumber(tolua_S,2,0));
1456 int num_dashes = ((int) tolua_tonumber(tolua_S,3,0));
1457 double offset = ((double) tolua_tonumber(tolua_S,4,0));
1459 cairo_set_dash(cr,&dashes,num_dashes,offset);
1460 tolua_pushnumber(tolua_S,(lua_Number)dashes);
1464 #ifndef TOLUA_RELEASE
1466 tolua_error(tolua_S,"#ferror in function 'cairo_set_dash'.",&tolua_err);
1470 #endif //#ifndef TOLUA_DISABLE
1472 /* function: cairo_set_miter_limit */
1473 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_set_miter_limit00
1474 static int tolua_cairo_cairo_set_miter_limit00(lua_State* tolua_S)
1476 #ifndef TOLUA_RELEASE
1477 tolua_Error tolua_err;
1479 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1480 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1481 !tolua_isnoobj(tolua_S,3,&tolua_err)
1487 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1488 double limit = ((double) tolua_tonumber(tolua_S,2,0));
1490 cairo_set_miter_limit(cr,limit);
1494 #ifndef TOLUA_RELEASE
1496 tolua_error(tolua_S,"#ferror in function 'cairo_set_miter_limit'.",&tolua_err);
1500 #endif //#ifndef TOLUA_DISABLE
1502 /* function: cairo_translate */
1503 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_translate00
1504 static int tolua_cairo_cairo_translate00(lua_State* tolua_S)
1506 #ifndef TOLUA_RELEASE
1507 tolua_Error tolua_err;
1509 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1510 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1511 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1512 !tolua_isnoobj(tolua_S,4,&tolua_err)
1518 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1519 double tx = ((double) tolua_tonumber(tolua_S,2,0));
1520 double ty = ((double) tolua_tonumber(tolua_S,3,0));
1522 cairo_translate(cr,tx,ty);
1526 #ifndef TOLUA_RELEASE
1528 tolua_error(tolua_S,"#ferror in function 'cairo_translate'.",&tolua_err);
1532 #endif //#ifndef TOLUA_DISABLE
1534 /* function: cairo_scale */
1535 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_scale00
1536 static int tolua_cairo_cairo_scale00(lua_State* tolua_S)
1538 #ifndef TOLUA_RELEASE
1539 tolua_Error tolua_err;
1541 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1542 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1543 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1544 !tolua_isnoobj(tolua_S,4,&tolua_err)
1550 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1551 double sx = ((double) tolua_tonumber(tolua_S,2,0));
1552 double sy = ((double) tolua_tonumber(tolua_S,3,0));
1554 cairo_scale(cr,sx,sy);
1558 #ifndef TOLUA_RELEASE
1560 tolua_error(tolua_S,"#ferror in function 'cairo_scale'.",&tolua_err);
1564 #endif //#ifndef TOLUA_DISABLE
1566 /* function: cairo_rotate */
1567 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_rotate00
1568 static int tolua_cairo_cairo_rotate00(lua_State* tolua_S)
1570 #ifndef TOLUA_RELEASE
1571 tolua_Error tolua_err;
1573 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1574 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1575 !tolua_isnoobj(tolua_S,3,&tolua_err)
1581 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1582 double angle = ((double) tolua_tonumber(tolua_S,2,0));
1584 cairo_rotate(cr,angle);
1588 #ifndef TOLUA_RELEASE
1590 tolua_error(tolua_S,"#ferror in function 'cairo_rotate'.",&tolua_err);
1594 #endif //#ifndef TOLUA_DISABLE
1596 /* function: cairo_transform */
1597 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_transform00
1598 static int tolua_cairo_cairo_transform00(lua_State* tolua_S)
1600 #ifndef TOLUA_RELEASE
1601 tolua_Error tolua_err;
1603 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1604 !tolua_isusertype(tolua_S,2,"cairo_matrix_t",0,&tolua_err) ||
1605 !tolua_isnoobj(tolua_S,3,&tolua_err)
1611 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1612 cairo_matrix_t* matrix = ((cairo_matrix_t*) tolua_tousertype(tolua_S,2,0));
1614 cairo_transform(cr,matrix);
1618 #ifndef TOLUA_RELEASE
1620 tolua_error(tolua_S,"#ferror in function 'cairo_transform'.",&tolua_err);
1624 #endif //#ifndef TOLUA_DISABLE
1626 /* function: cairo_set_matrix */
1627 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_set_matrix00
1628 static int tolua_cairo_cairo_set_matrix00(lua_State* tolua_S)
1630 #ifndef TOLUA_RELEASE
1631 tolua_Error tolua_err;
1633 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1634 !tolua_isusertype(tolua_S,2,"cairo_matrix_t",0,&tolua_err) ||
1635 !tolua_isnoobj(tolua_S,3,&tolua_err)
1641 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1642 cairo_matrix_t* matrix = ((cairo_matrix_t*) tolua_tousertype(tolua_S,2,0));
1644 cairo_set_matrix(cr,matrix);
1648 #ifndef TOLUA_RELEASE
1650 tolua_error(tolua_S,"#ferror in function 'cairo_set_matrix'.",&tolua_err);
1654 #endif //#ifndef TOLUA_DISABLE
1656 /* function: cairo_identity_matrix */
1657 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_identity_matrix00
1658 static int tolua_cairo_cairo_identity_matrix00(lua_State* tolua_S)
1660 #ifndef TOLUA_RELEASE
1661 tolua_Error tolua_err;
1663 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1664 !tolua_isnoobj(tolua_S,2,&tolua_err)
1670 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1672 cairo_identity_matrix(cr);
1676 #ifndef TOLUA_RELEASE
1678 tolua_error(tolua_S,"#ferror in function 'cairo_identity_matrix'.",&tolua_err);
1682 #endif //#ifndef TOLUA_DISABLE
1684 /* function: cairo_user_to_device */
1685 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_user_to_device00
1686 static int tolua_cairo_cairo_user_to_device00(lua_State* tolua_S)
1688 #ifndef TOLUA_RELEASE
1689 tolua_Error tolua_err;
1691 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1692 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1693 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1694 !tolua_isnoobj(tolua_S,4,&tolua_err)
1700 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1701 double x = ((double) tolua_tonumber(tolua_S,2,0));
1702 double y = ((double) tolua_tonumber(tolua_S,3,0));
1704 cairo_user_to_device(cr,&x,&y);
1705 tolua_pushnumber(tolua_S,(lua_Number)x);
1706 tolua_pushnumber(tolua_S,(lua_Number)y);
1710 #ifndef TOLUA_RELEASE
1712 tolua_error(tolua_S,"#ferror in function 'cairo_user_to_device'.",&tolua_err);
1716 #endif //#ifndef TOLUA_DISABLE
1718 /* function: cairo_user_to_device_distance */
1719 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_user_to_device_distance00
1720 static int tolua_cairo_cairo_user_to_device_distance00(lua_State* tolua_S)
1722 #ifndef TOLUA_RELEASE
1723 tolua_Error tolua_err;
1725 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1726 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1727 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1728 !tolua_isnoobj(tolua_S,4,&tolua_err)
1734 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1735 double dx = ((double) tolua_tonumber(tolua_S,2,0));
1736 double dy = ((double) tolua_tonumber(tolua_S,3,0));
1738 cairo_user_to_device_distance(cr,&dx,&dy);
1739 tolua_pushnumber(tolua_S,(lua_Number)dx);
1740 tolua_pushnumber(tolua_S,(lua_Number)dy);
1744 #ifndef TOLUA_RELEASE
1746 tolua_error(tolua_S,"#ferror in function 'cairo_user_to_device_distance'.",&tolua_err);
1750 #endif //#ifndef TOLUA_DISABLE
1752 /* function: cairo_device_to_user */
1753 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_device_to_user00
1754 static int tolua_cairo_cairo_device_to_user00(lua_State* tolua_S)
1756 #ifndef TOLUA_RELEASE
1757 tolua_Error tolua_err;
1759 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1760 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1761 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1762 !tolua_isnoobj(tolua_S,4,&tolua_err)
1768 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1769 double x = ((double) tolua_tonumber(tolua_S,2,0));
1770 double y = ((double) tolua_tonumber(tolua_S,3,0));
1772 cairo_device_to_user(cr,&x,&y);
1773 tolua_pushnumber(tolua_S,(lua_Number)x);
1774 tolua_pushnumber(tolua_S,(lua_Number)y);
1778 #ifndef TOLUA_RELEASE
1780 tolua_error(tolua_S,"#ferror in function 'cairo_device_to_user'.",&tolua_err);
1784 #endif //#ifndef TOLUA_DISABLE
1786 /* function: cairo_device_to_user_distance */
1787 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_device_to_user_distance00
1788 static int tolua_cairo_cairo_device_to_user_distance00(lua_State* tolua_S)
1790 #ifndef TOLUA_RELEASE
1791 tolua_Error tolua_err;
1793 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1794 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1795 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1796 !tolua_isnoobj(tolua_S,4,&tolua_err)
1802 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1803 double dx = ((double) tolua_tonumber(tolua_S,2,0));
1804 double dy = ((double) tolua_tonumber(tolua_S,3,0));
1806 cairo_device_to_user_distance(cr,&dx,&dy);
1807 tolua_pushnumber(tolua_S,(lua_Number)dx);
1808 tolua_pushnumber(tolua_S,(lua_Number)dy);
1812 #ifndef TOLUA_RELEASE
1814 tolua_error(tolua_S,"#ferror in function 'cairo_device_to_user_distance'.",&tolua_err);
1818 #endif //#ifndef TOLUA_DISABLE
1820 /* function: cairo_new_path */
1821 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_new_path00
1822 static int tolua_cairo_cairo_new_path00(lua_State* tolua_S)
1824 #ifndef TOLUA_RELEASE
1825 tolua_Error tolua_err;
1827 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1828 !tolua_isnoobj(tolua_S,2,&tolua_err)
1834 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1840 #ifndef TOLUA_RELEASE
1842 tolua_error(tolua_S,"#ferror in function 'cairo_new_path'.",&tolua_err);
1846 #endif //#ifndef TOLUA_DISABLE
1848 /* function: cairo_move_to */
1849 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_move_to00
1850 static int tolua_cairo_cairo_move_to00(lua_State* tolua_S)
1852 #ifndef TOLUA_RELEASE
1853 tolua_Error tolua_err;
1855 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1856 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1857 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1858 !tolua_isnoobj(tolua_S,4,&tolua_err)
1864 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1865 double x = ((double) tolua_tonumber(tolua_S,2,0));
1866 double y = ((double) tolua_tonumber(tolua_S,3,0));
1868 cairo_move_to(cr,x,y);
1872 #ifndef TOLUA_RELEASE
1874 tolua_error(tolua_S,"#ferror in function 'cairo_move_to'.",&tolua_err);
1878 #endif //#ifndef TOLUA_DISABLE
1880 /* function: cairo_new_sub_path */
1881 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_new_sub_path00
1882 static int tolua_cairo_cairo_new_sub_path00(lua_State* tolua_S)
1884 #ifndef TOLUA_RELEASE
1885 tolua_Error tolua_err;
1887 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1888 !tolua_isnoobj(tolua_S,2,&tolua_err)
1894 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1896 cairo_new_sub_path(cr);
1900 #ifndef TOLUA_RELEASE
1902 tolua_error(tolua_S,"#ferror in function 'cairo_new_sub_path'.",&tolua_err);
1906 #endif //#ifndef TOLUA_DISABLE
1908 /* function: cairo_line_to */
1909 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_line_to00
1910 static int tolua_cairo_cairo_line_to00(lua_State* tolua_S)
1912 #ifndef TOLUA_RELEASE
1913 tolua_Error tolua_err;
1915 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1916 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1917 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1918 !tolua_isnoobj(tolua_S,4,&tolua_err)
1924 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1925 double x = ((double) tolua_tonumber(tolua_S,2,0));
1926 double y = ((double) tolua_tonumber(tolua_S,3,0));
1928 cairo_line_to(cr,x,y);
1932 #ifndef TOLUA_RELEASE
1934 tolua_error(tolua_S,"#ferror in function 'cairo_line_to'.",&tolua_err);
1938 #endif //#ifndef TOLUA_DISABLE
1940 /* function: cairo_curve_to */
1941 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_curve_to00
1942 static int tolua_cairo_cairo_curve_to00(lua_State* tolua_S)
1944 #ifndef TOLUA_RELEASE
1945 tolua_Error tolua_err;
1947 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1948 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1949 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1950 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
1951 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
1952 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
1953 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
1954 !tolua_isnoobj(tolua_S,8,&tolua_err)
1960 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
1961 double x1 = ((double) tolua_tonumber(tolua_S,2,0));
1962 double y1 = ((double) tolua_tonumber(tolua_S,3,0));
1963 double x2 = ((double) tolua_tonumber(tolua_S,4,0));
1964 double y2 = ((double) tolua_tonumber(tolua_S,5,0));
1965 double x3 = ((double) tolua_tonumber(tolua_S,6,0));
1966 double y3 = ((double) tolua_tonumber(tolua_S,7,0));
1968 cairo_curve_to(cr,x1,y1,x2,y2,x3,y3);
1972 #ifndef TOLUA_RELEASE
1974 tolua_error(tolua_S,"#ferror in function 'cairo_curve_to'.",&tolua_err);
1978 #endif //#ifndef TOLUA_DISABLE
1980 /* function: cairo_arc */
1981 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_arc00
1982 static int tolua_cairo_cairo_arc00(lua_State* tolua_S)
1984 #ifndef TOLUA_RELEASE
1985 tolua_Error tolua_err;
1987 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
1988 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1989 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1990 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
1991 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
1992 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
1993 !tolua_isnoobj(tolua_S,7,&tolua_err)
1999 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2000 double xc = ((double) tolua_tonumber(tolua_S,2,0));
2001 double yc = ((double) tolua_tonumber(tolua_S,3,0));
2002 double radius = ((double) tolua_tonumber(tolua_S,4,0));
2003 double angle1 = ((double) tolua_tonumber(tolua_S,5,0));
2004 double angle2 = ((double) tolua_tonumber(tolua_S,6,0));
2006 cairo_arc(cr,xc,yc,radius,angle1,angle2);
2010 #ifndef TOLUA_RELEASE
2012 tolua_error(tolua_S,"#ferror in function 'cairo_arc'.",&tolua_err);
2016 #endif //#ifndef TOLUA_DISABLE
2018 /* function: cairo_arc_negative */
2019 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_arc_negative00
2020 static int tolua_cairo_cairo_arc_negative00(lua_State* tolua_S)
2022 #ifndef TOLUA_RELEASE
2023 tolua_Error tolua_err;
2025 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2026 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2027 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2028 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
2029 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
2030 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
2031 !tolua_isnoobj(tolua_S,7,&tolua_err)
2037 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2038 double xc = ((double) tolua_tonumber(tolua_S,2,0));
2039 double yc = ((double) tolua_tonumber(tolua_S,3,0));
2040 double radius = ((double) tolua_tonumber(tolua_S,4,0));
2041 double angle1 = ((double) tolua_tonumber(tolua_S,5,0));
2042 double angle2 = ((double) tolua_tonumber(tolua_S,6,0));
2044 cairo_arc_negative(cr,xc,yc,radius,angle1,angle2);
2048 #ifndef TOLUA_RELEASE
2050 tolua_error(tolua_S,"#ferror in function 'cairo_arc_negative'.",&tolua_err);
2054 #endif //#ifndef TOLUA_DISABLE
2056 /* function: cairo_rel_move_to */
2057 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_rel_move_to00
2058 static int tolua_cairo_cairo_rel_move_to00(lua_State* tolua_S)
2060 #ifndef TOLUA_RELEASE
2061 tolua_Error tolua_err;
2063 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2064 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2065 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2066 !tolua_isnoobj(tolua_S,4,&tolua_err)
2072 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2073 double dx = ((double) tolua_tonumber(tolua_S,2,0));
2074 double dy = ((double) tolua_tonumber(tolua_S,3,0));
2076 cairo_rel_move_to(cr,dx,dy);
2080 #ifndef TOLUA_RELEASE
2082 tolua_error(tolua_S,"#ferror in function 'cairo_rel_move_to'.",&tolua_err);
2086 #endif //#ifndef TOLUA_DISABLE
2088 /* function: cairo_rel_line_to */
2089 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_rel_line_to00
2090 static int tolua_cairo_cairo_rel_line_to00(lua_State* tolua_S)
2092 #ifndef TOLUA_RELEASE
2093 tolua_Error tolua_err;
2095 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2096 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2097 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2098 !tolua_isnoobj(tolua_S,4,&tolua_err)
2104 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2105 double dx = ((double) tolua_tonumber(tolua_S,2,0));
2106 double dy = ((double) tolua_tonumber(tolua_S,3,0));
2108 cairo_rel_line_to(cr,dx,dy);
2112 #ifndef TOLUA_RELEASE
2114 tolua_error(tolua_S,"#ferror in function 'cairo_rel_line_to'.",&tolua_err);
2118 #endif //#ifndef TOLUA_DISABLE
2120 /* function: cairo_rel_curve_to */
2121 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_rel_curve_to00
2122 static int tolua_cairo_cairo_rel_curve_to00(lua_State* tolua_S)
2124 #ifndef TOLUA_RELEASE
2125 tolua_Error tolua_err;
2127 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2128 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2129 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2130 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
2131 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
2132 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
2133 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
2134 !tolua_isnoobj(tolua_S,8,&tolua_err)
2140 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2141 double dx1 = ((double) tolua_tonumber(tolua_S,2,0));
2142 double dy1 = ((double) tolua_tonumber(tolua_S,3,0));
2143 double dx2 = ((double) tolua_tonumber(tolua_S,4,0));
2144 double dy2 = ((double) tolua_tonumber(tolua_S,5,0));
2145 double dx3 = ((double) tolua_tonumber(tolua_S,6,0));
2146 double dy3 = ((double) tolua_tonumber(tolua_S,7,0));
2148 cairo_rel_curve_to(cr,dx1,dy1,dx2,dy2,dx3,dy3);
2152 #ifndef TOLUA_RELEASE
2154 tolua_error(tolua_S,"#ferror in function 'cairo_rel_curve_to'.",&tolua_err);
2158 #endif //#ifndef TOLUA_DISABLE
2160 /* function: cairo_rectangle */
2161 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_rectangle00
2162 static int tolua_cairo_cairo_rectangle00(lua_State* tolua_S)
2164 #ifndef TOLUA_RELEASE
2165 tolua_Error tolua_err;
2167 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2168 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2169 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2170 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
2171 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
2172 !tolua_isnoobj(tolua_S,6,&tolua_err)
2178 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2179 double x = ((double) tolua_tonumber(tolua_S,2,0));
2180 double y = ((double) tolua_tonumber(tolua_S,3,0));
2181 double width = ((double) tolua_tonumber(tolua_S,4,0));
2182 double height = ((double) tolua_tonumber(tolua_S,5,0));
2184 cairo_rectangle(cr,x,y,width,height);
2188 #ifndef TOLUA_RELEASE
2190 tolua_error(tolua_S,"#ferror in function 'cairo_rectangle'.",&tolua_err);
2194 #endif //#ifndef TOLUA_DISABLE
2196 /* function: cairo_close_path */
2197 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_close_path00
2198 static int tolua_cairo_cairo_close_path00(lua_State* tolua_S)
2200 #ifndef TOLUA_RELEASE
2201 tolua_Error tolua_err;
2203 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2204 !tolua_isnoobj(tolua_S,2,&tolua_err)
2210 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2212 cairo_close_path(cr);
2216 #ifndef TOLUA_RELEASE
2218 tolua_error(tolua_S,"#ferror in function 'cairo_close_path'.",&tolua_err);
2222 #endif //#ifndef TOLUA_DISABLE
2224 /* function: cairo_path_extents */
2225 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_path_extents00
2226 static int tolua_cairo_cairo_path_extents00(lua_State* tolua_S)
2228 #ifndef TOLUA_RELEASE
2229 tolua_Error tolua_err;
2231 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2232 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2233 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2234 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
2235 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
2236 !tolua_isnoobj(tolua_S,6,&tolua_err)
2242 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2243 double x1 = ((double) tolua_tonumber(tolua_S,2,0));
2244 double y1 = ((double) tolua_tonumber(tolua_S,3,0));
2245 double x2 = ((double) tolua_tonumber(tolua_S,4,0));
2246 double y2 = ((double) tolua_tonumber(tolua_S,5,0));
2248 cairo_path_extents(cr,&x1,&y1,&x2,&y2);
2249 tolua_pushnumber(tolua_S,(lua_Number)x1);
2250 tolua_pushnumber(tolua_S,(lua_Number)y1);
2251 tolua_pushnumber(tolua_S,(lua_Number)x2);
2252 tolua_pushnumber(tolua_S,(lua_Number)y2);
2256 #ifndef TOLUA_RELEASE
2258 tolua_error(tolua_S,"#ferror in function 'cairo_path_extents'.",&tolua_err);
2262 #endif //#ifndef TOLUA_DISABLE
2264 /* function: cairo_paint */
2265 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_paint00
2266 static int tolua_cairo_cairo_paint00(lua_State* tolua_S)
2268 #ifndef TOLUA_RELEASE
2269 tolua_Error tolua_err;
2271 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2272 !tolua_isnoobj(tolua_S,2,&tolua_err)
2278 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2284 #ifndef TOLUA_RELEASE
2286 tolua_error(tolua_S,"#ferror in function 'cairo_paint'.",&tolua_err);
2290 #endif //#ifndef TOLUA_DISABLE
2292 /* function: cairo_paint_with_alpha */
2293 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_paint_with_alpha00
2294 static int tolua_cairo_cairo_paint_with_alpha00(lua_State* tolua_S)
2296 #ifndef TOLUA_RELEASE
2297 tolua_Error tolua_err;
2299 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2300 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2301 !tolua_isnoobj(tolua_S,3,&tolua_err)
2307 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2308 double alpha = ((double) tolua_tonumber(tolua_S,2,0));
2310 cairo_paint_with_alpha(cr,alpha);
2314 #ifndef TOLUA_RELEASE
2316 tolua_error(tolua_S,"#ferror in function 'cairo_paint_with_alpha'.",&tolua_err);
2320 #endif //#ifndef TOLUA_DISABLE
2322 /* function: cairo_mask */
2323 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_mask00
2324 static int tolua_cairo_cairo_mask00(lua_State* tolua_S)
2326 #ifndef TOLUA_RELEASE
2327 tolua_Error tolua_err;
2329 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2330 !tolua_isusertype(tolua_S,2,"_cairo_pattern",0,&tolua_err) ||
2331 !tolua_isnoobj(tolua_S,3,&tolua_err)
2337 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2338 struct _cairo_pattern* pattern = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,2,0));
2340 cairo_mask(cr,pattern);
2344 #ifndef TOLUA_RELEASE
2346 tolua_error(tolua_S,"#ferror in function 'cairo_mask'.",&tolua_err);
2350 #endif //#ifndef TOLUA_DISABLE
2352 /* function: cairo_mask_surface */
2353 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_mask_surface00
2354 static int tolua_cairo_cairo_mask_surface00(lua_State* tolua_S)
2356 #ifndef TOLUA_RELEASE
2357 tolua_Error tolua_err;
2359 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2360 !tolua_isusertype(tolua_S,2,"_cairo_surface",0,&tolua_err) ||
2361 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2362 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
2363 !tolua_isnoobj(tolua_S,5,&tolua_err)
2369 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2370 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,2,0));
2371 double surface_x = ((double) tolua_tonumber(tolua_S,3,0));
2372 double surface_y = ((double) tolua_tonumber(tolua_S,4,0));
2374 cairo_mask_surface(cr,surface,surface_x,surface_y);
2378 #ifndef TOLUA_RELEASE
2380 tolua_error(tolua_S,"#ferror in function 'cairo_mask_surface'.",&tolua_err);
2384 #endif //#ifndef TOLUA_DISABLE
2386 /* function: cairo_stroke */
2387 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_stroke00
2388 static int tolua_cairo_cairo_stroke00(lua_State* tolua_S)
2390 #ifndef TOLUA_RELEASE
2391 tolua_Error tolua_err;
2393 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2394 !tolua_isnoobj(tolua_S,2,&tolua_err)
2400 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2406 #ifndef TOLUA_RELEASE
2408 tolua_error(tolua_S,"#ferror in function 'cairo_stroke'.",&tolua_err);
2412 #endif //#ifndef TOLUA_DISABLE
2414 /* function: cairo_stroke_preserve */
2415 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_stroke_preserve00
2416 static int tolua_cairo_cairo_stroke_preserve00(lua_State* tolua_S)
2418 #ifndef TOLUA_RELEASE
2419 tolua_Error tolua_err;
2421 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2422 !tolua_isnoobj(tolua_S,2,&tolua_err)
2428 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2430 cairo_stroke_preserve(cr);
2434 #ifndef TOLUA_RELEASE
2436 tolua_error(tolua_S,"#ferror in function 'cairo_stroke_preserve'.",&tolua_err);
2440 #endif //#ifndef TOLUA_DISABLE
2442 /* function: cairo_fill */
2443 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_fill00
2444 static int tolua_cairo_cairo_fill00(lua_State* tolua_S)
2446 #ifndef TOLUA_RELEASE
2447 tolua_Error tolua_err;
2449 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2450 !tolua_isnoobj(tolua_S,2,&tolua_err)
2456 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2462 #ifndef TOLUA_RELEASE
2464 tolua_error(tolua_S,"#ferror in function 'cairo_fill'.",&tolua_err);
2468 #endif //#ifndef TOLUA_DISABLE
2470 /* function: cairo_fill_preserve */
2471 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_fill_preserve00
2472 static int tolua_cairo_cairo_fill_preserve00(lua_State* tolua_S)
2474 #ifndef TOLUA_RELEASE
2475 tolua_Error tolua_err;
2477 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2478 !tolua_isnoobj(tolua_S,2,&tolua_err)
2484 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2486 cairo_fill_preserve(cr);
2490 #ifndef TOLUA_RELEASE
2492 tolua_error(tolua_S,"#ferror in function 'cairo_fill_preserve'.",&tolua_err);
2496 #endif //#ifndef TOLUA_DISABLE
2498 /* function: cairo_copy_page */
2499 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_copy_page00
2500 static int tolua_cairo_cairo_copy_page00(lua_State* tolua_S)
2502 #ifndef TOLUA_RELEASE
2503 tolua_Error tolua_err;
2505 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2506 !tolua_isnoobj(tolua_S,2,&tolua_err)
2512 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2514 cairo_copy_page(cr);
2518 #ifndef TOLUA_RELEASE
2520 tolua_error(tolua_S,"#ferror in function 'cairo_copy_page'.",&tolua_err);
2524 #endif //#ifndef TOLUA_DISABLE
2526 /* function: cairo_show_page */
2527 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_show_page00
2528 static int tolua_cairo_cairo_show_page00(lua_State* tolua_S)
2530 #ifndef TOLUA_RELEASE
2531 tolua_Error tolua_err;
2533 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2534 !tolua_isnoobj(tolua_S,2,&tolua_err)
2540 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2542 cairo_show_page(cr);
2546 #ifndef TOLUA_RELEASE
2548 tolua_error(tolua_S,"#ferror in function 'cairo_show_page'.",&tolua_err);
2552 #endif //#ifndef TOLUA_DISABLE
2554 /* function: cairo_in_stroke */
2555 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_in_stroke00
2556 static int tolua_cairo_cairo_in_stroke00(lua_State* tolua_S)
2558 #ifndef TOLUA_RELEASE
2559 tolua_Error tolua_err;
2561 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2562 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2563 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2564 !tolua_isnoobj(tolua_S,4,&tolua_err)
2570 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2571 double x = ((double) tolua_tonumber(tolua_S,2,0));
2572 double y = ((double) tolua_tonumber(tolua_S,3,0));
2574 int tolua_ret = ( int) cairo_in_stroke(cr,x,y);
2575 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
2579 #ifndef TOLUA_RELEASE
2581 tolua_error(tolua_S,"#ferror in function 'cairo_in_stroke'.",&tolua_err);
2585 #endif //#ifndef TOLUA_DISABLE
2587 /* function: cairo_in_fill */
2588 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_in_fill00
2589 static int tolua_cairo_cairo_in_fill00(lua_State* tolua_S)
2591 #ifndef TOLUA_RELEASE
2592 tolua_Error tolua_err;
2594 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2595 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2596 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2597 !tolua_isnoobj(tolua_S,4,&tolua_err)
2603 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2604 double x = ((double) tolua_tonumber(tolua_S,2,0));
2605 double y = ((double) tolua_tonumber(tolua_S,3,0));
2607 int tolua_ret = ( int) cairo_in_fill(cr,x,y);
2608 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
2612 #ifndef TOLUA_RELEASE
2614 tolua_error(tolua_S,"#ferror in function 'cairo_in_fill'.",&tolua_err);
2618 #endif //#ifndef TOLUA_DISABLE
2620 /* function: cairo_stroke_extents */
2621 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_stroke_extents00
2622 static int tolua_cairo_cairo_stroke_extents00(lua_State* tolua_S)
2624 #ifndef TOLUA_RELEASE
2625 tolua_Error tolua_err;
2627 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2628 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2629 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2630 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
2631 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
2632 !tolua_isnoobj(tolua_S,6,&tolua_err)
2638 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2639 double x1 = ((double) tolua_tonumber(tolua_S,2,0));
2640 double y1 = ((double) tolua_tonumber(tolua_S,3,0));
2641 double x2 = ((double) tolua_tonumber(tolua_S,4,0));
2642 double y2 = ((double) tolua_tonumber(tolua_S,5,0));
2644 cairo_stroke_extents(cr,&x1,&y1,&x2,&y2);
2645 tolua_pushnumber(tolua_S,(lua_Number)x1);
2646 tolua_pushnumber(tolua_S,(lua_Number)y1);
2647 tolua_pushnumber(tolua_S,(lua_Number)x2);
2648 tolua_pushnumber(tolua_S,(lua_Number)y2);
2652 #ifndef TOLUA_RELEASE
2654 tolua_error(tolua_S,"#ferror in function 'cairo_stroke_extents'.",&tolua_err);
2658 #endif //#ifndef TOLUA_DISABLE
2660 /* function: cairo_fill_extents */
2661 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_fill_extents00
2662 static int tolua_cairo_cairo_fill_extents00(lua_State* tolua_S)
2664 #ifndef TOLUA_RELEASE
2665 tolua_Error tolua_err;
2667 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2668 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2669 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2670 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
2671 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
2672 !tolua_isnoobj(tolua_S,6,&tolua_err)
2678 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2679 double x1 = ((double) tolua_tonumber(tolua_S,2,0));
2680 double y1 = ((double) tolua_tonumber(tolua_S,3,0));
2681 double x2 = ((double) tolua_tonumber(tolua_S,4,0));
2682 double y2 = ((double) tolua_tonumber(tolua_S,5,0));
2684 cairo_fill_extents(cr,&x1,&y1,&x2,&y2);
2685 tolua_pushnumber(tolua_S,(lua_Number)x1);
2686 tolua_pushnumber(tolua_S,(lua_Number)y1);
2687 tolua_pushnumber(tolua_S,(lua_Number)x2);
2688 tolua_pushnumber(tolua_S,(lua_Number)y2);
2692 #ifndef TOLUA_RELEASE
2694 tolua_error(tolua_S,"#ferror in function 'cairo_fill_extents'.",&tolua_err);
2698 #endif //#ifndef TOLUA_DISABLE
2700 /* function: cairo_reset_clip */
2701 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_reset_clip00
2702 static int tolua_cairo_cairo_reset_clip00(lua_State* tolua_S)
2704 #ifndef TOLUA_RELEASE
2705 tolua_Error tolua_err;
2707 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2708 !tolua_isnoobj(tolua_S,2,&tolua_err)
2714 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2716 cairo_reset_clip(cr);
2720 #ifndef TOLUA_RELEASE
2722 tolua_error(tolua_S,"#ferror in function 'cairo_reset_clip'.",&tolua_err);
2726 #endif //#ifndef TOLUA_DISABLE
2728 /* function: cairo_clip */
2729 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_clip00
2730 static int tolua_cairo_cairo_clip00(lua_State* tolua_S)
2732 #ifndef TOLUA_RELEASE
2733 tolua_Error tolua_err;
2735 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2736 !tolua_isnoobj(tolua_S,2,&tolua_err)
2742 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2748 #ifndef TOLUA_RELEASE
2750 tolua_error(tolua_S,"#ferror in function 'cairo_clip'.",&tolua_err);
2754 #endif //#ifndef TOLUA_DISABLE
2756 /* function: cairo_clip_preserve */
2757 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_clip_preserve00
2758 static int tolua_cairo_cairo_clip_preserve00(lua_State* tolua_S)
2760 #ifndef TOLUA_RELEASE
2761 tolua_Error tolua_err;
2763 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2764 !tolua_isnoobj(tolua_S,2,&tolua_err)
2770 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2772 cairo_clip_preserve(cr);
2776 #ifndef TOLUA_RELEASE
2778 tolua_error(tolua_S,"#ferror in function 'cairo_clip_preserve'.",&tolua_err);
2782 #endif //#ifndef TOLUA_DISABLE
2784 /* function: cairo_clip_extents */
2785 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_clip_extents00
2786 static int tolua_cairo_cairo_clip_extents00(lua_State* tolua_S)
2788 #ifndef TOLUA_RELEASE
2789 tolua_Error tolua_err;
2791 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
2792 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2793 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2794 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
2795 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
2796 !tolua_isnoobj(tolua_S,6,&tolua_err)
2802 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
2803 double x1 = ((double) tolua_tonumber(tolua_S,2,0));
2804 double y1 = ((double) tolua_tonumber(tolua_S,3,0));
2805 double x2 = ((double) tolua_tonumber(tolua_S,4,0));
2806 double y2 = ((double) tolua_tonumber(tolua_S,5,0));
2808 cairo_clip_extents(cr,&x1,&y1,&x2,&y2);
2809 tolua_pushnumber(tolua_S,(lua_Number)x1);
2810 tolua_pushnumber(tolua_S,(lua_Number)y1);
2811 tolua_pushnumber(tolua_S,(lua_Number)x2);
2812 tolua_pushnumber(tolua_S,(lua_Number)y2);
2816 #ifndef TOLUA_RELEASE
2818 tolua_error(tolua_S,"#ferror in function 'cairo_clip_extents'.",&tolua_err);
2822 #endif //#ifndef TOLUA_DISABLE
2824 /* get function: x of class cairo_rectangle_t */
2825 #ifndef TOLUA_DISABLE_tolua_get_cairo_rectangle_t_x
2826 static int tolua_get_cairo_rectangle_t_x(lua_State* tolua_S)
2828 cairo_rectangle_t* self = (cairo_rectangle_t*) tolua_tousertype(tolua_S,1,0);
2829 #ifndef TOLUA_RELEASE
2830 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
2832 tolua_pushnumber(tolua_S,(lua_Number)self->x);
2835 #endif //#ifndef TOLUA_DISABLE
2837 /* set function: x of class cairo_rectangle_t */
2838 #ifndef TOLUA_DISABLE_tolua_set_cairo_rectangle_t_x
2839 static int tolua_set_cairo_rectangle_t_x(lua_State* tolua_S)
2841 cairo_rectangle_t* self = (cairo_rectangle_t*) tolua_tousertype(tolua_S,1,0);
2842 #ifndef TOLUA_RELEASE
2843 tolua_Error tolua_err;
2844 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
2845 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
2846 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2848 self->x = ((double) tolua_tonumber(tolua_S,2,0))
2852 #endif //#ifndef TOLUA_DISABLE
2854 /* get function: y of class cairo_rectangle_t */
2855 #ifndef TOLUA_DISABLE_tolua_get_cairo_rectangle_t_y
2856 static int tolua_get_cairo_rectangle_t_y(lua_State* tolua_S)
2858 cairo_rectangle_t* self = (cairo_rectangle_t*) tolua_tousertype(tolua_S,1,0);
2859 #ifndef TOLUA_RELEASE
2860 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
2862 tolua_pushnumber(tolua_S,(lua_Number)self->y);
2865 #endif //#ifndef TOLUA_DISABLE
2867 /* set function: y of class cairo_rectangle_t */
2868 #ifndef TOLUA_DISABLE_tolua_set_cairo_rectangle_t_y
2869 static int tolua_set_cairo_rectangle_t_y(lua_State* tolua_S)
2871 cairo_rectangle_t* self = (cairo_rectangle_t*) tolua_tousertype(tolua_S,1,0);
2872 #ifndef TOLUA_RELEASE
2873 tolua_Error tolua_err;
2874 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
2875 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
2876 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2878 self->y = ((double) tolua_tonumber(tolua_S,2,0))
2882 #endif //#ifndef TOLUA_DISABLE
2884 /* get function: width of class cairo_rectangle_t */
2885 #ifndef TOLUA_DISABLE_tolua_get_cairo_rectangle_t_width
2886 static int tolua_get_cairo_rectangle_t_width(lua_State* tolua_S)
2888 cairo_rectangle_t* self = (cairo_rectangle_t*) tolua_tousertype(tolua_S,1,0);
2889 #ifndef TOLUA_RELEASE
2890 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'width'",NULL);
2892 tolua_pushnumber(tolua_S,(lua_Number)self->width);
2895 #endif //#ifndef TOLUA_DISABLE
2897 /* set function: width of class cairo_rectangle_t */
2898 #ifndef TOLUA_DISABLE_tolua_set_cairo_rectangle_t_width
2899 static int tolua_set_cairo_rectangle_t_width(lua_State* tolua_S)
2901 cairo_rectangle_t* self = (cairo_rectangle_t*) tolua_tousertype(tolua_S,1,0);
2902 #ifndef TOLUA_RELEASE
2903 tolua_Error tolua_err;
2904 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'width'",NULL);
2905 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
2906 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2908 self->width = ((double) tolua_tonumber(tolua_S,2,0))
2912 #endif //#ifndef TOLUA_DISABLE
2914 /* get function: height of class cairo_rectangle_t */
2915 #ifndef TOLUA_DISABLE_tolua_get_cairo_rectangle_t_height
2916 static int tolua_get_cairo_rectangle_t_height(lua_State* tolua_S)
2918 cairo_rectangle_t* self = (cairo_rectangle_t*) tolua_tousertype(tolua_S,1,0);
2919 #ifndef TOLUA_RELEASE
2920 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'height'",NULL);
2922 tolua_pushnumber(tolua_S,(lua_Number)self->height);
2925 #endif //#ifndef TOLUA_DISABLE
2927 /* set function: height of class cairo_rectangle_t */
2928 #ifndef TOLUA_DISABLE_tolua_set_cairo_rectangle_t_height
2929 static int tolua_set_cairo_rectangle_t_height(lua_State* tolua_S)
2931 cairo_rectangle_t* self = (cairo_rectangle_t*) tolua_tousertype(tolua_S,1,0);
2932 #ifndef TOLUA_RELEASE
2933 tolua_Error tolua_err;
2934 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'height'",NULL);
2935 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
2936 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2938 self->height = ((double) tolua_tonumber(tolua_S,2,0))
2942 #endif //#ifndef TOLUA_DISABLE
2944 /* get function: status of class cairo_rectangle_list_t */
2945 #ifndef TOLUA_DISABLE_tolua_get_cairo_rectangle_list_t_status
2946 static int tolua_get_cairo_rectangle_list_t_status(lua_State* tolua_S)
2948 cairo_rectangle_list_t* self = (cairo_rectangle_list_t*) tolua_tousertype(tolua_S,1,0);
2949 #ifndef TOLUA_RELEASE
2950 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'status'",NULL);
2952 tolua_pushnumber(tolua_S,(lua_Number)self->status);
2955 #endif //#ifndef TOLUA_DISABLE
2957 /* set function: status of class cairo_rectangle_list_t */
2958 #ifndef TOLUA_DISABLE_tolua_set_cairo_rectangle_list_t_status
2959 static int tolua_set_cairo_rectangle_list_t_status(lua_State* tolua_S)
2961 cairo_rectangle_list_t* self = (cairo_rectangle_list_t*) tolua_tousertype(tolua_S,1,0);
2962 #ifndef TOLUA_RELEASE
2963 tolua_Error tolua_err;
2964 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'status'",NULL);
2965 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
2966 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2968 self->status = ((cairo_status_t) (int) tolua_tonumber(tolua_S,2,0))
2972 #endif //#ifndef TOLUA_DISABLE
2974 /* get function: rectangles of class cairo_rectangle_list_t */
2975 #ifndef TOLUA_DISABLE_tolua_get_cairo_rectangle_list_t_rectangles_ptr
2976 static int tolua_get_cairo_rectangle_list_t_rectangles_ptr(lua_State* tolua_S)
2978 cairo_rectangle_list_t* self = (cairo_rectangle_list_t*) tolua_tousertype(tolua_S,1,0);
2979 #ifndef TOLUA_RELEASE
2980 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'rectangles'",NULL);
2982 tolua_pushusertype(tolua_S,(void*)self->rectangles,"cairo_rectangle_t");
2985 #endif //#ifndef TOLUA_DISABLE
2987 /* set function: rectangles of class cairo_rectangle_list_t */
2988 #ifndef TOLUA_DISABLE_tolua_set_cairo_rectangle_list_t_rectangles_ptr
2989 static int tolua_set_cairo_rectangle_list_t_rectangles_ptr(lua_State* tolua_S)
2991 cairo_rectangle_list_t* self = (cairo_rectangle_list_t*) tolua_tousertype(tolua_S,1,0);
2992 #ifndef TOLUA_RELEASE
2993 tolua_Error tolua_err;
2994 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'rectangles'",NULL);
2995 if (!tolua_isusertype(tolua_S,2,"cairo_rectangle_t",0,&tolua_err))
2996 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2998 self->rectangles = ((cairo_rectangle_t*) tolua_tousertype(tolua_S,2,0))
3002 #endif //#ifndef TOLUA_DISABLE
3004 /* get function: num_rectangles of class cairo_rectangle_list_t */
3005 #ifndef TOLUA_DISABLE_tolua_get_cairo_rectangle_list_t_num_rectangles
3006 static int tolua_get_cairo_rectangle_list_t_num_rectangles(lua_State* tolua_S)
3008 cairo_rectangle_list_t* self = (cairo_rectangle_list_t*) tolua_tousertype(tolua_S,1,0);
3009 #ifndef TOLUA_RELEASE
3010 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'num_rectangles'",NULL);
3012 tolua_pushnumber(tolua_S,(lua_Number)self->num_rectangles);
3015 #endif //#ifndef TOLUA_DISABLE
3017 /* set function: num_rectangles of class cairo_rectangle_list_t */
3018 #ifndef TOLUA_DISABLE_tolua_set_cairo_rectangle_list_t_num_rectangles
3019 static int tolua_set_cairo_rectangle_list_t_num_rectangles(lua_State* tolua_S)
3021 cairo_rectangle_list_t* self = (cairo_rectangle_list_t*) tolua_tousertype(tolua_S,1,0);
3022 #ifndef TOLUA_RELEASE
3023 tolua_Error tolua_err;
3024 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'num_rectangles'",NULL);
3025 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3026 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3028 self->num_rectangles = ((int) tolua_tonumber(tolua_S,2,0))
3032 #endif //#ifndef TOLUA_DISABLE
3034 /* function: cairo_copy_clip_rectangle_list */
3035 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_copy_clip_rectangle_list00
3036 static int tolua_cairo_cairo_copy_clip_rectangle_list00(lua_State* tolua_S)
3038 #ifndef TOLUA_RELEASE
3039 tolua_Error tolua_err;
3041 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
3042 !tolua_isnoobj(tolua_S,2,&tolua_err)
3048 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
3050 cairo_rectangle_list_t* tolua_ret = (cairo_rectangle_list_t*) cairo_copy_clip_rectangle_list(cr);
3051 tolua_pushusertype(tolua_S,(void*)tolua_ret,"cairo_rectangle_list_t");
3055 #ifndef TOLUA_RELEASE
3057 tolua_error(tolua_S,"#ferror in function 'cairo_copy_clip_rectangle_list'.",&tolua_err);
3061 #endif //#ifndef TOLUA_DISABLE
3063 /* function: cairo_rectangle_list_destroy */
3064 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_rectangle_list_destroy00
3065 static int tolua_cairo_cairo_rectangle_list_destroy00(lua_State* tolua_S)
3067 #ifndef TOLUA_RELEASE
3068 tolua_Error tolua_err;
3070 !tolua_isusertype(tolua_S,1,"cairo_rectangle_list_t",0,&tolua_err) ||
3071 !tolua_isnoobj(tolua_S,2,&tolua_err)
3077 cairo_rectangle_list_t* rectangle_list = ((cairo_rectangle_list_t*) tolua_tousertype(tolua_S,1,0));
3079 cairo_rectangle_list_destroy(rectangle_list);
3083 #ifndef TOLUA_RELEASE
3085 tolua_error(tolua_S,"#ferror in function 'cairo_rectangle_list_destroy'.",&tolua_err);
3089 #endif //#ifndef TOLUA_DISABLE
3091 /* get function: index of class cairo_glyph_t */
3092 #ifndef TOLUA_DISABLE_tolua_get_cairo_glyph_t_unsigned_index
3093 static int tolua_get_cairo_glyph_t_unsigned_index(lua_State* tolua_S)
3095 cairo_glyph_t* self = (cairo_glyph_t*) tolua_tousertype(tolua_S,1,0);
3096 #ifndef TOLUA_RELEASE
3097 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'index'",NULL);
3099 tolua_pushnumber(tolua_S,(lua_Number)self->index);
3102 #endif //#ifndef TOLUA_DISABLE
3104 /* set function: index of class cairo_glyph_t */
3105 #ifndef TOLUA_DISABLE_tolua_set_cairo_glyph_t_unsigned_index
3106 static int tolua_set_cairo_glyph_t_unsigned_index(lua_State* tolua_S)
3108 cairo_glyph_t* self = (cairo_glyph_t*) tolua_tousertype(tolua_S,1,0);
3109 #ifndef TOLUA_RELEASE
3110 tolua_Error tolua_err;
3111 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'index'",NULL);
3112 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3113 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3115 self->index = ((unsigned long) tolua_tonumber(tolua_S,2,0))
3119 #endif //#ifndef TOLUA_DISABLE
3121 /* get function: x of class cairo_glyph_t */
3122 #ifndef TOLUA_DISABLE_tolua_get_cairo_glyph_t_x
3123 static int tolua_get_cairo_glyph_t_x(lua_State* tolua_S)
3125 cairo_glyph_t* self = (cairo_glyph_t*) tolua_tousertype(tolua_S,1,0);
3126 #ifndef TOLUA_RELEASE
3127 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
3129 tolua_pushnumber(tolua_S,(lua_Number)self->x);
3132 #endif //#ifndef TOLUA_DISABLE
3134 /* set function: x of class cairo_glyph_t */
3135 #ifndef TOLUA_DISABLE_tolua_set_cairo_glyph_t_x
3136 static int tolua_set_cairo_glyph_t_x(lua_State* tolua_S)
3138 cairo_glyph_t* self = (cairo_glyph_t*) tolua_tousertype(tolua_S,1,0);
3139 #ifndef TOLUA_RELEASE
3140 tolua_Error tolua_err;
3141 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
3142 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3143 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3145 self->x = ((double) tolua_tonumber(tolua_S,2,0))
3149 #endif //#ifndef TOLUA_DISABLE
3151 /* get function: y of class cairo_glyph_t */
3152 #ifndef TOLUA_DISABLE_tolua_get_cairo_glyph_t_y
3153 static int tolua_get_cairo_glyph_t_y(lua_State* tolua_S)
3155 cairo_glyph_t* self = (cairo_glyph_t*) tolua_tousertype(tolua_S,1,0);
3156 #ifndef TOLUA_RELEASE
3157 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
3159 tolua_pushnumber(tolua_S,(lua_Number)self->y);
3162 #endif //#ifndef TOLUA_DISABLE
3164 /* set function: y of class cairo_glyph_t */
3165 #ifndef TOLUA_DISABLE_tolua_set_cairo_glyph_t_y
3166 static int tolua_set_cairo_glyph_t_y(lua_State* tolua_S)
3168 cairo_glyph_t* self = (cairo_glyph_t*) tolua_tousertype(tolua_S,1,0);
3169 #ifndef TOLUA_RELEASE
3170 tolua_Error tolua_err;
3171 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
3172 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3173 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3175 self->y = ((double) tolua_tonumber(tolua_S,2,0))
3179 #endif //#ifndef TOLUA_DISABLE
3181 /* function: cairo_glyph_allocate */
3182 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_glyph_allocate00
3183 static int tolua_cairo_cairo_glyph_allocate00(lua_State* tolua_S)
3185 #ifndef TOLUA_RELEASE
3186 tolua_Error tolua_err;
3188 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
3189 !tolua_isnoobj(tolua_S,2,&tolua_err)
3195 int num_glyphs = ((int) tolua_tonumber(tolua_S,1,0));
3197 cairo_glyph_t* tolua_ret = (cairo_glyph_t*) cairo_glyph_allocate(num_glyphs);
3198 tolua_pushusertype(tolua_S,(void*)tolua_ret,"cairo_glyph_t");
3202 #ifndef TOLUA_RELEASE
3204 tolua_error(tolua_S,"#ferror in function 'cairo_glyph_allocate'.",&tolua_err);
3208 #endif //#ifndef TOLUA_DISABLE
3210 /* function: cairo_glyph_free */
3211 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_glyph_free00
3212 static int tolua_cairo_cairo_glyph_free00(lua_State* tolua_S)
3214 #ifndef TOLUA_RELEASE
3215 tolua_Error tolua_err;
3217 !tolua_isusertype(tolua_S,1,"cairo_glyph_t",0,&tolua_err) ||
3218 !tolua_isnoobj(tolua_S,2,&tolua_err)
3224 cairo_glyph_t* glyphs = ((cairo_glyph_t*) tolua_tousertype(tolua_S,1,0));
3226 cairo_glyph_free(glyphs);
3230 #ifndef TOLUA_RELEASE
3232 tolua_error(tolua_S,"#ferror in function 'cairo_glyph_free'.",&tolua_err);
3236 #endif //#ifndef TOLUA_DISABLE
3238 /* get function: num_bytes of class cairo_text_cluster_t */
3239 #ifndef TOLUA_DISABLE_tolua_get_cairo_text_cluster_t_num_bytes
3240 static int tolua_get_cairo_text_cluster_t_num_bytes(lua_State* tolua_S)
3242 cairo_text_cluster_t* self = (cairo_text_cluster_t*) tolua_tousertype(tolua_S,1,0);
3243 #ifndef TOLUA_RELEASE
3244 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'num_bytes'",NULL);
3246 tolua_pushnumber(tolua_S,(lua_Number)self->num_bytes);
3249 #endif //#ifndef TOLUA_DISABLE
3251 /* set function: num_bytes of class cairo_text_cluster_t */
3252 #ifndef TOLUA_DISABLE_tolua_set_cairo_text_cluster_t_num_bytes
3253 static int tolua_set_cairo_text_cluster_t_num_bytes(lua_State* tolua_S)
3255 cairo_text_cluster_t* self = (cairo_text_cluster_t*) tolua_tousertype(tolua_S,1,0);
3256 #ifndef TOLUA_RELEASE
3257 tolua_Error tolua_err;
3258 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'num_bytes'",NULL);
3259 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3260 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3262 self->num_bytes = ((int) tolua_tonumber(tolua_S,2,0))
3266 #endif //#ifndef TOLUA_DISABLE
3268 /* get function: num_glyphs of class cairo_text_cluster_t */
3269 #ifndef TOLUA_DISABLE_tolua_get_cairo_text_cluster_t_num_glyphs
3270 static int tolua_get_cairo_text_cluster_t_num_glyphs(lua_State* tolua_S)
3272 cairo_text_cluster_t* self = (cairo_text_cluster_t*) tolua_tousertype(tolua_S,1,0);
3273 #ifndef TOLUA_RELEASE
3274 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'num_glyphs'",NULL);
3276 tolua_pushnumber(tolua_S,(lua_Number)self->num_glyphs);
3279 #endif //#ifndef TOLUA_DISABLE
3281 /* set function: num_glyphs of class cairo_text_cluster_t */
3282 #ifndef TOLUA_DISABLE_tolua_set_cairo_text_cluster_t_num_glyphs
3283 static int tolua_set_cairo_text_cluster_t_num_glyphs(lua_State* tolua_S)
3285 cairo_text_cluster_t* self = (cairo_text_cluster_t*) tolua_tousertype(tolua_S,1,0);
3286 #ifndef TOLUA_RELEASE
3287 tolua_Error tolua_err;
3288 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'num_glyphs'",NULL);
3289 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3290 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3292 self->num_glyphs = ((int) tolua_tonumber(tolua_S,2,0))
3296 #endif //#ifndef TOLUA_DISABLE
3298 /* function: cairo_text_cluster_allocate */
3299 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_text_cluster_allocate00
3300 static int tolua_cairo_cairo_text_cluster_allocate00(lua_State* tolua_S)
3302 #ifndef TOLUA_RELEASE
3303 tolua_Error tolua_err;
3305 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
3306 !tolua_isnoobj(tolua_S,2,&tolua_err)
3312 int num_clusters = ((int) tolua_tonumber(tolua_S,1,0));
3314 cairo_text_cluster_t* tolua_ret = (cairo_text_cluster_t*) cairo_text_cluster_allocate(num_clusters);
3315 tolua_pushusertype(tolua_S,(void*)tolua_ret,"cairo_text_cluster_t");
3319 #ifndef TOLUA_RELEASE
3321 tolua_error(tolua_S,"#ferror in function 'cairo_text_cluster_allocate'.",&tolua_err);
3325 #endif //#ifndef TOLUA_DISABLE
3327 /* function: cairo_text_cluster_free */
3328 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_text_cluster_free00
3329 static int tolua_cairo_cairo_text_cluster_free00(lua_State* tolua_S)
3331 #ifndef TOLUA_RELEASE
3332 tolua_Error tolua_err;
3334 !tolua_isusertype(tolua_S,1,"cairo_text_cluster_t",0,&tolua_err) ||
3335 !tolua_isnoobj(tolua_S,2,&tolua_err)
3341 cairo_text_cluster_t* clusters = ((cairo_text_cluster_t*) tolua_tousertype(tolua_S,1,0));
3343 cairo_text_cluster_free(clusters);
3347 #ifndef TOLUA_RELEASE
3349 tolua_error(tolua_S,"#ferror in function 'cairo_text_cluster_free'.",&tolua_err);
3353 #endif //#ifndef TOLUA_DISABLE
3355 /* get function: x_bearing of class cairo_text_extents_t */
3356 #ifndef TOLUA_DISABLE_tolua_get_cairo_text_extents_t_x_bearing
3357 static int tolua_get_cairo_text_extents_t_x_bearing(lua_State* tolua_S)
3359 cairo_text_extents_t* self = (cairo_text_extents_t*) tolua_tousertype(tolua_S,1,0);
3360 #ifndef TOLUA_RELEASE
3361 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x_bearing'",NULL);
3363 tolua_pushnumber(tolua_S,(lua_Number)self->x_bearing);
3366 #endif //#ifndef TOLUA_DISABLE
3368 /* set function: x_bearing of class cairo_text_extents_t */
3369 #ifndef TOLUA_DISABLE_tolua_set_cairo_text_extents_t_x_bearing
3370 static int tolua_set_cairo_text_extents_t_x_bearing(lua_State* tolua_S)
3372 cairo_text_extents_t* self = (cairo_text_extents_t*) tolua_tousertype(tolua_S,1,0);
3373 #ifndef TOLUA_RELEASE
3374 tolua_Error tolua_err;
3375 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x_bearing'",NULL);
3376 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3377 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3379 self->x_bearing = ((double) tolua_tonumber(tolua_S,2,0))
3383 #endif //#ifndef TOLUA_DISABLE
3385 /* get function: y_bearing of class cairo_text_extents_t */
3386 #ifndef TOLUA_DISABLE_tolua_get_cairo_text_extents_t_y_bearing
3387 static int tolua_get_cairo_text_extents_t_y_bearing(lua_State* tolua_S)
3389 cairo_text_extents_t* self = (cairo_text_extents_t*) tolua_tousertype(tolua_S,1,0);
3390 #ifndef TOLUA_RELEASE
3391 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y_bearing'",NULL);
3393 tolua_pushnumber(tolua_S,(lua_Number)self->y_bearing);
3396 #endif //#ifndef TOLUA_DISABLE
3398 /* set function: y_bearing of class cairo_text_extents_t */
3399 #ifndef TOLUA_DISABLE_tolua_set_cairo_text_extents_t_y_bearing
3400 static int tolua_set_cairo_text_extents_t_y_bearing(lua_State* tolua_S)
3402 cairo_text_extents_t* self = (cairo_text_extents_t*) tolua_tousertype(tolua_S,1,0);
3403 #ifndef TOLUA_RELEASE
3404 tolua_Error tolua_err;
3405 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y_bearing'",NULL);
3406 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3407 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3409 self->y_bearing = ((double) tolua_tonumber(tolua_S,2,0))
3413 #endif //#ifndef TOLUA_DISABLE
3415 /* get function: width of class cairo_text_extents_t */
3416 #ifndef TOLUA_DISABLE_tolua_get_cairo_text_extents_t_width
3417 static int tolua_get_cairo_text_extents_t_width(lua_State* tolua_S)
3419 cairo_text_extents_t* self = (cairo_text_extents_t*) tolua_tousertype(tolua_S,1,0);
3420 #ifndef TOLUA_RELEASE
3421 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'width'",NULL);
3423 tolua_pushnumber(tolua_S,(lua_Number)self->width);
3426 #endif //#ifndef TOLUA_DISABLE
3428 /* set function: width of class cairo_text_extents_t */
3429 #ifndef TOLUA_DISABLE_tolua_set_cairo_text_extents_t_width
3430 static int tolua_set_cairo_text_extents_t_width(lua_State* tolua_S)
3432 cairo_text_extents_t* self = (cairo_text_extents_t*) tolua_tousertype(tolua_S,1,0);
3433 #ifndef TOLUA_RELEASE
3434 tolua_Error tolua_err;
3435 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'width'",NULL);
3436 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3437 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3439 self->width = ((double) tolua_tonumber(tolua_S,2,0))
3443 #endif //#ifndef TOLUA_DISABLE
3445 /* get function: height of class cairo_text_extents_t */
3446 #ifndef TOLUA_DISABLE_tolua_get_cairo_text_extents_t_height
3447 static int tolua_get_cairo_text_extents_t_height(lua_State* tolua_S)
3449 cairo_text_extents_t* self = (cairo_text_extents_t*) tolua_tousertype(tolua_S,1,0);
3450 #ifndef TOLUA_RELEASE
3451 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'height'",NULL);
3453 tolua_pushnumber(tolua_S,(lua_Number)self->height);
3456 #endif //#ifndef TOLUA_DISABLE
3458 /* set function: height of class cairo_text_extents_t */
3459 #ifndef TOLUA_DISABLE_tolua_set_cairo_text_extents_t_height
3460 static int tolua_set_cairo_text_extents_t_height(lua_State* tolua_S)
3462 cairo_text_extents_t* self = (cairo_text_extents_t*) tolua_tousertype(tolua_S,1,0);
3463 #ifndef TOLUA_RELEASE
3464 tolua_Error tolua_err;
3465 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'height'",NULL);
3466 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3467 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3469 self->height = ((double) tolua_tonumber(tolua_S,2,0))
3473 #endif //#ifndef TOLUA_DISABLE
3475 /* get function: x_advance of class cairo_text_extents_t */
3476 #ifndef TOLUA_DISABLE_tolua_get_cairo_text_extents_t_x_advance
3477 static int tolua_get_cairo_text_extents_t_x_advance(lua_State* tolua_S)
3479 cairo_text_extents_t* self = (cairo_text_extents_t*) tolua_tousertype(tolua_S,1,0);
3480 #ifndef TOLUA_RELEASE
3481 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x_advance'",NULL);
3483 tolua_pushnumber(tolua_S,(lua_Number)self->x_advance);
3486 #endif //#ifndef TOLUA_DISABLE
3488 /* set function: x_advance of class cairo_text_extents_t */
3489 #ifndef TOLUA_DISABLE_tolua_set_cairo_text_extents_t_x_advance
3490 static int tolua_set_cairo_text_extents_t_x_advance(lua_State* tolua_S)
3492 cairo_text_extents_t* self = (cairo_text_extents_t*) tolua_tousertype(tolua_S,1,0);
3493 #ifndef TOLUA_RELEASE
3494 tolua_Error tolua_err;
3495 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x_advance'",NULL);
3496 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3497 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3499 self->x_advance = ((double) tolua_tonumber(tolua_S,2,0))
3503 #endif //#ifndef TOLUA_DISABLE
3505 /* get function: y_advance of class cairo_text_extents_t */
3506 #ifndef TOLUA_DISABLE_tolua_get_cairo_text_extents_t_y_advance
3507 static int tolua_get_cairo_text_extents_t_y_advance(lua_State* tolua_S)
3509 cairo_text_extents_t* self = (cairo_text_extents_t*) tolua_tousertype(tolua_S,1,0);
3510 #ifndef TOLUA_RELEASE
3511 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y_advance'",NULL);
3513 tolua_pushnumber(tolua_S,(lua_Number)self->y_advance);
3516 #endif //#ifndef TOLUA_DISABLE
3518 /* set function: y_advance of class cairo_text_extents_t */
3519 #ifndef TOLUA_DISABLE_tolua_set_cairo_text_extents_t_y_advance
3520 static int tolua_set_cairo_text_extents_t_y_advance(lua_State* tolua_S)
3522 cairo_text_extents_t* self = (cairo_text_extents_t*) tolua_tousertype(tolua_S,1,0);
3523 #ifndef TOLUA_RELEASE
3524 tolua_Error tolua_err;
3525 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y_advance'",NULL);
3526 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3527 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3529 self->y_advance = ((double) tolua_tonumber(tolua_S,2,0))
3533 #endif //#ifndef TOLUA_DISABLE
3535 /* method: create_cairo_text_extents_t of class cairo_text_extents_t */
3536 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_text_extents_t_create00
3537 static int tolua_cairo_cairo_text_extents_t_create00(lua_State* tolua_S)
3539 #ifndef TOLUA_RELEASE
3540 tolua_Error tolua_err;
3542 !tolua_isusertable(tolua_S,1,"cairo_text_extents_t",0,&tolua_err) ||
3543 !tolua_isnoobj(tolua_S,2,&tolua_err)
3550 tolua_outside cairo_text_extents_t* tolua_ret = (tolua_outside cairo_text_extents_t*) create_cairo_text_extents_t();
3551 tolua_pushusertype(tolua_S,(void*)tolua_ret,"cairo_text_extents_t");
3555 #ifndef TOLUA_RELEASE
3557 tolua_error(tolua_S,"#ferror in function 'create'.",&tolua_err);
3561 #endif //#ifndef TOLUA_DISABLE
3563 /* get function: ascent of class cairo_font_extents_t */
3564 #ifndef TOLUA_DISABLE_tolua_get_cairo_font_extents_t_ascent
3565 static int tolua_get_cairo_font_extents_t_ascent(lua_State* tolua_S)
3567 cairo_font_extents_t* self = (cairo_font_extents_t*) tolua_tousertype(tolua_S,1,0);
3568 #ifndef TOLUA_RELEASE
3569 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ascent'",NULL);
3571 tolua_pushnumber(tolua_S,(lua_Number)self->ascent);
3574 #endif //#ifndef TOLUA_DISABLE
3576 /* set function: ascent of class cairo_font_extents_t */
3577 #ifndef TOLUA_DISABLE_tolua_set_cairo_font_extents_t_ascent
3578 static int tolua_set_cairo_font_extents_t_ascent(lua_State* tolua_S)
3580 cairo_font_extents_t* self = (cairo_font_extents_t*) tolua_tousertype(tolua_S,1,0);
3581 #ifndef TOLUA_RELEASE
3582 tolua_Error tolua_err;
3583 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ascent'",NULL);
3584 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3585 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3587 self->ascent = ((double) tolua_tonumber(tolua_S,2,0))
3591 #endif //#ifndef TOLUA_DISABLE
3593 /* get function: descent of class cairo_font_extents_t */
3594 #ifndef TOLUA_DISABLE_tolua_get_cairo_font_extents_t_descent
3595 static int tolua_get_cairo_font_extents_t_descent(lua_State* tolua_S)
3597 cairo_font_extents_t* self = (cairo_font_extents_t*) tolua_tousertype(tolua_S,1,0);
3598 #ifndef TOLUA_RELEASE
3599 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'descent'",NULL);
3601 tolua_pushnumber(tolua_S,(lua_Number)self->descent);
3604 #endif //#ifndef TOLUA_DISABLE
3606 /* set function: descent of class cairo_font_extents_t */
3607 #ifndef TOLUA_DISABLE_tolua_set_cairo_font_extents_t_descent
3608 static int tolua_set_cairo_font_extents_t_descent(lua_State* tolua_S)
3610 cairo_font_extents_t* self = (cairo_font_extents_t*) tolua_tousertype(tolua_S,1,0);
3611 #ifndef TOLUA_RELEASE
3612 tolua_Error tolua_err;
3613 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'descent'",NULL);
3614 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3615 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3617 self->descent = ((double) tolua_tonumber(tolua_S,2,0))
3621 #endif //#ifndef TOLUA_DISABLE
3623 /* get function: height of class cairo_font_extents_t */
3624 #ifndef TOLUA_DISABLE_tolua_get_cairo_font_extents_t_height
3625 static int tolua_get_cairo_font_extents_t_height(lua_State* tolua_S)
3627 cairo_font_extents_t* self = (cairo_font_extents_t*) tolua_tousertype(tolua_S,1,0);
3628 #ifndef TOLUA_RELEASE
3629 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'height'",NULL);
3631 tolua_pushnumber(tolua_S,(lua_Number)self->height);
3634 #endif //#ifndef TOLUA_DISABLE
3636 /* set function: height of class cairo_font_extents_t */
3637 #ifndef TOLUA_DISABLE_tolua_set_cairo_font_extents_t_height
3638 static int tolua_set_cairo_font_extents_t_height(lua_State* tolua_S)
3640 cairo_font_extents_t* self = (cairo_font_extents_t*) tolua_tousertype(tolua_S,1,0);
3641 #ifndef TOLUA_RELEASE
3642 tolua_Error tolua_err;
3643 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'height'",NULL);
3644 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3645 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3647 self->height = ((double) tolua_tonumber(tolua_S,2,0))
3651 #endif //#ifndef TOLUA_DISABLE
3653 /* get function: max_x_advance of class cairo_font_extents_t */
3654 #ifndef TOLUA_DISABLE_tolua_get_cairo_font_extents_t_max_x_advance
3655 static int tolua_get_cairo_font_extents_t_max_x_advance(lua_State* tolua_S)
3657 cairo_font_extents_t* self = (cairo_font_extents_t*) tolua_tousertype(tolua_S,1,0);
3658 #ifndef TOLUA_RELEASE
3659 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'max_x_advance'",NULL);
3661 tolua_pushnumber(tolua_S,(lua_Number)self->max_x_advance);
3664 #endif //#ifndef TOLUA_DISABLE
3666 /* set function: max_x_advance of class cairo_font_extents_t */
3667 #ifndef TOLUA_DISABLE_tolua_set_cairo_font_extents_t_max_x_advance
3668 static int tolua_set_cairo_font_extents_t_max_x_advance(lua_State* tolua_S)
3670 cairo_font_extents_t* self = (cairo_font_extents_t*) tolua_tousertype(tolua_S,1,0);
3671 #ifndef TOLUA_RELEASE
3672 tolua_Error tolua_err;
3673 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'max_x_advance'",NULL);
3674 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3675 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3677 self->max_x_advance = ((double) tolua_tonumber(tolua_S,2,0))
3681 #endif //#ifndef TOLUA_DISABLE
3683 /* get function: max_y_advance of class cairo_font_extents_t */
3684 #ifndef TOLUA_DISABLE_tolua_get_cairo_font_extents_t_max_y_advance
3685 static int tolua_get_cairo_font_extents_t_max_y_advance(lua_State* tolua_S)
3687 cairo_font_extents_t* self = (cairo_font_extents_t*) tolua_tousertype(tolua_S,1,0);
3688 #ifndef TOLUA_RELEASE
3689 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'max_y_advance'",NULL);
3691 tolua_pushnumber(tolua_S,(lua_Number)self->max_y_advance);
3694 #endif //#ifndef TOLUA_DISABLE
3696 /* set function: max_y_advance of class cairo_font_extents_t */
3697 #ifndef TOLUA_DISABLE_tolua_set_cairo_font_extents_t_max_y_advance
3698 static int tolua_set_cairo_font_extents_t_max_y_advance(lua_State* tolua_S)
3700 cairo_font_extents_t* self = (cairo_font_extents_t*) tolua_tousertype(tolua_S,1,0);
3701 #ifndef TOLUA_RELEASE
3702 tolua_Error tolua_err;
3703 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'max_y_advance'",NULL);
3704 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3705 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3707 self->max_y_advance = ((double) tolua_tonumber(tolua_S,2,0))
3711 #endif //#ifndef TOLUA_DISABLE
3713 /* method: create_cairo_font_extents_t of class cairo_font_extents_t */
3714 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_extents_t_create00
3715 static int tolua_cairo_cairo_font_extents_t_create00(lua_State* tolua_S)
3717 #ifndef TOLUA_RELEASE
3718 tolua_Error tolua_err;
3720 !tolua_isusertable(tolua_S,1,"cairo_font_extents_t",0,&tolua_err) ||
3721 !tolua_isnoobj(tolua_S,2,&tolua_err)
3728 tolua_outside cairo_font_extents_t* tolua_ret = (tolua_outside cairo_font_extents_t*) create_cairo_font_extents_t();
3729 tolua_pushusertype(tolua_S,(void*)tolua_ret,"cairo_font_extents_t");
3733 #ifndef TOLUA_RELEASE
3735 tolua_error(tolua_S,"#ferror in function 'create'.",&tolua_err);
3739 #endif //#ifndef TOLUA_DISABLE
3741 /* function: cairo_font_options_create */
3742 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_options_create00
3743 static int tolua_cairo_cairo_font_options_create00(lua_State* tolua_S)
3745 #ifndef TOLUA_RELEASE
3746 tolua_Error tolua_err;
3748 !tolua_isnoobj(tolua_S,1,&tolua_err)
3755 struct _cairo_font_options* tolua_ret = ( struct _cairo_font_options*) cairo_font_options_create();
3756 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_font_options");
3760 #ifndef TOLUA_RELEASE
3762 tolua_error(tolua_S,"#ferror in function 'cairo_font_options_create'.",&tolua_err);
3766 #endif //#ifndef TOLUA_DISABLE
3768 /* function: cairo_font_options_copy */
3769 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_options_copy00
3770 static int tolua_cairo_cairo_font_options_copy00(lua_State* tolua_S)
3772 #ifndef TOLUA_RELEASE
3773 tolua_Error tolua_err;
3775 !tolua_isusertype(tolua_S,1,"_cairo_font_options",0,&tolua_err) ||
3776 !tolua_isnoobj(tolua_S,2,&tolua_err)
3782 struct _cairo_font_options* original = (( struct _cairo_font_options*) tolua_tousertype(tolua_S,1,0));
3784 struct _cairo_font_options* tolua_ret = ( struct _cairo_font_options*) cairo_font_options_copy(original);
3785 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_font_options");
3789 #ifndef TOLUA_RELEASE
3791 tolua_error(tolua_S,"#ferror in function 'cairo_font_options_copy'.",&tolua_err);
3795 #endif //#ifndef TOLUA_DISABLE
3797 /* function: cairo_font_options_destroy */
3798 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_options_destroy00
3799 static int tolua_cairo_cairo_font_options_destroy00(lua_State* tolua_S)
3801 #ifndef TOLUA_RELEASE
3802 tolua_Error tolua_err;
3804 !tolua_isusertype(tolua_S,1,"_cairo_font_options",0,&tolua_err) ||
3805 !tolua_isnoobj(tolua_S,2,&tolua_err)
3811 struct _cairo_font_options* options = (( struct _cairo_font_options*) tolua_tousertype(tolua_S,1,0));
3813 cairo_font_options_destroy(options);
3817 #ifndef TOLUA_RELEASE
3819 tolua_error(tolua_S,"#ferror in function 'cairo_font_options_destroy'.",&tolua_err);
3823 #endif //#ifndef TOLUA_DISABLE
3825 /* function: cairo_font_options_status */
3826 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_options_status00
3827 static int tolua_cairo_cairo_font_options_status00(lua_State* tolua_S)
3829 #ifndef TOLUA_RELEASE
3830 tolua_Error tolua_err;
3832 !tolua_isusertype(tolua_S,1,"_cairo_font_options",0,&tolua_err) ||
3833 !tolua_isnoobj(tolua_S,2,&tolua_err)
3839 struct _cairo_font_options* options = (( struct _cairo_font_options*) tolua_tousertype(tolua_S,1,0));
3841 cairo_status_t tolua_ret = (cairo_status_t) cairo_font_options_status(options);
3842 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
3846 #ifndef TOLUA_RELEASE
3848 tolua_error(tolua_S,"#ferror in function 'cairo_font_options_status'.",&tolua_err);
3852 #endif //#ifndef TOLUA_DISABLE
3854 /* function: cairo_font_options_merge */
3855 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_options_merge00
3856 static int tolua_cairo_cairo_font_options_merge00(lua_State* tolua_S)
3858 #ifndef TOLUA_RELEASE
3859 tolua_Error tolua_err;
3861 !tolua_isusertype(tolua_S,1,"_cairo_font_options",0,&tolua_err) ||
3862 !tolua_isusertype(tolua_S,2,"_cairo_font_options",0,&tolua_err) ||
3863 !tolua_isnoobj(tolua_S,3,&tolua_err)
3869 struct _cairo_font_options* options = (( struct _cairo_font_options*) tolua_tousertype(tolua_S,1,0));
3870 struct _cairo_font_options* other = (( struct _cairo_font_options*) tolua_tousertype(tolua_S,2,0));
3872 cairo_font_options_merge(options,other);
3876 #ifndef TOLUA_RELEASE
3878 tolua_error(tolua_S,"#ferror in function 'cairo_font_options_merge'.",&tolua_err);
3882 #endif //#ifndef TOLUA_DISABLE
3884 /* function: cairo_font_options_equal */
3885 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_options_equal00
3886 static int tolua_cairo_cairo_font_options_equal00(lua_State* tolua_S)
3888 #ifndef TOLUA_RELEASE
3889 tolua_Error tolua_err;
3891 !tolua_isusertype(tolua_S,1,"_cairo_font_options",0,&tolua_err) ||
3892 !tolua_isusertype(tolua_S,2,"_cairo_font_options",0,&tolua_err) ||
3893 !tolua_isnoobj(tolua_S,3,&tolua_err)
3899 struct _cairo_font_options* options = (( struct _cairo_font_options*) tolua_tousertype(tolua_S,1,0));
3900 struct _cairo_font_options* other = (( struct _cairo_font_options*) tolua_tousertype(tolua_S,2,0));
3902 int tolua_ret = ( int) cairo_font_options_equal(options,other);
3903 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
3907 #ifndef TOLUA_RELEASE
3909 tolua_error(tolua_S,"#ferror in function 'cairo_font_options_equal'.",&tolua_err);
3913 #endif //#ifndef TOLUA_DISABLE
3915 /* function: cairo_font_options_hash */
3916 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_options_hash00
3917 static int tolua_cairo_cairo_font_options_hash00(lua_State* tolua_S)
3919 #ifndef TOLUA_RELEASE
3920 tolua_Error tolua_err;
3922 !tolua_isusertype(tolua_S,1,"_cairo_font_options",0,&tolua_err) ||
3923 !tolua_isnoobj(tolua_S,2,&tolua_err)
3929 struct _cairo_font_options* options = (( struct _cairo_font_options*) tolua_tousertype(tolua_S,1,0));
3931 unsigned long tolua_ret = (unsigned long) cairo_font_options_hash(options);
3932 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
3936 #ifndef TOLUA_RELEASE
3938 tolua_error(tolua_S,"#ferror in function 'cairo_font_options_hash'.",&tolua_err);
3942 #endif //#ifndef TOLUA_DISABLE
3944 /* function: cairo_font_options_set_antialias */
3945 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_options_set_antialias00
3946 static int tolua_cairo_cairo_font_options_set_antialias00(lua_State* tolua_S)
3948 #ifndef TOLUA_RELEASE
3949 tolua_Error tolua_err;
3951 !tolua_isusertype(tolua_S,1,"_cairo_font_options",0,&tolua_err) ||
3952 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3953 !tolua_isnoobj(tolua_S,3,&tolua_err)
3959 struct _cairo_font_options* options = (( struct _cairo_font_options*) tolua_tousertype(tolua_S,1,0));
3960 cairo_antialias_t antialias = ((cairo_antialias_t) (int) tolua_tonumber(tolua_S,2,0));
3962 cairo_font_options_set_antialias(options,antialias);
3966 #ifndef TOLUA_RELEASE
3968 tolua_error(tolua_S,"#ferror in function 'cairo_font_options_set_antialias'.",&tolua_err);
3972 #endif //#ifndef TOLUA_DISABLE
3974 /* function: cairo_font_options_get_antialias */
3975 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_options_get_antialias00
3976 static int tolua_cairo_cairo_font_options_get_antialias00(lua_State* tolua_S)
3978 #ifndef TOLUA_RELEASE
3979 tolua_Error tolua_err;
3981 !tolua_isusertype(tolua_S,1,"_cairo_font_options",0,&tolua_err) ||
3982 !tolua_isnoobj(tolua_S,2,&tolua_err)
3988 struct _cairo_font_options* options = (( struct _cairo_font_options*) tolua_tousertype(tolua_S,1,0));
3990 cairo_antialias_t tolua_ret = (cairo_antialias_t) cairo_font_options_get_antialias(options);
3991 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
3995 #ifndef TOLUA_RELEASE
3997 tolua_error(tolua_S,"#ferror in function 'cairo_font_options_get_antialias'.",&tolua_err);
4001 #endif //#ifndef TOLUA_DISABLE
4003 /* function: cairo_font_options_set_subpixel_order */
4004 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_options_set_subpixel_order00
4005 static int tolua_cairo_cairo_font_options_set_subpixel_order00(lua_State* tolua_S)
4007 #ifndef TOLUA_RELEASE
4008 tolua_Error tolua_err;
4010 !tolua_isusertype(tolua_S,1,"_cairo_font_options",0,&tolua_err) ||
4011 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
4012 !tolua_isnoobj(tolua_S,3,&tolua_err)
4018 struct _cairo_font_options* options = (( struct _cairo_font_options*) tolua_tousertype(tolua_S,1,0));
4019 cairo_subpixel_order_t subpixel_order = ((cairo_subpixel_order_t) (int) tolua_tonumber(tolua_S,2,0));
4021 cairo_font_options_set_subpixel_order(options,subpixel_order);
4025 #ifndef TOLUA_RELEASE
4027 tolua_error(tolua_S,"#ferror in function 'cairo_font_options_set_subpixel_order'.",&tolua_err);
4031 #endif //#ifndef TOLUA_DISABLE
4033 /* function: cairo_font_options_get_subpixel_order */
4034 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_options_get_subpixel_order00
4035 static int tolua_cairo_cairo_font_options_get_subpixel_order00(lua_State* tolua_S)
4037 #ifndef TOLUA_RELEASE
4038 tolua_Error tolua_err;
4040 !tolua_isusertype(tolua_S,1,"_cairo_font_options",0,&tolua_err) ||
4041 !tolua_isnoobj(tolua_S,2,&tolua_err)
4047 struct _cairo_font_options* options = (( struct _cairo_font_options*) tolua_tousertype(tolua_S,1,0));
4049 cairo_subpixel_order_t tolua_ret = (cairo_subpixel_order_t) cairo_font_options_get_subpixel_order(options);
4050 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4054 #ifndef TOLUA_RELEASE
4056 tolua_error(tolua_S,"#ferror in function 'cairo_font_options_get_subpixel_order'.",&tolua_err);
4060 #endif //#ifndef TOLUA_DISABLE
4062 /* function: cairo_font_options_set_hint_style */
4063 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_options_set_hint_style00
4064 static int tolua_cairo_cairo_font_options_set_hint_style00(lua_State* tolua_S)
4066 #ifndef TOLUA_RELEASE
4067 tolua_Error tolua_err;
4069 !tolua_isusertype(tolua_S,1,"_cairo_font_options",0,&tolua_err) ||
4070 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
4071 !tolua_isnoobj(tolua_S,3,&tolua_err)
4077 struct _cairo_font_options* options = (( struct _cairo_font_options*) tolua_tousertype(tolua_S,1,0));
4078 cairo_hint_style_t hint_style = ((cairo_hint_style_t) (int) tolua_tonumber(tolua_S,2,0));
4080 cairo_font_options_set_hint_style(options,hint_style);
4084 #ifndef TOLUA_RELEASE
4086 tolua_error(tolua_S,"#ferror in function 'cairo_font_options_set_hint_style'.",&tolua_err);
4090 #endif //#ifndef TOLUA_DISABLE
4092 /* function: cairo_font_options_get_hint_style */
4093 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_options_get_hint_style00
4094 static int tolua_cairo_cairo_font_options_get_hint_style00(lua_State* tolua_S)
4096 #ifndef TOLUA_RELEASE
4097 tolua_Error tolua_err;
4099 !tolua_isusertype(tolua_S,1,"_cairo_font_options",0,&tolua_err) ||
4100 !tolua_isnoobj(tolua_S,2,&tolua_err)
4106 struct _cairo_font_options* options = (( struct _cairo_font_options*) tolua_tousertype(tolua_S,1,0));
4108 cairo_hint_style_t tolua_ret = (cairo_hint_style_t) cairo_font_options_get_hint_style(options);
4109 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4113 #ifndef TOLUA_RELEASE
4115 tolua_error(tolua_S,"#ferror in function 'cairo_font_options_get_hint_style'.",&tolua_err);
4119 #endif //#ifndef TOLUA_DISABLE
4121 /* function: cairo_font_options_set_hint_metrics */
4122 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_options_set_hint_metrics00
4123 static int tolua_cairo_cairo_font_options_set_hint_metrics00(lua_State* tolua_S)
4125 #ifndef TOLUA_RELEASE
4126 tolua_Error tolua_err;
4128 !tolua_isusertype(tolua_S,1,"_cairo_font_options",0,&tolua_err) ||
4129 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
4130 !tolua_isnoobj(tolua_S,3,&tolua_err)
4136 struct _cairo_font_options* options = (( struct _cairo_font_options*) tolua_tousertype(tolua_S,1,0));
4137 cairo_hint_metrics_t hint_metrics = ((cairo_hint_metrics_t) (int) tolua_tonumber(tolua_S,2,0));
4139 cairo_font_options_set_hint_metrics(options,hint_metrics);
4143 #ifndef TOLUA_RELEASE
4145 tolua_error(tolua_S,"#ferror in function 'cairo_font_options_set_hint_metrics'.",&tolua_err);
4149 #endif //#ifndef TOLUA_DISABLE
4151 /* function: cairo_font_options_get_hint_metrics */
4152 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_options_get_hint_metrics00
4153 static int tolua_cairo_cairo_font_options_get_hint_metrics00(lua_State* tolua_S)
4155 #ifndef TOLUA_RELEASE
4156 tolua_Error tolua_err;
4158 !tolua_isusertype(tolua_S,1,"_cairo_font_options",0,&tolua_err) ||
4159 !tolua_isnoobj(tolua_S,2,&tolua_err)
4165 struct _cairo_font_options* options = (( struct _cairo_font_options*) tolua_tousertype(tolua_S,1,0));
4167 cairo_hint_metrics_t tolua_ret = (cairo_hint_metrics_t) cairo_font_options_get_hint_metrics(options);
4168 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4172 #ifndef TOLUA_RELEASE
4174 tolua_error(tolua_S,"#ferror in function 'cairo_font_options_get_hint_metrics'.",&tolua_err);
4178 #endif //#ifndef TOLUA_DISABLE
4180 /* function: cairo_select_font_face */
4181 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_select_font_face00
4182 static int tolua_cairo_cairo_select_font_face00(lua_State* tolua_S)
4184 #ifndef TOLUA_RELEASE
4185 tolua_Error tolua_err;
4187 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
4188 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
4189 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
4190 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
4191 !tolua_isnoobj(tolua_S,5,&tolua_err)
4197 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
4198 const char* family = ((const char*) tolua_tostring(tolua_S,2,0));
4199 cairo_font_slant_t slant = ((cairo_font_slant_t) (int) tolua_tonumber(tolua_S,3,0));
4200 cairo_font_weight_t weight = ((cairo_font_weight_t) (int) tolua_tonumber(tolua_S,4,0));
4202 cairo_select_font_face(cr,family,slant,weight);
4206 #ifndef TOLUA_RELEASE
4208 tolua_error(tolua_S,"#ferror in function 'cairo_select_font_face'.",&tolua_err);
4212 #endif //#ifndef TOLUA_DISABLE
4214 /* function: cairo_set_font_size */
4215 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_set_font_size00
4216 static int tolua_cairo_cairo_set_font_size00(lua_State* tolua_S)
4218 #ifndef TOLUA_RELEASE
4219 tolua_Error tolua_err;
4221 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
4222 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
4223 !tolua_isnoobj(tolua_S,3,&tolua_err)
4229 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
4230 double size = ((double) tolua_tonumber(tolua_S,2,0));
4232 cairo_set_font_size(cr,size);
4236 #ifndef TOLUA_RELEASE
4238 tolua_error(tolua_S,"#ferror in function 'cairo_set_font_size'.",&tolua_err);
4242 #endif //#ifndef TOLUA_DISABLE
4244 /* function: cairo_set_font_matrix */
4245 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_set_font_matrix00
4246 static int tolua_cairo_cairo_set_font_matrix00(lua_State* tolua_S)
4248 #ifndef TOLUA_RELEASE
4249 tolua_Error tolua_err;
4251 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
4252 !tolua_isusertype(tolua_S,2,"cairo_matrix_t",0,&tolua_err) ||
4253 !tolua_isnoobj(tolua_S,3,&tolua_err)
4259 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
4260 cairo_matrix_t* matrix = ((cairo_matrix_t*) tolua_tousertype(tolua_S,2,0));
4262 cairo_set_font_matrix(cr,matrix);
4266 #ifndef TOLUA_RELEASE
4268 tolua_error(tolua_S,"#ferror in function 'cairo_set_font_matrix'.",&tolua_err);
4272 #endif //#ifndef TOLUA_DISABLE
4274 /* function: cairo_get_font_matrix */
4275 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_get_font_matrix00
4276 static int tolua_cairo_cairo_get_font_matrix00(lua_State* tolua_S)
4278 #ifndef TOLUA_RELEASE
4279 tolua_Error tolua_err;
4281 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
4282 !tolua_isusertype(tolua_S,2,"cairo_matrix_t",0,&tolua_err) ||
4283 !tolua_isnoobj(tolua_S,3,&tolua_err)
4289 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
4290 cairo_matrix_t* matrix = ((cairo_matrix_t*) tolua_tousertype(tolua_S,2,0));
4292 cairo_get_font_matrix(cr,matrix);
4296 #ifndef TOLUA_RELEASE
4298 tolua_error(tolua_S,"#ferror in function 'cairo_get_font_matrix'.",&tolua_err);
4302 #endif //#ifndef TOLUA_DISABLE
4304 /* function: cairo_set_font_options */
4305 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_set_font_options00
4306 static int tolua_cairo_cairo_set_font_options00(lua_State* tolua_S)
4308 #ifndef TOLUA_RELEASE
4309 tolua_Error tolua_err;
4311 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
4312 !tolua_isusertype(tolua_S,2,"_cairo_font_options",0,&tolua_err) ||
4313 !tolua_isnoobj(tolua_S,3,&tolua_err)
4319 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
4320 struct _cairo_font_options* options = (( struct _cairo_font_options*) tolua_tousertype(tolua_S,2,0));
4322 cairo_set_font_options(cr,options);
4326 #ifndef TOLUA_RELEASE
4328 tolua_error(tolua_S,"#ferror in function 'cairo_set_font_options'.",&tolua_err);
4332 #endif //#ifndef TOLUA_DISABLE
4334 /* function: cairo_get_font_options */
4335 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_get_font_options00
4336 static int tolua_cairo_cairo_get_font_options00(lua_State* tolua_S)
4338 #ifndef TOLUA_RELEASE
4339 tolua_Error tolua_err;
4341 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
4342 !tolua_isusertype(tolua_S,2,"_cairo_font_options",0,&tolua_err) ||
4343 !tolua_isnoobj(tolua_S,3,&tolua_err)
4349 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
4350 struct _cairo_font_options* options = (( struct _cairo_font_options*) tolua_tousertype(tolua_S,2,0));
4352 cairo_get_font_options(cr,options);
4356 #ifndef TOLUA_RELEASE
4358 tolua_error(tolua_S,"#ferror in function 'cairo_get_font_options'.",&tolua_err);
4362 #endif //#ifndef TOLUA_DISABLE
4364 /* function: cairo_set_font_face */
4365 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_set_font_face00
4366 static int tolua_cairo_cairo_set_font_face00(lua_State* tolua_S)
4368 #ifndef TOLUA_RELEASE
4369 tolua_Error tolua_err;
4371 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
4372 !tolua_isusertype(tolua_S,2,"_cairo_font_face",0,&tolua_err) ||
4373 !tolua_isnoobj(tolua_S,3,&tolua_err)
4379 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
4380 struct _cairo_font_face* font_face = (( struct _cairo_font_face*) tolua_tousertype(tolua_S,2,0));
4382 cairo_set_font_face(cr,font_face);
4386 #ifndef TOLUA_RELEASE
4388 tolua_error(tolua_S,"#ferror in function 'cairo_set_font_face'.",&tolua_err);
4392 #endif //#ifndef TOLUA_DISABLE
4394 /* function: cairo_get_font_face */
4395 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_get_font_face00
4396 static int tolua_cairo_cairo_get_font_face00(lua_State* tolua_S)
4398 #ifndef TOLUA_RELEASE
4399 tolua_Error tolua_err;
4401 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
4402 !tolua_isnoobj(tolua_S,2,&tolua_err)
4408 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
4410 struct _cairo_font_face* tolua_ret = ( struct _cairo_font_face*) cairo_get_font_face(cr);
4411 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_font_face");
4415 #ifndef TOLUA_RELEASE
4417 tolua_error(tolua_S,"#ferror in function 'cairo_get_font_face'.",&tolua_err);
4421 #endif //#ifndef TOLUA_DISABLE
4423 /* function: cairo_set_scaled_font */
4424 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_set_scaled_font00
4425 static int tolua_cairo_cairo_set_scaled_font00(lua_State* tolua_S)
4427 #ifndef TOLUA_RELEASE
4428 tolua_Error tolua_err;
4430 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
4431 !tolua_isusertype(tolua_S,2,"_cairo_scaled_font",0,&tolua_err) ||
4432 !tolua_isnoobj(tolua_S,3,&tolua_err)
4438 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
4439 struct _cairo_scaled_font* scaled_font = (( struct _cairo_scaled_font*) tolua_tousertype(tolua_S,2,0));
4441 cairo_set_scaled_font(cr,scaled_font);
4445 #ifndef TOLUA_RELEASE
4447 tolua_error(tolua_S,"#ferror in function 'cairo_set_scaled_font'.",&tolua_err);
4451 #endif //#ifndef TOLUA_DISABLE
4453 /* function: cairo_get_scaled_font */
4454 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_get_scaled_font00
4455 static int tolua_cairo_cairo_get_scaled_font00(lua_State* tolua_S)
4457 #ifndef TOLUA_RELEASE
4458 tolua_Error tolua_err;
4460 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
4461 !tolua_isnoobj(tolua_S,2,&tolua_err)
4467 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
4469 struct _cairo_scaled_font* tolua_ret = ( struct _cairo_scaled_font*) cairo_get_scaled_font(cr);
4470 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_scaled_font");
4474 #ifndef TOLUA_RELEASE
4476 tolua_error(tolua_S,"#ferror in function 'cairo_get_scaled_font'.",&tolua_err);
4480 #endif //#ifndef TOLUA_DISABLE
4482 /* function: cairo_show_text */
4483 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_show_text00
4484 static int tolua_cairo_cairo_show_text00(lua_State* tolua_S)
4486 #ifndef TOLUA_RELEASE
4487 tolua_Error tolua_err;
4489 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
4490 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
4491 !tolua_isnoobj(tolua_S,3,&tolua_err)
4497 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
4498 const char* utf8 = ((const char*) tolua_tostring(tolua_S,2,0));
4500 cairo_show_text(cr,utf8);
4504 #ifndef TOLUA_RELEASE
4506 tolua_error(tolua_S,"#ferror in function 'cairo_show_text'.",&tolua_err);
4510 #endif //#ifndef TOLUA_DISABLE
4512 /* function: cairo_show_glyphs */
4513 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_show_glyphs00
4514 static int tolua_cairo_cairo_show_glyphs00(lua_State* tolua_S)
4516 #ifndef TOLUA_RELEASE
4517 tolua_Error tolua_err;
4519 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
4520 !tolua_isusertype(tolua_S,2,"const cairo_glyph_t",0,&tolua_err) ||
4521 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
4522 !tolua_isnoobj(tolua_S,4,&tolua_err)
4528 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
4529 const cairo_glyph_t* glyphs = ((const cairo_glyph_t*) tolua_tousertype(tolua_S,2,0));
4530 int num_glyphs = ((int) tolua_tonumber(tolua_S,3,0));
4532 cairo_show_glyphs(cr,glyphs,num_glyphs);
4536 #ifndef TOLUA_RELEASE
4538 tolua_error(tolua_S,"#ferror in function 'cairo_show_glyphs'.",&tolua_err);
4542 #endif //#ifndef TOLUA_DISABLE
4544 /* function: cairo_show_text_glyphs */
4545 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_show_text_glyphs00
4546 static int tolua_cairo_cairo_show_text_glyphs00(lua_State* tolua_S)
4548 #ifndef TOLUA_RELEASE
4549 tolua_Error tolua_err;
4551 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
4552 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
4553 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
4554 !tolua_isusertype(tolua_S,4,"const cairo_glyph_t",0,&tolua_err) ||
4555 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
4556 !tolua_isusertype(tolua_S,6,"const cairo_text_cluster_t",0,&tolua_err) ||
4557 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
4558 !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
4559 !tolua_isnoobj(tolua_S,9,&tolua_err)
4565 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
4566 const char* utf8 = ((const char*) tolua_tostring(tolua_S,2,0));
4567 int utf8_len = ((int) tolua_tonumber(tolua_S,3,0));
4568 const cairo_glyph_t* glyphs = ((const cairo_glyph_t*) tolua_tousertype(tolua_S,4,0));
4569 int num_glyphs = ((int) tolua_tonumber(tolua_S,5,0));
4570 const cairo_text_cluster_t* clusters = ((const cairo_text_cluster_t*) tolua_tousertype(tolua_S,6,0));
4571 int num_clusters = ((int) tolua_tonumber(tolua_S,7,0));
4572 cairo_text_cluster_flags_t cluster_flags = ((cairo_text_cluster_flags_t) (int) tolua_tonumber(tolua_S,8,0));
4574 cairo_show_text_glyphs(cr,utf8,utf8_len,glyphs,num_glyphs,clusters,num_clusters,cluster_flags);
4578 #ifndef TOLUA_RELEASE
4580 tolua_error(tolua_S,"#ferror in function 'cairo_show_text_glyphs'.",&tolua_err);
4584 #endif //#ifndef TOLUA_DISABLE
4586 /* function: cairo_text_path */
4587 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_text_path00
4588 static int tolua_cairo_cairo_text_path00(lua_State* tolua_S)
4590 #ifndef TOLUA_RELEASE
4591 tolua_Error tolua_err;
4593 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
4594 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
4595 !tolua_isnoobj(tolua_S,3,&tolua_err)
4601 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
4602 const char* utf8 = ((const char*) tolua_tostring(tolua_S,2,0));
4604 cairo_text_path(cr,utf8);
4608 #ifndef TOLUA_RELEASE
4610 tolua_error(tolua_S,"#ferror in function 'cairo_text_path'.",&tolua_err);
4614 #endif //#ifndef TOLUA_DISABLE
4616 /* function: cairo_glyph_path */
4617 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_glyph_path00
4618 static int tolua_cairo_cairo_glyph_path00(lua_State* tolua_S)
4620 #ifndef TOLUA_RELEASE
4621 tolua_Error tolua_err;
4623 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
4624 !tolua_isusertype(tolua_S,2,"const cairo_glyph_t",0,&tolua_err) ||
4625 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
4626 !tolua_isnoobj(tolua_S,4,&tolua_err)
4632 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
4633 const cairo_glyph_t* glyphs = ((const cairo_glyph_t*) tolua_tousertype(tolua_S,2,0));
4634 int num_glyphs = ((int) tolua_tonumber(tolua_S,3,0));
4636 cairo_glyph_path(cr,glyphs,num_glyphs);
4640 #ifndef TOLUA_RELEASE
4642 tolua_error(tolua_S,"#ferror in function 'cairo_glyph_path'.",&tolua_err);
4646 #endif //#ifndef TOLUA_DISABLE
4648 /* function: cairo_text_extents */
4649 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_text_extents00
4650 static int tolua_cairo_cairo_text_extents00(lua_State* tolua_S)
4652 #ifndef TOLUA_RELEASE
4653 tolua_Error tolua_err;
4655 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
4656 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
4657 !tolua_isusertype(tolua_S,3,"cairo_text_extents_t",0,&tolua_err) ||
4658 !tolua_isnoobj(tolua_S,4,&tolua_err)
4664 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
4665 const char* utf8 = ((const char*) tolua_tostring(tolua_S,2,0));
4666 cairo_text_extents_t* extents = ((cairo_text_extents_t*) tolua_tousertype(tolua_S,3,0));
4668 cairo_text_extents(cr,utf8,extents);
4672 #ifndef TOLUA_RELEASE
4674 tolua_error(tolua_S,"#ferror in function 'cairo_text_extents'.",&tolua_err);
4678 #endif //#ifndef TOLUA_DISABLE
4680 /* function: cairo_glyph_extents */
4681 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_glyph_extents00
4682 static int tolua_cairo_cairo_glyph_extents00(lua_State* tolua_S)
4684 #ifndef TOLUA_RELEASE
4685 tolua_Error tolua_err;
4687 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
4688 !tolua_isusertype(tolua_S,2,"const cairo_glyph_t",0,&tolua_err) ||
4689 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
4690 !tolua_isusertype(tolua_S,4,"cairo_text_extents_t",0,&tolua_err) ||
4691 !tolua_isnoobj(tolua_S,5,&tolua_err)
4697 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
4698 const cairo_glyph_t* glyphs = ((const cairo_glyph_t*) tolua_tousertype(tolua_S,2,0));
4699 int num_glyphs = ((int) tolua_tonumber(tolua_S,3,0));
4700 cairo_text_extents_t* extents = ((cairo_text_extents_t*) tolua_tousertype(tolua_S,4,0));
4702 cairo_glyph_extents(cr,glyphs,num_glyphs,extents);
4706 #ifndef TOLUA_RELEASE
4708 tolua_error(tolua_S,"#ferror in function 'cairo_glyph_extents'.",&tolua_err);
4712 #endif //#ifndef TOLUA_DISABLE
4714 /* function: cairo_font_extents */
4715 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_extents00
4716 static int tolua_cairo_cairo_font_extents00(lua_State* tolua_S)
4718 #ifndef TOLUA_RELEASE
4719 tolua_Error tolua_err;
4721 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
4722 !tolua_isusertype(tolua_S,2,"cairo_font_extents_t",0,&tolua_err) ||
4723 !tolua_isnoobj(tolua_S,3,&tolua_err)
4729 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
4730 cairo_font_extents_t* extents = ((cairo_font_extents_t*) tolua_tousertype(tolua_S,2,0));
4732 cairo_font_extents(cr,extents);
4736 #ifndef TOLUA_RELEASE
4738 tolua_error(tolua_S,"#ferror in function 'cairo_font_extents'.",&tolua_err);
4742 #endif //#ifndef TOLUA_DISABLE
4744 /* function: cairo_font_face_reference */
4745 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_face_reference00
4746 static int tolua_cairo_cairo_font_face_reference00(lua_State* tolua_S)
4748 #ifndef TOLUA_RELEASE
4749 tolua_Error tolua_err;
4751 !tolua_isusertype(tolua_S,1,"_cairo_font_face",0,&tolua_err) ||
4752 !tolua_isnoobj(tolua_S,2,&tolua_err)
4758 struct _cairo_font_face* font_face = (( struct _cairo_font_face*) tolua_tousertype(tolua_S,1,0));
4760 struct _cairo_font_face* tolua_ret = ( struct _cairo_font_face*) cairo_font_face_reference(font_face);
4761 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_font_face");
4765 #ifndef TOLUA_RELEASE
4767 tolua_error(tolua_S,"#ferror in function 'cairo_font_face_reference'.",&tolua_err);
4771 #endif //#ifndef TOLUA_DISABLE
4773 /* function: cairo_font_face_destroy */
4774 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_face_destroy00
4775 static int tolua_cairo_cairo_font_face_destroy00(lua_State* tolua_S)
4777 #ifndef TOLUA_RELEASE
4778 tolua_Error tolua_err;
4780 !tolua_isusertype(tolua_S,1,"_cairo_font_face",0,&tolua_err) ||
4781 !tolua_isnoobj(tolua_S,2,&tolua_err)
4787 struct _cairo_font_face* font_face = (( struct _cairo_font_face*) tolua_tousertype(tolua_S,1,0));
4789 cairo_font_face_destroy(font_face);
4793 #ifndef TOLUA_RELEASE
4795 tolua_error(tolua_S,"#ferror in function 'cairo_font_face_destroy'.",&tolua_err);
4799 #endif //#ifndef TOLUA_DISABLE
4801 /* function: cairo_font_face_get_reference_count */
4802 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_face_get_reference_count00
4803 static int tolua_cairo_cairo_font_face_get_reference_count00(lua_State* tolua_S)
4805 #ifndef TOLUA_RELEASE
4806 tolua_Error tolua_err;
4808 !tolua_isusertype(tolua_S,1,"_cairo_font_face",0,&tolua_err) ||
4809 !tolua_isnoobj(tolua_S,2,&tolua_err)
4815 struct _cairo_font_face* font_face = (( struct _cairo_font_face*) tolua_tousertype(tolua_S,1,0));
4817 unsigned int tolua_ret = (unsigned int) cairo_font_face_get_reference_count(font_face);
4818 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4822 #ifndef TOLUA_RELEASE
4824 tolua_error(tolua_S,"#ferror in function 'cairo_font_face_get_reference_count'.",&tolua_err);
4828 #endif //#ifndef TOLUA_DISABLE
4830 /* function: cairo_font_face_status */
4831 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_face_status00
4832 static int tolua_cairo_cairo_font_face_status00(lua_State* tolua_S)
4834 #ifndef TOLUA_RELEASE
4835 tolua_Error tolua_err;
4837 !tolua_isusertype(tolua_S,1,"_cairo_font_face",0,&tolua_err) ||
4838 !tolua_isnoobj(tolua_S,2,&tolua_err)
4844 struct _cairo_font_face* font_face = (( struct _cairo_font_face*) tolua_tousertype(tolua_S,1,0));
4846 cairo_status_t tolua_ret = (cairo_status_t) cairo_font_face_status(font_face);
4847 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4851 #ifndef TOLUA_RELEASE
4853 tolua_error(tolua_S,"#ferror in function 'cairo_font_face_status'.",&tolua_err);
4857 #endif //#ifndef TOLUA_DISABLE
4859 /* function: cairo_font_face_get_type */
4860 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_face_get_type00
4861 static int tolua_cairo_cairo_font_face_get_type00(lua_State* tolua_S)
4863 #ifndef TOLUA_RELEASE
4864 tolua_Error tolua_err;
4866 !tolua_isusertype(tolua_S,1,"_cairo_font_face",0,&tolua_err) ||
4867 !tolua_isnoobj(tolua_S,2,&tolua_err)
4873 struct _cairo_font_face* font_face = (( struct _cairo_font_face*) tolua_tousertype(tolua_S,1,0));
4875 cairo_font_type_t tolua_ret = (cairo_font_type_t) cairo_font_face_get_type(font_face);
4876 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4880 #ifndef TOLUA_RELEASE
4882 tolua_error(tolua_S,"#ferror in function 'cairo_font_face_get_type'.",&tolua_err);
4886 #endif //#ifndef TOLUA_DISABLE
4888 /* function: cairo_font_face_get_user_data */
4889 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_face_get_user_data00
4890 static int tolua_cairo_cairo_font_face_get_user_data00(lua_State* tolua_S)
4892 #ifndef TOLUA_RELEASE
4893 tolua_Error tolua_err;
4895 !tolua_isusertype(tolua_S,1,"_cairo_font_face",0,&tolua_err) ||
4896 !tolua_isusertype(tolua_S,2,"const cairo_user_data_key_t",0,&tolua_err) ||
4897 !tolua_isnoobj(tolua_S,3,&tolua_err)
4903 struct _cairo_font_face* font_face = (( struct _cairo_font_face*) tolua_tousertype(tolua_S,1,0));
4904 const cairo_user_data_key_t* key = ((const cairo_user_data_key_t*) tolua_tousertype(tolua_S,2,0));
4906 void* tolua_ret = (void*) cairo_font_face_get_user_data(font_face,key);
4907 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
4911 #ifndef TOLUA_RELEASE
4913 tolua_error(tolua_S,"#ferror in function 'cairo_font_face_get_user_data'.",&tolua_err);
4917 #endif //#ifndef TOLUA_DISABLE
4919 /* function: cairo_font_face_set_user_data */
4920 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_font_face_set_user_data00
4921 static int tolua_cairo_cairo_font_face_set_user_data00(lua_State* tolua_S)
4923 #ifndef TOLUA_RELEASE
4924 tolua_Error tolua_err;
4926 !tolua_isusertype(tolua_S,1,"_cairo_font_face",0,&tolua_err) ||
4927 !tolua_isusertype(tolua_S,2,"const cairo_user_data_key_t",0,&tolua_err) ||
4928 !tolua_isuserdata(tolua_S,3,0,&tolua_err) ||
4929 (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"cairo_destroy_func_t",0,&tolua_err)) ||
4930 !tolua_isnoobj(tolua_S,5,&tolua_err)
4936 struct _cairo_font_face* font_face = (( struct _cairo_font_face*) tolua_tousertype(tolua_S,1,0));
4937 const cairo_user_data_key_t* key = ((const cairo_user_data_key_t*) tolua_tousertype(tolua_S,2,0));
4938 void* user_data = ((void*) tolua_touserdata(tolua_S,3,0));
4939 cairo_destroy_func_t destroy = *((cairo_destroy_func_t*) tolua_tousertype(tolua_S,4,0));
4941 cairo_status_t tolua_ret = (cairo_status_t) cairo_font_face_set_user_data(font_face,key,user_data,destroy);
4942 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4946 #ifndef TOLUA_RELEASE
4948 tolua_error(tolua_S,"#ferror in function 'cairo_font_face_set_user_data'.",&tolua_err);
4952 #endif //#ifndef TOLUA_DISABLE
4954 /* function: cairo_scaled_font_create */
4955 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_scaled_font_create00
4956 static int tolua_cairo_cairo_scaled_font_create00(lua_State* tolua_S)
4958 #ifndef TOLUA_RELEASE
4959 tolua_Error tolua_err;
4961 !tolua_isusertype(tolua_S,1,"_cairo_font_face",0,&tolua_err) ||
4962 !tolua_isusertype(tolua_S,2,"cairo_matrix_t",0,&tolua_err) ||
4963 !tolua_isusertype(tolua_S,3,"cairo_matrix_t",0,&tolua_err) ||
4964 !tolua_isusertype(tolua_S,4,"_cairo_font_options",0,&tolua_err) ||
4965 !tolua_isnoobj(tolua_S,5,&tolua_err)
4971 struct _cairo_font_face* font_face = (( struct _cairo_font_face*) tolua_tousertype(tolua_S,1,0));
4972 cairo_matrix_t* font_matrix = ((cairo_matrix_t*) tolua_tousertype(tolua_S,2,0));
4973 cairo_matrix_t* ctm = ((cairo_matrix_t*) tolua_tousertype(tolua_S,3,0));
4974 struct _cairo_font_options* options = (( struct _cairo_font_options*) tolua_tousertype(tolua_S,4,0));
4976 struct _cairo_scaled_font* tolua_ret = ( struct _cairo_scaled_font*) cairo_scaled_font_create(font_face,font_matrix,ctm,options);
4977 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_scaled_font");
4981 #ifndef TOLUA_RELEASE
4983 tolua_error(tolua_S,"#ferror in function 'cairo_scaled_font_create'.",&tolua_err);
4987 #endif //#ifndef TOLUA_DISABLE
4989 /* function: cairo_scaled_font_reference */
4990 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_scaled_font_reference00
4991 static int tolua_cairo_cairo_scaled_font_reference00(lua_State* tolua_S)
4993 #ifndef TOLUA_RELEASE
4994 tolua_Error tolua_err;
4996 !tolua_isusertype(tolua_S,1,"_cairo_scaled_font",0,&tolua_err) ||
4997 !tolua_isnoobj(tolua_S,2,&tolua_err)
5003 struct _cairo_scaled_font* scaled_font = (( struct _cairo_scaled_font*) tolua_tousertype(tolua_S,1,0));
5005 struct _cairo_scaled_font* tolua_ret = ( struct _cairo_scaled_font*) cairo_scaled_font_reference(scaled_font);
5006 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_scaled_font");
5010 #ifndef TOLUA_RELEASE
5012 tolua_error(tolua_S,"#ferror in function 'cairo_scaled_font_reference'.",&tolua_err);
5016 #endif //#ifndef TOLUA_DISABLE
5018 /* function: cairo_scaled_font_destroy */
5019 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_scaled_font_destroy00
5020 static int tolua_cairo_cairo_scaled_font_destroy00(lua_State* tolua_S)
5022 #ifndef TOLUA_RELEASE
5023 tolua_Error tolua_err;
5025 !tolua_isusertype(tolua_S,1,"_cairo_scaled_font",0,&tolua_err) ||
5026 !tolua_isnoobj(tolua_S,2,&tolua_err)
5032 struct _cairo_scaled_font* scaled_font = (( struct _cairo_scaled_font*) tolua_tousertype(tolua_S,1,0));
5034 cairo_scaled_font_destroy(scaled_font);
5038 #ifndef TOLUA_RELEASE
5040 tolua_error(tolua_S,"#ferror in function 'cairo_scaled_font_destroy'.",&tolua_err);
5044 #endif //#ifndef TOLUA_DISABLE
5046 /* function: cairo_scaled_font_get_reference_count */
5047 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_scaled_font_get_reference_count00
5048 static int tolua_cairo_cairo_scaled_font_get_reference_count00(lua_State* tolua_S)
5050 #ifndef TOLUA_RELEASE
5051 tolua_Error tolua_err;
5053 !tolua_isusertype(tolua_S,1,"_cairo_scaled_font",0,&tolua_err) ||
5054 !tolua_isnoobj(tolua_S,2,&tolua_err)
5060 struct _cairo_scaled_font* scaled_font = (( struct _cairo_scaled_font*) tolua_tousertype(tolua_S,1,0));
5062 unsigned int tolua_ret = (unsigned int) cairo_scaled_font_get_reference_count(scaled_font);
5063 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
5067 #ifndef TOLUA_RELEASE
5069 tolua_error(tolua_S,"#ferror in function 'cairo_scaled_font_get_reference_count'.",&tolua_err);
5073 #endif //#ifndef TOLUA_DISABLE
5075 /* function: cairo_scaled_font_status */
5076 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_scaled_font_status00
5077 static int tolua_cairo_cairo_scaled_font_status00(lua_State* tolua_S)
5079 #ifndef TOLUA_RELEASE
5080 tolua_Error tolua_err;
5082 !tolua_isusertype(tolua_S,1,"_cairo_scaled_font",0,&tolua_err) ||
5083 !tolua_isnoobj(tolua_S,2,&tolua_err)
5089 struct _cairo_scaled_font* scaled_font = (( struct _cairo_scaled_font*) tolua_tousertype(tolua_S,1,0));
5091 cairo_status_t tolua_ret = (cairo_status_t) cairo_scaled_font_status(scaled_font);
5092 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
5096 #ifndef TOLUA_RELEASE
5098 tolua_error(tolua_S,"#ferror in function 'cairo_scaled_font_status'.",&tolua_err);
5102 #endif //#ifndef TOLUA_DISABLE
5104 /* function: cairo_scaled_font_get_type */
5105 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_scaled_font_get_type00
5106 static int tolua_cairo_cairo_scaled_font_get_type00(lua_State* tolua_S)
5108 #ifndef TOLUA_RELEASE
5109 tolua_Error tolua_err;
5111 !tolua_isusertype(tolua_S,1,"_cairo_scaled_font",0,&tolua_err) ||
5112 !tolua_isnoobj(tolua_S,2,&tolua_err)
5118 struct _cairo_scaled_font* scaled_font = (( struct _cairo_scaled_font*) tolua_tousertype(tolua_S,1,0));
5120 cairo_font_type_t tolua_ret = (cairo_font_type_t) cairo_scaled_font_get_type(scaled_font);
5121 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
5125 #ifndef TOLUA_RELEASE
5127 tolua_error(tolua_S,"#ferror in function 'cairo_scaled_font_get_type'.",&tolua_err);
5131 #endif //#ifndef TOLUA_DISABLE
5133 /* function: cairo_scaled_font_get_user_data */
5134 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_scaled_font_get_user_data00
5135 static int tolua_cairo_cairo_scaled_font_get_user_data00(lua_State* tolua_S)
5137 #ifndef TOLUA_RELEASE
5138 tolua_Error tolua_err;
5140 !tolua_isusertype(tolua_S,1,"_cairo_scaled_font",0,&tolua_err) ||
5141 !tolua_isusertype(tolua_S,2,"const cairo_user_data_key_t",0,&tolua_err) ||
5142 !tolua_isnoobj(tolua_S,3,&tolua_err)
5148 struct _cairo_scaled_font* scaled_font = (( struct _cairo_scaled_font*) tolua_tousertype(tolua_S,1,0));
5149 const cairo_user_data_key_t* key = ((const cairo_user_data_key_t*) tolua_tousertype(tolua_S,2,0));
5151 void* tolua_ret = (void*) cairo_scaled_font_get_user_data(scaled_font,key);
5152 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
5156 #ifndef TOLUA_RELEASE
5158 tolua_error(tolua_S,"#ferror in function 'cairo_scaled_font_get_user_data'.",&tolua_err);
5162 #endif //#ifndef TOLUA_DISABLE
5164 /* function: cairo_scaled_font_set_user_data */
5165 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_scaled_font_set_user_data00
5166 static int tolua_cairo_cairo_scaled_font_set_user_data00(lua_State* tolua_S)
5168 #ifndef TOLUA_RELEASE
5169 tolua_Error tolua_err;
5171 !tolua_isusertype(tolua_S,1,"_cairo_scaled_font",0,&tolua_err) ||
5172 !tolua_isusertype(tolua_S,2,"const cairo_user_data_key_t",0,&tolua_err) ||
5173 !tolua_isuserdata(tolua_S,3,0,&tolua_err) ||
5174 (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"cairo_destroy_func_t",0,&tolua_err)) ||
5175 !tolua_isnoobj(tolua_S,5,&tolua_err)
5181 struct _cairo_scaled_font* scaled_font = (( struct _cairo_scaled_font*) tolua_tousertype(tolua_S,1,0));
5182 const cairo_user_data_key_t* key = ((const cairo_user_data_key_t*) tolua_tousertype(tolua_S,2,0));
5183 void* user_data = ((void*) tolua_touserdata(tolua_S,3,0));
5184 cairo_destroy_func_t destroy = *((cairo_destroy_func_t*) tolua_tousertype(tolua_S,4,0));
5186 cairo_status_t tolua_ret = (cairo_status_t) cairo_scaled_font_set_user_data(scaled_font,key,user_data,destroy);
5187 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
5191 #ifndef TOLUA_RELEASE
5193 tolua_error(tolua_S,"#ferror in function 'cairo_scaled_font_set_user_data'.",&tolua_err);
5197 #endif //#ifndef TOLUA_DISABLE
5199 /* function: cairo_scaled_font_extents */
5200 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_scaled_font_extents00
5201 static int tolua_cairo_cairo_scaled_font_extents00(lua_State* tolua_S)
5203 #ifndef TOLUA_RELEASE
5204 tolua_Error tolua_err;
5206 !tolua_isusertype(tolua_S,1,"_cairo_scaled_font",0,&tolua_err) ||
5207 !tolua_isusertype(tolua_S,2,"cairo_font_extents_t",0,&tolua_err) ||
5208 !tolua_isnoobj(tolua_S,3,&tolua_err)
5214 struct _cairo_scaled_font* scaled_font = (( struct _cairo_scaled_font*) tolua_tousertype(tolua_S,1,0));
5215 cairo_font_extents_t* extents = ((cairo_font_extents_t*) tolua_tousertype(tolua_S,2,0));
5217 cairo_scaled_font_extents(scaled_font,extents);
5221 #ifndef TOLUA_RELEASE
5223 tolua_error(tolua_S,"#ferror in function 'cairo_scaled_font_extents'.",&tolua_err);
5227 #endif //#ifndef TOLUA_DISABLE
5229 /* function: cairo_scaled_font_text_extents */
5230 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_scaled_font_text_extents00
5231 static int tolua_cairo_cairo_scaled_font_text_extents00(lua_State* tolua_S)
5233 #ifndef TOLUA_RELEASE
5234 tolua_Error tolua_err;
5236 !tolua_isusertype(tolua_S,1,"_cairo_scaled_font",0,&tolua_err) ||
5237 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
5238 !tolua_isusertype(tolua_S,3,"cairo_text_extents_t",0,&tolua_err) ||
5239 !tolua_isnoobj(tolua_S,4,&tolua_err)
5245 struct _cairo_scaled_font* scaled_font = (( struct _cairo_scaled_font*) tolua_tousertype(tolua_S,1,0));
5246 const char* utf8 = ((const char*) tolua_tostring(tolua_S,2,0));
5247 cairo_text_extents_t* extents = ((cairo_text_extents_t*) tolua_tousertype(tolua_S,3,0));
5249 cairo_scaled_font_text_extents(scaled_font,utf8,extents);
5253 #ifndef TOLUA_RELEASE
5255 tolua_error(tolua_S,"#ferror in function 'cairo_scaled_font_text_extents'.",&tolua_err);
5259 #endif //#ifndef TOLUA_DISABLE
5261 /* function: cairo_scaled_font_glyph_extents */
5262 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_scaled_font_glyph_extents00
5263 static int tolua_cairo_cairo_scaled_font_glyph_extents00(lua_State* tolua_S)
5265 #ifndef TOLUA_RELEASE
5266 tolua_Error tolua_err;
5268 !tolua_isusertype(tolua_S,1,"_cairo_scaled_font",0,&tolua_err) ||
5269 !tolua_isusertype(tolua_S,2,"const cairo_glyph_t",0,&tolua_err) ||
5270 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5271 !tolua_isusertype(tolua_S,4,"cairo_text_extents_t",0,&tolua_err) ||
5272 !tolua_isnoobj(tolua_S,5,&tolua_err)
5278 struct _cairo_scaled_font* scaled_font = (( struct _cairo_scaled_font*) tolua_tousertype(tolua_S,1,0));
5279 const cairo_glyph_t* glyphs = ((const cairo_glyph_t*) tolua_tousertype(tolua_S,2,0));
5280 int num_glyphs = ((int) tolua_tonumber(tolua_S,3,0));
5281 cairo_text_extents_t* extents = ((cairo_text_extents_t*) tolua_tousertype(tolua_S,4,0));
5283 cairo_scaled_font_glyph_extents(scaled_font,glyphs,num_glyphs,extents);
5287 #ifndef TOLUA_RELEASE
5289 tolua_error(tolua_S,"#ferror in function 'cairo_scaled_font_glyph_extents'.",&tolua_err);
5293 #endif //#ifndef TOLUA_DISABLE
5295 /* function: cairo_scaled_font_text_to_glyphs */
5296 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_scaled_font_text_to_glyphs00
5297 static int tolua_cairo_cairo_scaled_font_text_to_glyphs00(lua_State* tolua_S)
5299 #ifndef TOLUA_RELEASE
5300 tolua_Error tolua_err;
5302 !tolua_isusertype(tolua_S,1,"_cairo_scaled_font",0,&tolua_err) ||
5303 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5304 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5305 !tolua_isstring(tolua_S,4,0,&tolua_err) ||
5306 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
5307 !tolua_isusertype(tolua_S,6,"cairo_glyph_t",0,&tolua_err) ||
5308 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
5309 !tolua_isusertype(tolua_S,8,"cairo_text_cluster_t",0,&tolua_err) ||
5310 !tolua_isnumber(tolua_S,9,0,&tolua_err) ||
5311 !tolua_isnumber(tolua_S,10,0,&tolua_err) ||
5312 !tolua_isnoobj(tolua_S,11,&tolua_err)
5318 struct _cairo_scaled_font* scaled_font = (( struct _cairo_scaled_font*) tolua_tousertype(tolua_S,1,0));
5319 double x = ((double) tolua_tonumber(tolua_S,2,0));
5320 double y = ((double) tolua_tonumber(tolua_S,3,0));
5321 const char* utf8 = ((const char*) tolua_tostring(tolua_S,4,0));
5322 int utf8_len = ((int) tolua_tonumber(tolua_S,5,0));
5323 cairo_glyph_t* glyphs = ((cairo_glyph_t*) tolua_tousertype(tolua_S,6,0));
5324 int num_glyphs = ((int) tolua_tonumber(tolua_S,7,0));
5325 cairo_text_cluster_t* clusters = ((cairo_text_cluster_t*) tolua_tousertype(tolua_S,8,0));
5326 int num_clusters = ((int) tolua_tonumber(tolua_S,9,0));
5327 cairo_text_cluster_flags_t cluster_flags = ((cairo_text_cluster_flags_t) (int) tolua_tonumber(tolua_S,10,0));
5329 cairo_status_t tolua_ret = (cairo_status_t) cairo_scaled_font_text_to_glyphs(scaled_font,x,y,utf8,utf8_len,&glyphs,&num_glyphs,&clusters,&num_clusters,&cluster_flags);
5330 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
5331 tolua_pushusertype(tolua_S,(void*)glyphs,"cairo_glyph_t");
5332 tolua_pushnumber(tolua_S,(lua_Number)num_glyphs);
5333 tolua_pushusertype(tolua_S,(void*)clusters,"cairo_text_cluster_t");
5334 tolua_pushnumber(tolua_S,(lua_Number)num_clusters);
5335 tolua_pushnumber(tolua_S,(lua_Number)cluster_flags);
5339 #ifndef TOLUA_RELEASE
5341 tolua_error(tolua_S,"#ferror in function 'cairo_scaled_font_text_to_glyphs'.",&tolua_err);
5345 #endif //#ifndef TOLUA_DISABLE
5347 /* function: cairo_scaled_font_get_font_face */
5348 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_scaled_font_get_font_face00
5349 static int tolua_cairo_cairo_scaled_font_get_font_face00(lua_State* tolua_S)
5351 #ifndef TOLUA_RELEASE
5352 tolua_Error tolua_err;
5354 !tolua_isusertype(tolua_S,1,"_cairo_scaled_font",0,&tolua_err) ||
5355 !tolua_isnoobj(tolua_S,2,&tolua_err)
5361 struct _cairo_scaled_font* scaled_font = (( struct _cairo_scaled_font*) tolua_tousertype(tolua_S,1,0));
5363 struct _cairo_font_face* tolua_ret = ( struct _cairo_font_face*) cairo_scaled_font_get_font_face(scaled_font);
5364 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_font_face");
5368 #ifndef TOLUA_RELEASE
5370 tolua_error(tolua_S,"#ferror in function 'cairo_scaled_font_get_font_face'.",&tolua_err);
5374 #endif //#ifndef TOLUA_DISABLE
5376 /* function: cairo_scaled_font_get_font_matrix */
5377 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_scaled_font_get_font_matrix00
5378 static int tolua_cairo_cairo_scaled_font_get_font_matrix00(lua_State* tolua_S)
5380 #ifndef TOLUA_RELEASE
5381 tolua_Error tolua_err;
5383 !tolua_isusertype(tolua_S,1,"_cairo_scaled_font",0,&tolua_err) ||
5384 !tolua_isusertype(tolua_S,2,"cairo_matrix_t",0,&tolua_err) ||
5385 !tolua_isnoobj(tolua_S,3,&tolua_err)
5391 struct _cairo_scaled_font* scaled_font = (( struct _cairo_scaled_font*) tolua_tousertype(tolua_S,1,0));
5392 cairo_matrix_t* font_matrix = ((cairo_matrix_t*) tolua_tousertype(tolua_S,2,0));
5394 cairo_scaled_font_get_font_matrix(scaled_font,font_matrix);
5398 #ifndef TOLUA_RELEASE
5400 tolua_error(tolua_S,"#ferror in function 'cairo_scaled_font_get_font_matrix'.",&tolua_err);
5404 #endif //#ifndef TOLUA_DISABLE
5406 /* function: cairo_scaled_font_get_ctm */
5407 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_scaled_font_get_ctm00
5408 static int tolua_cairo_cairo_scaled_font_get_ctm00(lua_State* tolua_S)
5410 #ifndef TOLUA_RELEASE
5411 tolua_Error tolua_err;
5413 !tolua_isusertype(tolua_S,1,"_cairo_scaled_font",0,&tolua_err) ||
5414 !tolua_isusertype(tolua_S,2,"cairo_matrix_t",0,&tolua_err) ||
5415 !tolua_isnoobj(tolua_S,3,&tolua_err)
5421 struct _cairo_scaled_font* scaled_font = (( struct _cairo_scaled_font*) tolua_tousertype(tolua_S,1,0));
5422 cairo_matrix_t* ctm = ((cairo_matrix_t*) tolua_tousertype(tolua_S,2,0));
5424 cairo_scaled_font_get_ctm(scaled_font,ctm);
5428 #ifndef TOLUA_RELEASE
5430 tolua_error(tolua_S,"#ferror in function 'cairo_scaled_font_get_ctm'.",&tolua_err);
5434 #endif //#ifndef TOLUA_DISABLE
5436 /* function: cairo_scaled_font_get_scale_matrix */
5437 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_scaled_font_get_scale_matrix00
5438 static int tolua_cairo_cairo_scaled_font_get_scale_matrix00(lua_State* tolua_S)
5440 #ifndef TOLUA_RELEASE
5441 tolua_Error tolua_err;
5443 !tolua_isusertype(tolua_S,1,"_cairo_scaled_font",0,&tolua_err) ||
5444 !tolua_isusertype(tolua_S,2,"cairo_matrix_t",0,&tolua_err) ||
5445 !tolua_isnoobj(tolua_S,3,&tolua_err)
5451 struct _cairo_scaled_font* scaled_font = (( struct _cairo_scaled_font*) tolua_tousertype(tolua_S,1,0));
5452 cairo_matrix_t* scale_matrix = ((cairo_matrix_t*) tolua_tousertype(tolua_S,2,0));
5454 cairo_scaled_font_get_scale_matrix(scaled_font,scale_matrix);
5458 #ifndef TOLUA_RELEASE
5460 tolua_error(tolua_S,"#ferror in function 'cairo_scaled_font_get_scale_matrix'.",&tolua_err);
5464 #endif //#ifndef TOLUA_DISABLE
5466 /* function: cairo_scaled_font_get_font_options */
5467 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_scaled_font_get_font_options00
5468 static int tolua_cairo_cairo_scaled_font_get_font_options00(lua_State* tolua_S)
5470 #ifndef TOLUA_RELEASE
5471 tolua_Error tolua_err;
5473 !tolua_isusertype(tolua_S,1,"_cairo_scaled_font",0,&tolua_err) ||
5474 !tolua_isusertype(tolua_S,2,"_cairo_font_options",0,&tolua_err) ||
5475 !tolua_isnoobj(tolua_S,3,&tolua_err)
5481 struct _cairo_scaled_font* scaled_font = (( struct _cairo_scaled_font*) tolua_tousertype(tolua_S,1,0));
5482 struct _cairo_font_options* options = (( struct _cairo_font_options*) tolua_tousertype(tolua_S,2,0));
5484 cairo_scaled_font_get_font_options(scaled_font,options);
5488 #ifndef TOLUA_RELEASE
5490 tolua_error(tolua_S,"#ferror in function 'cairo_scaled_font_get_font_options'.",&tolua_err);
5494 #endif //#ifndef TOLUA_DISABLE
5496 /* function: cairo_toy_font_face_create */
5497 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_toy_font_face_create00
5498 static int tolua_cairo_cairo_toy_font_face_create00(lua_State* tolua_S)
5500 #ifndef TOLUA_RELEASE
5501 tolua_Error tolua_err;
5503 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
5504 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5505 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5506 !tolua_isnoobj(tolua_S,4,&tolua_err)
5512 const char* family = ((const char*) tolua_tostring(tolua_S,1,0));
5513 cairo_font_slant_t slant = ((cairo_font_slant_t) (int) tolua_tonumber(tolua_S,2,0));
5514 cairo_font_weight_t weight = ((cairo_font_weight_t) (int) tolua_tonumber(tolua_S,3,0));
5516 struct _cairo_font_face* tolua_ret = ( struct _cairo_font_face*) cairo_toy_font_face_create(family,slant,weight);
5517 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_font_face");
5521 #ifndef TOLUA_RELEASE
5523 tolua_error(tolua_S,"#ferror in function 'cairo_toy_font_face_create'.",&tolua_err);
5527 #endif //#ifndef TOLUA_DISABLE
5529 /* function: cairo_toy_font_face_get_family */
5530 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_toy_font_face_get_family00
5531 static int tolua_cairo_cairo_toy_font_face_get_family00(lua_State* tolua_S)
5533 #ifndef TOLUA_RELEASE
5534 tolua_Error tolua_err;
5536 !tolua_isusertype(tolua_S,1,"_cairo_font_face",0,&tolua_err) ||
5537 !tolua_isnoobj(tolua_S,2,&tolua_err)
5543 struct _cairo_font_face* font_face = (( struct _cairo_font_face*) tolua_tousertype(tolua_S,1,0));
5545 const char* tolua_ret = (const char*) cairo_toy_font_face_get_family(font_face);
5546 tolua_pushstring(tolua_S,(const char*)tolua_ret);
5550 #ifndef TOLUA_RELEASE
5552 tolua_error(tolua_S,"#ferror in function 'cairo_toy_font_face_get_family'.",&tolua_err);
5556 #endif //#ifndef TOLUA_DISABLE
5558 /* function: cairo_toy_font_face_get_slant */
5559 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_toy_font_face_get_slant00
5560 static int tolua_cairo_cairo_toy_font_face_get_slant00(lua_State* tolua_S)
5562 #ifndef TOLUA_RELEASE
5563 tolua_Error tolua_err;
5565 !tolua_isusertype(tolua_S,1,"_cairo_font_face",0,&tolua_err) ||
5566 !tolua_isnoobj(tolua_S,2,&tolua_err)
5572 struct _cairo_font_face* font_face = (( struct _cairo_font_face*) tolua_tousertype(tolua_S,1,0));
5574 cairo_font_slant_t tolua_ret = (cairo_font_slant_t) cairo_toy_font_face_get_slant(font_face);
5575 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
5579 #ifndef TOLUA_RELEASE
5581 tolua_error(tolua_S,"#ferror in function 'cairo_toy_font_face_get_slant'.",&tolua_err);
5585 #endif //#ifndef TOLUA_DISABLE
5587 /* function: cairo_toy_font_face_get_weight */
5588 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_toy_font_face_get_weight00
5589 static int tolua_cairo_cairo_toy_font_face_get_weight00(lua_State* tolua_S)
5591 #ifndef TOLUA_RELEASE
5592 tolua_Error tolua_err;
5594 !tolua_isusertype(tolua_S,1,"_cairo_font_face",0,&tolua_err) ||
5595 !tolua_isnoobj(tolua_S,2,&tolua_err)
5601 struct _cairo_font_face* font_face = (( struct _cairo_font_face*) tolua_tousertype(tolua_S,1,0));
5603 cairo_font_weight_t tolua_ret = (cairo_font_weight_t) cairo_toy_font_face_get_weight(font_face);
5604 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
5608 #ifndef TOLUA_RELEASE
5610 tolua_error(tolua_S,"#ferror in function 'cairo_toy_font_face_get_weight'.",&tolua_err);
5614 #endif //#ifndef TOLUA_DISABLE
5616 /* function: cairo_user_font_face_create */
5617 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_user_font_face_create00
5618 static int tolua_cairo_cairo_user_font_face_create00(lua_State* tolua_S)
5620 #ifndef TOLUA_RELEASE
5621 tolua_Error tolua_err;
5623 !tolua_isnoobj(tolua_S,1,&tolua_err)
5630 struct _cairo_font_face* tolua_ret = ( struct _cairo_font_face*) cairo_user_font_face_create();
5631 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_font_face");
5635 #ifndef TOLUA_RELEASE
5637 tolua_error(tolua_S,"#ferror in function 'cairo_user_font_face_create'.",&tolua_err);
5641 #endif //#ifndef TOLUA_DISABLE
5643 /* function: cairo_user_font_face_set_init_func */
5644 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_user_font_face_set_init_func00
5645 static int tolua_cairo_cairo_user_font_face_set_init_func00(lua_State* tolua_S)
5647 #ifndef TOLUA_RELEASE
5648 tolua_Error tolua_err;
5650 !tolua_isusertype(tolua_S,1,"_cairo_font_face",0,&tolua_err) ||
5651 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"cairo_user_scaled_font_init_func_t",0,&tolua_err)) ||
5652 !tolua_isnoobj(tolua_S,3,&tolua_err)
5658 struct _cairo_font_face* font_face = (( struct _cairo_font_face*) tolua_tousertype(tolua_S,1,0));
5659 cairo_user_scaled_font_init_func_t init_func = *((cairo_user_scaled_font_init_func_t*) tolua_tousertype(tolua_S,2,0));
5661 cairo_user_font_face_set_init_func(font_face,init_func);
5665 #ifndef TOLUA_RELEASE
5667 tolua_error(tolua_S,"#ferror in function 'cairo_user_font_face_set_init_func'.",&tolua_err);
5671 #endif //#ifndef TOLUA_DISABLE
5673 /* function: cairo_user_font_face_set_render_glyph_func */
5674 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_user_font_face_set_render_glyph_func00
5675 static int tolua_cairo_cairo_user_font_face_set_render_glyph_func00(lua_State* tolua_S)
5677 #ifndef TOLUA_RELEASE
5678 tolua_Error tolua_err;
5680 !tolua_isusertype(tolua_S,1,"_cairo_font_face",0,&tolua_err) ||
5681 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"cairo_user_scaled_font_render_glyph_func_t",0,&tolua_err)) ||
5682 !tolua_isnoobj(tolua_S,3,&tolua_err)
5688 struct _cairo_font_face* font_face = (( struct _cairo_font_face*) tolua_tousertype(tolua_S,1,0));
5689 cairo_user_scaled_font_render_glyph_func_t render_glyph_func = *((cairo_user_scaled_font_render_glyph_func_t*) tolua_tousertype(tolua_S,2,0));
5691 cairo_user_font_face_set_render_glyph_func(font_face,render_glyph_func);
5695 #ifndef TOLUA_RELEASE
5697 tolua_error(tolua_S,"#ferror in function 'cairo_user_font_face_set_render_glyph_func'.",&tolua_err);
5701 #endif //#ifndef TOLUA_DISABLE
5703 /* function: cairo_user_font_face_set_text_to_glyphs_func */
5704 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_user_font_face_set_text_to_glyphs_func00
5705 static int tolua_cairo_cairo_user_font_face_set_text_to_glyphs_func00(lua_State* tolua_S)
5707 #ifndef TOLUA_RELEASE
5708 tolua_Error tolua_err;
5710 !tolua_isusertype(tolua_S,1,"_cairo_font_face",0,&tolua_err) ||
5711 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"cairo_user_scaled_font_text_to_glyphs_func_t",0,&tolua_err)) ||
5712 !tolua_isnoobj(tolua_S,3,&tolua_err)
5718 struct _cairo_font_face* font_face = (( struct _cairo_font_face*) tolua_tousertype(tolua_S,1,0));
5719 cairo_user_scaled_font_text_to_glyphs_func_t text_to_glyphs_func = *((cairo_user_scaled_font_text_to_glyphs_func_t*) tolua_tousertype(tolua_S,2,0));
5721 cairo_user_font_face_set_text_to_glyphs_func(font_face,text_to_glyphs_func);
5725 #ifndef TOLUA_RELEASE
5727 tolua_error(tolua_S,"#ferror in function 'cairo_user_font_face_set_text_to_glyphs_func'.",&tolua_err);
5731 #endif //#ifndef TOLUA_DISABLE
5733 /* function: cairo_user_font_face_set_unicode_to_glyph_func */
5734 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_user_font_face_set_unicode_to_glyph_func00
5735 static int tolua_cairo_cairo_user_font_face_set_unicode_to_glyph_func00(lua_State* tolua_S)
5737 #ifndef TOLUA_RELEASE
5738 tolua_Error tolua_err;
5740 !tolua_isusertype(tolua_S,1,"_cairo_font_face",0,&tolua_err) ||
5741 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"cairo_user_scaled_font_unicode_to_glyph_func_t",0,&tolua_err)) ||
5742 !tolua_isnoobj(tolua_S,3,&tolua_err)
5748 struct _cairo_font_face* font_face = (( struct _cairo_font_face*) tolua_tousertype(tolua_S,1,0));
5749 cairo_user_scaled_font_unicode_to_glyph_func_t unicode_to_glyph_func = *((cairo_user_scaled_font_unicode_to_glyph_func_t*) tolua_tousertype(tolua_S,2,0));
5751 cairo_user_font_face_set_unicode_to_glyph_func(font_face,unicode_to_glyph_func);
5755 #ifndef TOLUA_RELEASE
5757 tolua_error(tolua_S,"#ferror in function 'cairo_user_font_face_set_unicode_to_glyph_func'.",&tolua_err);
5761 #endif //#ifndef TOLUA_DISABLE
5763 /* function: cairo_user_font_face_get_init_func */
5764 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_user_font_face_get_init_func00
5765 static int tolua_cairo_cairo_user_font_face_get_init_func00(lua_State* tolua_S)
5767 #ifndef TOLUA_RELEASE
5768 tolua_Error tolua_err;
5770 !tolua_isusertype(tolua_S,1,"_cairo_font_face",0,&tolua_err) ||
5771 !tolua_isnoobj(tolua_S,2,&tolua_err)
5777 struct _cairo_font_face* font_face = (( struct _cairo_font_face*) tolua_tousertype(tolua_S,1,0));
5779 cairo_user_scaled_font_init_func_t tolua_ret = (cairo_user_scaled_font_init_func_t) cairo_user_font_face_get_init_func(font_face);
5782 void* tolua_obj = Mtolua_new((cairo_user_scaled_font_init_func_t)(tolua_ret));
5783 tolua_pushusertype(tolua_S,tolua_obj,"cairo_user_scaled_font_init_func_t");
5784 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
5786 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(cairo_user_scaled_font_init_func_t));
5787 tolua_pushusertype(tolua_S,tolua_obj,"cairo_user_scaled_font_init_func_t");
5788 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
5794 #ifndef TOLUA_RELEASE
5796 tolua_error(tolua_S,"#ferror in function 'cairo_user_font_face_get_init_func'.",&tolua_err);
5800 #endif //#ifndef TOLUA_DISABLE
5802 /* function: cairo_user_font_face_get_render_glyph_func */
5803 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_user_font_face_get_render_glyph_func00
5804 static int tolua_cairo_cairo_user_font_face_get_render_glyph_func00(lua_State* tolua_S)
5806 #ifndef TOLUA_RELEASE
5807 tolua_Error tolua_err;
5809 !tolua_isusertype(tolua_S,1,"_cairo_font_face",0,&tolua_err) ||
5810 !tolua_isnoobj(tolua_S,2,&tolua_err)
5816 struct _cairo_font_face* font_face = (( struct _cairo_font_face*) tolua_tousertype(tolua_S,1,0));
5818 cairo_user_scaled_font_render_glyph_func_t tolua_ret = (cairo_user_scaled_font_render_glyph_func_t) cairo_user_font_face_get_render_glyph_func(font_face);
5821 void* tolua_obj = Mtolua_new((cairo_user_scaled_font_render_glyph_func_t)(tolua_ret));
5822 tolua_pushusertype(tolua_S,tolua_obj,"cairo_user_scaled_font_render_glyph_func_t");
5823 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
5825 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(cairo_user_scaled_font_render_glyph_func_t));
5826 tolua_pushusertype(tolua_S,tolua_obj,"cairo_user_scaled_font_render_glyph_func_t");
5827 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
5833 #ifndef TOLUA_RELEASE
5835 tolua_error(tolua_S,"#ferror in function 'cairo_user_font_face_get_render_glyph_func'.",&tolua_err);
5839 #endif //#ifndef TOLUA_DISABLE
5841 /* function: cairo_user_font_face_get_text_to_glyphs_func */
5842 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_user_font_face_get_text_to_glyphs_func00
5843 static int tolua_cairo_cairo_user_font_face_get_text_to_glyphs_func00(lua_State* tolua_S)
5845 #ifndef TOLUA_RELEASE
5846 tolua_Error tolua_err;
5848 !tolua_isusertype(tolua_S,1,"_cairo_font_face",0,&tolua_err) ||
5849 !tolua_isnoobj(tolua_S,2,&tolua_err)
5855 struct _cairo_font_face* font_face = (( struct _cairo_font_face*) tolua_tousertype(tolua_S,1,0));
5857 cairo_user_scaled_font_text_to_glyphs_func_t tolua_ret = (cairo_user_scaled_font_text_to_glyphs_func_t) cairo_user_font_face_get_text_to_glyphs_func(font_face);
5860 void* tolua_obj = Mtolua_new((cairo_user_scaled_font_text_to_glyphs_func_t)(tolua_ret));
5861 tolua_pushusertype(tolua_S,tolua_obj,"cairo_user_scaled_font_text_to_glyphs_func_t");
5862 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
5864 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(cairo_user_scaled_font_text_to_glyphs_func_t));
5865 tolua_pushusertype(tolua_S,tolua_obj,"cairo_user_scaled_font_text_to_glyphs_func_t");
5866 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
5872 #ifndef TOLUA_RELEASE
5874 tolua_error(tolua_S,"#ferror in function 'cairo_user_font_face_get_text_to_glyphs_func'.",&tolua_err);
5878 #endif //#ifndef TOLUA_DISABLE
5880 /* function: cairo_user_font_face_get_unicode_to_glyph_func */
5881 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_user_font_face_get_unicode_to_glyph_func00
5882 static int tolua_cairo_cairo_user_font_face_get_unicode_to_glyph_func00(lua_State* tolua_S)
5884 #ifndef TOLUA_RELEASE
5885 tolua_Error tolua_err;
5887 !tolua_isusertype(tolua_S,1,"_cairo_font_face",0,&tolua_err) ||
5888 !tolua_isnoobj(tolua_S,2,&tolua_err)
5894 struct _cairo_font_face* font_face = (( struct _cairo_font_face*) tolua_tousertype(tolua_S,1,0));
5896 cairo_user_scaled_font_unicode_to_glyph_func_t tolua_ret = (cairo_user_scaled_font_unicode_to_glyph_func_t) cairo_user_font_face_get_unicode_to_glyph_func(font_face);
5899 void* tolua_obj = Mtolua_new((cairo_user_scaled_font_unicode_to_glyph_func_t)(tolua_ret));
5900 tolua_pushusertype(tolua_S,tolua_obj,"cairo_user_scaled_font_unicode_to_glyph_func_t");
5901 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
5903 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(cairo_user_scaled_font_unicode_to_glyph_func_t));
5904 tolua_pushusertype(tolua_S,tolua_obj,"cairo_user_scaled_font_unicode_to_glyph_func_t");
5905 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
5911 #ifndef TOLUA_RELEASE
5913 tolua_error(tolua_S,"#ferror in function 'cairo_user_font_face_get_unicode_to_glyph_func'.",&tolua_err);
5917 #endif //#ifndef TOLUA_DISABLE
5919 /* function: cairo_get_operator */
5920 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_get_operator00
5921 static int tolua_cairo_cairo_get_operator00(lua_State* tolua_S)
5923 #ifndef TOLUA_RELEASE
5924 tolua_Error tolua_err;
5926 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
5927 !tolua_isnoobj(tolua_S,2,&tolua_err)
5933 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
5935 cairo_operator_t tolua_ret = (cairo_operator_t) cairo_get_operator(cr);
5936 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
5940 #ifndef TOLUA_RELEASE
5942 tolua_error(tolua_S,"#ferror in function 'cairo_get_operator'.",&tolua_err);
5946 #endif //#ifndef TOLUA_DISABLE
5948 /* function: cairo_get_source */
5949 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_get_source00
5950 static int tolua_cairo_cairo_get_source00(lua_State* tolua_S)
5952 #ifndef TOLUA_RELEASE
5953 tolua_Error tolua_err;
5955 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
5956 !tolua_isnoobj(tolua_S,2,&tolua_err)
5962 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
5964 struct _cairo_pattern* tolua_ret = ( struct _cairo_pattern*) cairo_get_source(cr);
5965 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_pattern");
5969 #ifndef TOLUA_RELEASE
5971 tolua_error(tolua_S,"#ferror in function 'cairo_get_source'.",&tolua_err);
5975 #endif //#ifndef TOLUA_DISABLE
5977 /* function: cairo_get_tolerance */
5978 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_get_tolerance00
5979 static int tolua_cairo_cairo_get_tolerance00(lua_State* tolua_S)
5981 #ifndef TOLUA_RELEASE
5982 tolua_Error tolua_err;
5984 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
5985 !tolua_isnoobj(tolua_S,2,&tolua_err)
5991 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
5993 double tolua_ret = (double) cairo_get_tolerance(cr);
5994 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
5998 #ifndef TOLUA_RELEASE
6000 tolua_error(tolua_S,"#ferror in function 'cairo_get_tolerance'.",&tolua_err);
6004 #endif //#ifndef TOLUA_DISABLE
6006 /* function: cairo_get_antialias */
6007 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_get_antialias00
6008 static int tolua_cairo_cairo_get_antialias00(lua_State* tolua_S)
6010 #ifndef TOLUA_RELEASE
6011 tolua_Error tolua_err;
6013 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
6014 !tolua_isnoobj(tolua_S,2,&tolua_err)
6020 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
6022 cairo_antialias_t tolua_ret = (cairo_antialias_t) cairo_get_antialias(cr);
6023 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6027 #ifndef TOLUA_RELEASE
6029 tolua_error(tolua_S,"#ferror in function 'cairo_get_antialias'.",&tolua_err);
6033 #endif //#ifndef TOLUA_DISABLE
6035 /* function: cairo_has_current_point */
6036 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_has_current_point00
6037 static int tolua_cairo_cairo_has_current_point00(lua_State* tolua_S)
6039 #ifndef TOLUA_RELEASE
6040 tolua_Error tolua_err;
6042 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
6043 !tolua_isnoobj(tolua_S,2,&tolua_err)
6049 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
6051 int tolua_ret = ( int) cairo_has_current_point(cr);
6052 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6056 #ifndef TOLUA_RELEASE
6058 tolua_error(tolua_S,"#ferror in function 'cairo_has_current_point'.",&tolua_err);
6062 #endif //#ifndef TOLUA_DISABLE
6064 /* function: cairo_get_current_point */
6065 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_get_current_point00
6066 static int tolua_cairo_cairo_get_current_point00(lua_State* tolua_S)
6068 #ifndef TOLUA_RELEASE
6069 tolua_Error tolua_err;
6071 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
6072 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6073 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6074 !tolua_isnoobj(tolua_S,4,&tolua_err)
6080 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
6081 double x = ((double) tolua_tonumber(tolua_S,2,0));
6082 double y = ((double) tolua_tonumber(tolua_S,3,0));
6084 cairo_get_current_point(cr,&x,&y);
6085 tolua_pushnumber(tolua_S,(lua_Number)x);
6086 tolua_pushnumber(tolua_S,(lua_Number)y);
6090 #ifndef TOLUA_RELEASE
6092 tolua_error(tolua_S,"#ferror in function 'cairo_get_current_point'.",&tolua_err);
6096 #endif //#ifndef TOLUA_DISABLE
6098 /* function: cairo_get_fill_rule */
6099 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_get_fill_rule00
6100 static int tolua_cairo_cairo_get_fill_rule00(lua_State* tolua_S)
6102 #ifndef TOLUA_RELEASE
6103 tolua_Error tolua_err;
6105 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
6106 !tolua_isnoobj(tolua_S,2,&tolua_err)
6112 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
6114 cairo_fill_rule_t tolua_ret = (cairo_fill_rule_t) cairo_get_fill_rule(cr);
6115 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6119 #ifndef TOLUA_RELEASE
6121 tolua_error(tolua_S,"#ferror in function 'cairo_get_fill_rule'.",&tolua_err);
6125 #endif //#ifndef TOLUA_DISABLE
6127 /* function: cairo_get_line_width */
6128 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_get_line_width00
6129 static int tolua_cairo_cairo_get_line_width00(lua_State* tolua_S)
6131 #ifndef TOLUA_RELEASE
6132 tolua_Error tolua_err;
6134 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
6135 !tolua_isnoobj(tolua_S,2,&tolua_err)
6141 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
6143 double tolua_ret = (double) cairo_get_line_width(cr);
6144 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6148 #ifndef TOLUA_RELEASE
6150 tolua_error(tolua_S,"#ferror in function 'cairo_get_line_width'.",&tolua_err);
6154 #endif //#ifndef TOLUA_DISABLE
6156 /* function: cairo_get_line_cap */
6157 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_get_line_cap00
6158 static int tolua_cairo_cairo_get_line_cap00(lua_State* tolua_S)
6160 #ifndef TOLUA_RELEASE
6161 tolua_Error tolua_err;
6163 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
6164 !tolua_isnoobj(tolua_S,2,&tolua_err)
6170 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
6172 cairo_line_cap_t tolua_ret = (cairo_line_cap_t) cairo_get_line_cap(cr);
6173 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6177 #ifndef TOLUA_RELEASE
6179 tolua_error(tolua_S,"#ferror in function 'cairo_get_line_cap'.",&tolua_err);
6183 #endif //#ifndef TOLUA_DISABLE
6185 /* function: cairo_get_line_join */
6186 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_get_line_join00
6187 static int tolua_cairo_cairo_get_line_join00(lua_State* tolua_S)
6189 #ifndef TOLUA_RELEASE
6190 tolua_Error tolua_err;
6192 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
6193 !tolua_isnoobj(tolua_S,2,&tolua_err)
6199 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
6201 cairo_line_join_t tolua_ret = (cairo_line_join_t) cairo_get_line_join(cr);
6202 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6206 #ifndef TOLUA_RELEASE
6208 tolua_error(tolua_S,"#ferror in function 'cairo_get_line_join'.",&tolua_err);
6212 #endif //#ifndef TOLUA_DISABLE
6214 /* function: cairo_get_miter_limit */
6215 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_get_miter_limit00
6216 static int tolua_cairo_cairo_get_miter_limit00(lua_State* tolua_S)
6218 #ifndef TOLUA_RELEASE
6219 tolua_Error tolua_err;
6221 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
6222 !tolua_isnoobj(tolua_S,2,&tolua_err)
6228 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
6230 double tolua_ret = (double) cairo_get_miter_limit(cr);
6231 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6235 #ifndef TOLUA_RELEASE
6237 tolua_error(tolua_S,"#ferror in function 'cairo_get_miter_limit'.",&tolua_err);
6241 #endif //#ifndef TOLUA_DISABLE
6243 /* function: cairo_get_dash_count */
6244 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_get_dash_count00
6245 static int tolua_cairo_cairo_get_dash_count00(lua_State* tolua_S)
6247 #ifndef TOLUA_RELEASE
6248 tolua_Error tolua_err;
6250 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
6251 !tolua_isnoobj(tolua_S,2,&tolua_err)
6257 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
6259 int tolua_ret = (int) cairo_get_dash_count(cr);
6260 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6264 #ifndef TOLUA_RELEASE
6266 tolua_error(tolua_S,"#ferror in function 'cairo_get_dash_count'.",&tolua_err);
6270 #endif //#ifndef TOLUA_DISABLE
6272 /* function: cairo_get_dash */
6273 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_get_dash00
6274 static int tolua_cairo_cairo_get_dash00(lua_State* tolua_S)
6276 #ifndef TOLUA_RELEASE
6277 tolua_Error tolua_err;
6279 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
6280 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6281 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6282 !tolua_isnoobj(tolua_S,4,&tolua_err)
6288 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
6289 double dashes = ((double) tolua_tonumber(tolua_S,2,0));
6290 double offset = ((double) tolua_tonumber(tolua_S,3,0));
6292 cairo_get_dash(cr,&dashes,&offset);
6293 tolua_pushnumber(tolua_S,(lua_Number)dashes);
6294 tolua_pushnumber(tolua_S,(lua_Number)offset);
6298 #ifndef TOLUA_RELEASE
6300 tolua_error(tolua_S,"#ferror in function 'cairo_get_dash'.",&tolua_err);
6304 #endif //#ifndef TOLUA_DISABLE
6306 /* function: cairo_get_matrix */
6307 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_get_matrix00
6308 static int tolua_cairo_cairo_get_matrix00(lua_State* tolua_S)
6310 #ifndef TOLUA_RELEASE
6311 tolua_Error tolua_err;
6313 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
6314 !tolua_isusertype(tolua_S,2,"cairo_matrix_t",0,&tolua_err) ||
6315 !tolua_isnoobj(tolua_S,3,&tolua_err)
6321 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
6322 cairo_matrix_t* matrix = ((cairo_matrix_t*) tolua_tousertype(tolua_S,2,0));
6324 cairo_get_matrix(cr,matrix);
6328 #ifndef TOLUA_RELEASE
6330 tolua_error(tolua_S,"#ferror in function 'cairo_get_matrix'.",&tolua_err);
6334 #endif //#ifndef TOLUA_DISABLE
6336 /* function: cairo_get_target */
6337 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_get_target00
6338 static int tolua_cairo_cairo_get_target00(lua_State* tolua_S)
6340 #ifndef TOLUA_RELEASE
6341 tolua_Error tolua_err;
6343 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
6344 !tolua_isnoobj(tolua_S,2,&tolua_err)
6350 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
6352 struct _cairo_surface* tolua_ret = ( struct _cairo_surface*) cairo_get_target(cr);
6353 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_surface");
6357 #ifndef TOLUA_RELEASE
6359 tolua_error(tolua_S,"#ferror in function 'cairo_get_target'.",&tolua_err);
6363 #endif //#ifndef TOLUA_DISABLE
6365 /* function: cairo_get_group_target */
6366 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_get_group_target00
6367 static int tolua_cairo_cairo_get_group_target00(lua_State* tolua_S)
6369 #ifndef TOLUA_RELEASE
6370 tolua_Error tolua_err;
6372 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
6373 !tolua_isnoobj(tolua_S,2,&tolua_err)
6379 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
6381 struct _cairo_surface* tolua_ret = ( struct _cairo_surface*) cairo_get_group_target(cr);
6382 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_surface");
6386 #ifndef TOLUA_RELEASE
6388 tolua_error(tolua_S,"#ferror in function 'cairo_get_group_target'.",&tolua_err);
6392 #endif //#ifndef TOLUA_DISABLE
6394 /* get function: status of class cairo_path_t */
6395 #ifndef TOLUA_DISABLE_tolua_get_cairo_path_t_status
6396 static int tolua_get_cairo_path_t_status(lua_State* tolua_S)
6398 cairo_path_t* self = (cairo_path_t*) tolua_tousertype(tolua_S,1,0);
6399 #ifndef TOLUA_RELEASE
6400 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'status'",NULL);
6402 tolua_pushnumber(tolua_S,(lua_Number)self->status);
6405 #endif //#ifndef TOLUA_DISABLE
6407 /* set function: status of class cairo_path_t */
6408 #ifndef TOLUA_DISABLE_tolua_set_cairo_path_t_status
6409 static int tolua_set_cairo_path_t_status(lua_State* tolua_S)
6411 cairo_path_t* self = (cairo_path_t*) tolua_tousertype(tolua_S,1,0);
6412 #ifndef TOLUA_RELEASE
6413 tolua_Error tolua_err;
6414 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'status'",NULL);
6415 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
6416 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
6418 self->status = ((cairo_status_t) (int) tolua_tonumber(tolua_S,2,0))
6422 #endif //#ifndef TOLUA_DISABLE
6424 /* get function: data of class cairo_path_t */
6425 #ifndef TOLUA_DISABLE_tolua_get_cairo_path_t_data_ptr
6426 static int tolua_get_cairo_path_t_data_ptr(lua_State* tolua_S)
6428 cairo_path_t* self = (cairo_path_t*) tolua_tousertype(tolua_S,1,0);
6429 #ifndef TOLUA_RELEASE
6430 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'data'",NULL);
6432 tolua_pushusertype(tolua_S,(void*)self->data,"_cairo_path_data_t");
6435 #endif //#ifndef TOLUA_DISABLE
6437 /* set function: data of class cairo_path_t */
6438 #ifndef TOLUA_DISABLE_tolua_set_cairo_path_t_data_ptr
6439 static int tolua_set_cairo_path_t_data_ptr(lua_State* tolua_S)
6441 cairo_path_t* self = (cairo_path_t*) tolua_tousertype(tolua_S,1,0);
6442 #ifndef TOLUA_RELEASE
6443 tolua_Error tolua_err;
6444 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'data'",NULL);
6445 if (!tolua_isusertype(tolua_S,2,"_cairo_path_data_t",0,&tolua_err))
6446 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
6448 self->data = (( union _cairo_path_data_t*) tolua_tousertype(tolua_S,2,0))
6452 #endif //#ifndef TOLUA_DISABLE
6454 /* get function: num_data of class cairo_path_t */
6455 #ifndef TOLUA_DISABLE_tolua_get_cairo_path_t_num_data
6456 static int tolua_get_cairo_path_t_num_data(lua_State* tolua_S)
6458 cairo_path_t* self = (cairo_path_t*) tolua_tousertype(tolua_S,1,0);
6459 #ifndef TOLUA_RELEASE
6460 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'num_data'",NULL);
6462 tolua_pushnumber(tolua_S,(lua_Number)self->num_data);
6465 #endif //#ifndef TOLUA_DISABLE
6467 /* set function: num_data of class cairo_path_t */
6468 #ifndef TOLUA_DISABLE_tolua_set_cairo_path_t_num_data
6469 static int tolua_set_cairo_path_t_num_data(lua_State* tolua_S)
6471 cairo_path_t* self = (cairo_path_t*) tolua_tousertype(tolua_S,1,0);
6472 #ifndef TOLUA_RELEASE
6473 tolua_Error tolua_err;
6474 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'num_data'",NULL);
6475 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
6476 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
6478 self->num_data = ((int) tolua_tonumber(tolua_S,2,0))
6482 #endif //#ifndef TOLUA_DISABLE
6484 /* function: cairo_copy_path */
6485 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_copy_path00
6486 static int tolua_cairo_cairo_copy_path00(lua_State* tolua_S)
6488 #ifndef TOLUA_RELEASE
6489 tolua_Error tolua_err;
6491 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
6492 !tolua_isnoobj(tolua_S,2,&tolua_err)
6498 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
6500 cairo_path_t* tolua_ret = (cairo_path_t*) cairo_copy_path(cr);
6501 tolua_pushusertype(tolua_S,(void*)tolua_ret,"cairo_path_t");
6505 #ifndef TOLUA_RELEASE
6507 tolua_error(tolua_S,"#ferror in function 'cairo_copy_path'.",&tolua_err);
6511 #endif //#ifndef TOLUA_DISABLE
6513 /* function: cairo_copy_path_flat */
6514 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_copy_path_flat00
6515 static int tolua_cairo_cairo_copy_path_flat00(lua_State* tolua_S)
6517 #ifndef TOLUA_RELEASE
6518 tolua_Error tolua_err;
6520 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
6521 !tolua_isnoobj(tolua_S,2,&tolua_err)
6527 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
6529 cairo_path_t* tolua_ret = (cairo_path_t*) cairo_copy_path_flat(cr);
6530 tolua_pushusertype(tolua_S,(void*)tolua_ret,"cairo_path_t");
6534 #ifndef TOLUA_RELEASE
6536 tolua_error(tolua_S,"#ferror in function 'cairo_copy_path_flat'.",&tolua_err);
6540 #endif //#ifndef TOLUA_DISABLE
6542 /* function: cairo_append_path */
6543 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_append_path00
6544 static int tolua_cairo_cairo_append_path00(lua_State* tolua_S)
6546 #ifndef TOLUA_RELEASE
6547 tolua_Error tolua_err;
6549 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
6550 !tolua_isusertype(tolua_S,2,"const cairo_path_t",0,&tolua_err) ||
6551 !tolua_isnoobj(tolua_S,3,&tolua_err)
6557 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
6558 const cairo_path_t* path = ((const cairo_path_t*) tolua_tousertype(tolua_S,2,0));
6560 cairo_append_path(cr,path);
6564 #ifndef TOLUA_RELEASE
6566 tolua_error(tolua_S,"#ferror in function 'cairo_append_path'.",&tolua_err);
6570 #endif //#ifndef TOLUA_DISABLE
6572 /* function: cairo_path_destroy */
6573 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_path_destroy00
6574 static int tolua_cairo_cairo_path_destroy00(lua_State* tolua_S)
6576 #ifndef TOLUA_RELEASE
6577 tolua_Error tolua_err;
6579 !tolua_isusertype(tolua_S,1,"cairo_path_t",0,&tolua_err) ||
6580 !tolua_isnoobj(tolua_S,2,&tolua_err)
6586 cairo_path_t* path = ((cairo_path_t*) tolua_tousertype(tolua_S,1,0));
6588 cairo_path_destroy(path);
6592 #ifndef TOLUA_RELEASE
6594 tolua_error(tolua_S,"#ferror in function 'cairo_path_destroy'.",&tolua_err);
6598 #endif //#ifndef TOLUA_DISABLE
6600 /* function: cairo_status */
6601 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_status00
6602 static int tolua_cairo_cairo_status00(lua_State* tolua_S)
6604 #ifndef TOLUA_RELEASE
6605 tolua_Error tolua_err;
6607 !tolua_isusertype(tolua_S,1,"_cairo",0,&tolua_err) ||
6608 !tolua_isnoobj(tolua_S,2,&tolua_err)
6614 struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
6616 cairo_status_t tolua_ret = (cairo_status_t) cairo_status(cr);
6617 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6621 #ifndef TOLUA_RELEASE
6623 tolua_error(tolua_S,"#ferror in function 'cairo_status'.",&tolua_err);
6627 #endif //#ifndef TOLUA_DISABLE
6629 /* function: cairo_status_to_string */
6630 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_status_to_string00
6631 static int tolua_cairo_cairo_status_to_string00(lua_State* tolua_S)
6633 #ifndef TOLUA_RELEASE
6634 tolua_Error tolua_err;
6636 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6637 !tolua_isnoobj(tolua_S,2,&tolua_err)
6643 cairo_status_t status = ((cairo_status_t) (int) tolua_tonumber(tolua_S,1,0));
6645 const char* tolua_ret = (const char*) cairo_status_to_string(status);
6646 tolua_pushstring(tolua_S,(const char*)tolua_ret);
6650 #ifndef TOLUA_RELEASE
6652 tolua_error(tolua_S,"#ferror in function 'cairo_status_to_string'.",&tolua_err);
6656 #endif //#ifndef TOLUA_DISABLE
6658 /* function: cairo_surface_create_similar */
6659 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_create_similar00
6660 static int tolua_cairo_cairo_surface_create_similar00(lua_State* tolua_S)
6662 #ifndef TOLUA_RELEASE
6663 tolua_Error tolua_err;
6665 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
6666 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6667 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6668 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6669 !tolua_isnoobj(tolua_S,5,&tolua_err)
6675 struct _cairo_surface* other = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
6676 cairo_content_t content = ((cairo_content_t) (int) tolua_tonumber(tolua_S,2,0));
6677 int width = ((int) tolua_tonumber(tolua_S,3,0));
6678 int height = ((int) tolua_tonumber(tolua_S,4,0));
6680 struct _cairo_surface* tolua_ret = ( struct _cairo_surface*) cairo_surface_create_similar(other,content,width,height);
6681 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_surface");
6685 #ifndef TOLUA_RELEASE
6687 tolua_error(tolua_S,"#ferror in function 'cairo_surface_create_similar'.",&tolua_err);
6691 #endif //#ifndef TOLUA_DISABLE
6693 /* function: cairo_surface_reference */
6694 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_reference00
6695 static int tolua_cairo_cairo_surface_reference00(lua_State* tolua_S)
6697 #ifndef TOLUA_RELEASE
6698 tolua_Error tolua_err;
6700 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
6701 !tolua_isnoobj(tolua_S,2,&tolua_err)
6707 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
6709 struct _cairo_surface* tolua_ret = ( struct _cairo_surface*) cairo_surface_reference(surface);
6710 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_surface");
6714 #ifndef TOLUA_RELEASE
6716 tolua_error(tolua_S,"#ferror in function 'cairo_surface_reference'.",&tolua_err);
6720 #endif //#ifndef TOLUA_DISABLE
6722 /* function: cairo_surface_finish */
6723 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_finish00
6724 static int tolua_cairo_cairo_surface_finish00(lua_State* tolua_S)
6726 #ifndef TOLUA_RELEASE
6727 tolua_Error tolua_err;
6729 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
6730 !tolua_isnoobj(tolua_S,2,&tolua_err)
6736 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
6738 cairo_surface_finish(surface);
6742 #ifndef TOLUA_RELEASE
6744 tolua_error(tolua_S,"#ferror in function 'cairo_surface_finish'.",&tolua_err);
6748 #endif //#ifndef TOLUA_DISABLE
6750 /* function: cairo_surface_destroy */
6751 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_destroy00
6752 static int tolua_cairo_cairo_surface_destroy00(lua_State* tolua_S)
6754 #ifndef TOLUA_RELEASE
6755 tolua_Error tolua_err;
6757 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
6758 !tolua_isnoobj(tolua_S,2,&tolua_err)
6764 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
6766 cairo_surface_destroy(surface);
6770 #ifndef TOLUA_RELEASE
6772 tolua_error(tolua_S,"#ferror in function 'cairo_surface_destroy'.",&tolua_err);
6776 #endif //#ifndef TOLUA_DISABLE
6778 /* function: cairo_surface_get_reference_count */
6779 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_get_reference_count00
6780 static int tolua_cairo_cairo_surface_get_reference_count00(lua_State* tolua_S)
6782 #ifndef TOLUA_RELEASE
6783 tolua_Error tolua_err;
6785 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
6786 !tolua_isnoobj(tolua_S,2,&tolua_err)
6792 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
6794 unsigned int tolua_ret = (unsigned int) cairo_surface_get_reference_count(surface);
6795 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6799 #ifndef TOLUA_RELEASE
6801 tolua_error(tolua_S,"#ferror in function 'cairo_surface_get_reference_count'.",&tolua_err);
6805 #endif //#ifndef TOLUA_DISABLE
6807 /* function: cairo_surface_status */
6808 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_status00
6809 static int tolua_cairo_cairo_surface_status00(lua_State* tolua_S)
6811 #ifndef TOLUA_RELEASE
6812 tolua_Error tolua_err;
6814 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
6815 !tolua_isnoobj(tolua_S,2,&tolua_err)
6821 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
6823 cairo_status_t tolua_ret = (cairo_status_t) cairo_surface_status(surface);
6824 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6828 #ifndef TOLUA_RELEASE
6830 tolua_error(tolua_S,"#ferror in function 'cairo_surface_status'.",&tolua_err);
6834 #endif //#ifndef TOLUA_DISABLE
6836 /* function: cairo_surface_get_type */
6837 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_get_type00
6838 static int tolua_cairo_cairo_surface_get_type00(lua_State* tolua_S)
6840 #ifndef TOLUA_RELEASE
6841 tolua_Error tolua_err;
6843 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
6844 !tolua_isnoobj(tolua_S,2,&tolua_err)
6850 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
6852 cairo_surface_type_t tolua_ret = (cairo_surface_type_t) cairo_surface_get_type(surface);
6853 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6857 #ifndef TOLUA_RELEASE
6859 tolua_error(tolua_S,"#ferror in function 'cairo_surface_get_type'.",&tolua_err);
6863 #endif //#ifndef TOLUA_DISABLE
6865 /* function: cairo_surface_get_content */
6866 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_get_content00
6867 static int tolua_cairo_cairo_surface_get_content00(lua_State* tolua_S)
6869 #ifndef TOLUA_RELEASE
6870 tolua_Error tolua_err;
6872 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
6873 !tolua_isnoobj(tolua_S,2,&tolua_err)
6879 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
6881 cairo_content_t tolua_ret = (cairo_content_t) cairo_surface_get_content(surface);
6882 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6886 #ifndef TOLUA_RELEASE
6888 tolua_error(tolua_S,"#ferror in function 'cairo_surface_get_content'.",&tolua_err);
6892 #endif //#ifndef TOLUA_DISABLE
6894 /* function: cairo_surface_write_to_png */
6895 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_write_to_png00
6896 static int tolua_cairo_cairo_surface_write_to_png00(lua_State* tolua_S)
6898 #ifndef TOLUA_RELEASE
6899 tolua_Error tolua_err;
6901 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
6902 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
6903 !tolua_isnoobj(tolua_S,3,&tolua_err)
6909 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
6910 const char* filename = ((const char*) tolua_tostring(tolua_S,2,0));
6912 cairo_status_t tolua_ret = (cairo_status_t) cairo_surface_write_to_png(surface,filename);
6913 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6917 #ifndef TOLUA_RELEASE
6919 tolua_error(tolua_S,"#ferror in function 'cairo_surface_write_to_png'.",&tolua_err);
6923 #endif //#ifndef TOLUA_DISABLE
6925 /* function: cairo_surface_write_to_png_stream */
6926 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_write_to_png_stream00
6927 static int tolua_cairo_cairo_surface_write_to_png_stream00(lua_State* tolua_S)
6929 #ifndef TOLUA_RELEASE
6930 tolua_Error tolua_err;
6932 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
6933 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"cairo_write_func_t",0,&tolua_err)) ||
6934 !tolua_isuserdata(tolua_S,3,0,&tolua_err) ||
6935 !tolua_isnoobj(tolua_S,4,&tolua_err)
6941 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
6942 cairo_write_func_t write_func = *((cairo_write_func_t*) tolua_tousertype(tolua_S,2,0));
6943 void* closure = ((void*) tolua_touserdata(tolua_S,3,0));
6945 cairo_status_t tolua_ret = (cairo_status_t) cairo_surface_write_to_png_stream(surface,write_func,closure);
6946 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6950 #ifndef TOLUA_RELEASE
6952 tolua_error(tolua_S,"#ferror in function 'cairo_surface_write_to_png_stream'.",&tolua_err);
6956 #endif //#ifndef TOLUA_DISABLE
6958 /* function: cairo_surface_get_user_data */
6959 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_get_user_data00
6960 static int tolua_cairo_cairo_surface_get_user_data00(lua_State* tolua_S)
6962 #ifndef TOLUA_RELEASE
6963 tolua_Error tolua_err;
6965 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
6966 !tolua_isusertype(tolua_S,2,"const cairo_user_data_key_t",0,&tolua_err) ||
6967 !tolua_isnoobj(tolua_S,3,&tolua_err)
6973 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
6974 const cairo_user_data_key_t* key = ((const cairo_user_data_key_t*) tolua_tousertype(tolua_S,2,0));
6976 void* tolua_ret = (void*) cairo_surface_get_user_data(surface,key);
6977 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
6981 #ifndef TOLUA_RELEASE
6983 tolua_error(tolua_S,"#ferror in function 'cairo_surface_get_user_data'.",&tolua_err);
6987 #endif //#ifndef TOLUA_DISABLE
6989 /* function: cairo_surface_set_user_data */
6990 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_set_user_data00
6991 static int tolua_cairo_cairo_surface_set_user_data00(lua_State* tolua_S)
6993 #ifndef TOLUA_RELEASE
6994 tolua_Error tolua_err;
6996 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
6997 !tolua_isusertype(tolua_S,2,"const cairo_user_data_key_t",0,&tolua_err) ||
6998 !tolua_isuserdata(tolua_S,3,0,&tolua_err) ||
6999 (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"cairo_destroy_func_t",0,&tolua_err)) ||
7000 !tolua_isnoobj(tolua_S,5,&tolua_err)
7006 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
7007 const cairo_user_data_key_t* key = ((const cairo_user_data_key_t*) tolua_tousertype(tolua_S,2,0));
7008 void* user_data = ((void*) tolua_touserdata(tolua_S,3,0));
7009 cairo_destroy_func_t destroy = *((cairo_destroy_func_t*) tolua_tousertype(tolua_S,4,0));
7011 cairo_status_t tolua_ret = (cairo_status_t) cairo_surface_set_user_data(surface,key,user_data,destroy);
7012 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
7016 #ifndef TOLUA_RELEASE
7018 tolua_error(tolua_S,"#ferror in function 'cairo_surface_set_user_data'.",&tolua_err);
7022 #endif //#ifndef TOLUA_DISABLE
7024 /* function: cairo_surface_get_font_options */
7025 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_get_font_options00
7026 static int tolua_cairo_cairo_surface_get_font_options00(lua_State* tolua_S)
7028 #ifndef TOLUA_RELEASE
7029 tolua_Error tolua_err;
7031 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
7032 !tolua_isusertype(tolua_S,2,"_cairo_font_options",0,&tolua_err) ||
7033 !tolua_isnoobj(tolua_S,3,&tolua_err)
7039 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
7040 struct _cairo_font_options* options = (( struct _cairo_font_options*) tolua_tousertype(tolua_S,2,0));
7042 cairo_surface_get_font_options(surface,options);
7046 #ifndef TOLUA_RELEASE
7048 tolua_error(tolua_S,"#ferror in function 'cairo_surface_get_font_options'.",&tolua_err);
7052 #endif //#ifndef TOLUA_DISABLE
7054 /* function: cairo_surface_flush */
7055 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_flush00
7056 static int tolua_cairo_cairo_surface_flush00(lua_State* tolua_S)
7058 #ifndef TOLUA_RELEASE
7059 tolua_Error tolua_err;
7061 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
7062 !tolua_isnoobj(tolua_S,2,&tolua_err)
7068 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
7070 cairo_surface_flush(surface);
7074 #ifndef TOLUA_RELEASE
7076 tolua_error(tolua_S,"#ferror in function 'cairo_surface_flush'.",&tolua_err);
7080 #endif //#ifndef TOLUA_DISABLE
7082 /* function: cairo_surface_mark_dirty */
7083 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_mark_dirty00
7084 static int tolua_cairo_cairo_surface_mark_dirty00(lua_State* tolua_S)
7086 #ifndef TOLUA_RELEASE
7087 tolua_Error tolua_err;
7089 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
7090 !tolua_isnoobj(tolua_S,2,&tolua_err)
7096 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
7098 cairo_surface_mark_dirty(surface);
7102 #ifndef TOLUA_RELEASE
7104 tolua_error(tolua_S,"#ferror in function 'cairo_surface_mark_dirty'.",&tolua_err);
7108 #endif //#ifndef TOLUA_DISABLE
7110 /* function: cairo_surface_mark_dirty_rectangle */
7111 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_mark_dirty_rectangle00
7112 static int tolua_cairo_cairo_surface_mark_dirty_rectangle00(lua_State* tolua_S)
7114 #ifndef TOLUA_RELEASE
7115 tolua_Error tolua_err;
7117 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
7118 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
7119 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
7120 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
7121 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
7122 !tolua_isnoobj(tolua_S,6,&tolua_err)
7128 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
7129 int x = ((int) tolua_tonumber(tolua_S,2,0));
7130 int y = ((int) tolua_tonumber(tolua_S,3,0));
7131 int width = ((int) tolua_tonumber(tolua_S,4,0));
7132 int height = ((int) tolua_tonumber(tolua_S,5,0));
7134 cairo_surface_mark_dirty_rectangle(surface,x,y,width,height);
7138 #ifndef TOLUA_RELEASE
7140 tolua_error(tolua_S,"#ferror in function 'cairo_surface_mark_dirty_rectangle'.",&tolua_err);
7144 #endif //#ifndef TOLUA_DISABLE
7146 /* function: cairo_surface_set_device_offset */
7147 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_set_device_offset00
7148 static int tolua_cairo_cairo_surface_set_device_offset00(lua_State* tolua_S)
7150 #ifndef TOLUA_RELEASE
7151 tolua_Error tolua_err;
7153 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
7154 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
7155 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
7156 !tolua_isnoobj(tolua_S,4,&tolua_err)
7162 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
7163 double x_offset = ((double) tolua_tonumber(tolua_S,2,0));
7164 double y_offset = ((double) tolua_tonumber(tolua_S,3,0));
7166 cairo_surface_set_device_offset(surface,x_offset,y_offset);
7170 #ifndef TOLUA_RELEASE
7172 tolua_error(tolua_S,"#ferror in function 'cairo_surface_set_device_offset'.",&tolua_err);
7176 #endif //#ifndef TOLUA_DISABLE
7178 /* function: cairo_surface_get_device_offset */
7179 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_get_device_offset00
7180 static int tolua_cairo_cairo_surface_get_device_offset00(lua_State* tolua_S)
7182 #ifndef TOLUA_RELEASE
7183 tolua_Error tolua_err;
7185 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
7186 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
7187 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
7188 !tolua_isnoobj(tolua_S,4,&tolua_err)
7194 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
7195 double x_offset = ((double) tolua_tonumber(tolua_S,2,0));
7196 double y_offset = ((double) tolua_tonumber(tolua_S,3,0));
7198 cairo_surface_get_device_offset(surface,&x_offset,&y_offset);
7199 tolua_pushnumber(tolua_S,(lua_Number)x_offset);
7200 tolua_pushnumber(tolua_S,(lua_Number)y_offset);
7204 #ifndef TOLUA_RELEASE
7206 tolua_error(tolua_S,"#ferror in function 'cairo_surface_get_device_offset'.",&tolua_err);
7210 #endif //#ifndef TOLUA_DISABLE
7212 /* function: cairo_surface_set_fallback_resolution */
7213 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_set_fallback_resolution00
7214 static int tolua_cairo_cairo_surface_set_fallback_resolution00(lua_State* tolua_S)
7216 #ifndef TOLUA_RELEASE
7217 tolua_Error tolua_err;
7219 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
7220 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
7221 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
7222 !tolua_isnoobj(tolua_S,4,&tolua_err)
7228 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
7229 double x_pixels_per_inch = ((double) tolua_tonumber(tolua_S,2,0));
7230 double y_pixels_per_inch = ((double) tolua_tonumber(tolua_S,3,0));
7232 cairo_surface_set_fallback_resolution(surface,x_pixels_per_inch,y_pixels_per_inch);
7236 #ifndef TOLUA_RELEASE
7238 tolua_error(tolua_S,"#ferror in function 'cairo_surface_set_fallback_resolution'.",&tolua_err);
7242 #endif //#ifndef TOLUA_DISABLE
7244 /* function: cairo_surface_get_fallback_resolution */
7245 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_get_fallback_resolution00
7246 static int tolua_cairo_cairo_surface_get_fallback_resolution00(lua_State* tolua_S)
7248 #ifndef TOLUA_RELEASE
7249 tolua_Error tolua_err;
7251 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
7252 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
7253 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
7254 !tolua_isnoobj(tolua_S,4,&tolua_err)
7260 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
7261 double x_pixels_per_inch = ((double) tolua_tonumber(tolua_S,2,0));
7262 double y_pixels_per_inch = ((double) tolua_tonumber(tolua_S,3,0));
7264 cairo_surface_get_fallback_resolution(surface,&x_pixels_per_inch,&y_pixels_per_inch);
7265 tolua_pushnumber(tolua_S,(lua_Number)x_pixels_per_inch);
7266 tolua_pushnumber(tolua_S,(lua_Number)y_pixels_per_inch);
7270 #ifndef TOLUA_RELEASE
7272 tolua_error(tolua_S,"#ferror in function 'cairo_surface_get_fallback_resolution'.",&tolua_err);
7276 #endif //#ifndef TOLUA_DISABLE
7278 /* function: cairo_surface_copy_page */
7279 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_copy_page00
7280 static int tolua_cairo_cairo_surface_copy_page00(lua_State* tolua_S)
7282 #ifndef TOLUA_RELEASE
7283 tolua_Error tolua_err;
7285 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
7286 !tolua_isnoobj(tolua_S,2,&tolua_err)
7292 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
7294 cairo_surface_copy_page(surface);
7298 #ifndef TOLUA_RELEASE
7300 tolua_error(tolua_S,"#ferror in function 'cairo_surface_copy_page'.",&tolua_err);
7304 #endif //#ifndef TOLUA_DISABLE
7306 /* function: cairo_surface_show_page */
7307 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_show_page00
7308 static int tolua_cairo_cairo_surface_show_page00(lua_State* tolua_S)
7310 #ifndef TOLUA_RELEASE
7311 tolua_Error tolua_err;
7313 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
7314 !tolua_isnoobj(tolua_S,2,&tolua_err)
7320 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
7322 cairo_surface_show_page(surface);
7326 #ifndef TOLUA_RELEASE
7328 tolua_error(tolua_S,"#ferror in function 'cairo_surface_show_page'.",&tolua_err);
7332 #endif //#ifndef TOLUA_DISABLE
7334 /* function: cairo_surface_has_show_text_glyphs */
7335 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_surface_has_show_text_glyphs00
7336 static int tolua_cairo_cairo_surface_has_show_text_glyphs00(lua_State* tolua_S)
7338 #ifndef TOLUA_RELEASE
7339 tolua_Error tolua_err;
7341 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
7342 !tolua_isnoobj(tolua_S,2,&tolua_err)
7348 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
7350 int tolua_ret = ( int) cairo_surface_has_show_text_glyphs(surface);
7351 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
7355 #ifndef TOLUA_RELEASE
7357 tolua_error(tolua_S,"#ferror in function 'cairo_surface_has_show_text_glyphs'.",&tolua_err);
7361 #endif //#ifndef TOLUA_DISABLE
7363 /* function: cairo_image_surface_create */
7364 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_image_surface_create00
7365 static int tolua_cairo_cairo_image_surface_create00(lua_State* tolua_S)
7367 #ifndef TOLUA_RELEASE
7368 tolua_Error tolua_err;
7370 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
7371 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
7372 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
7373 !tolua_isnoobj(tolua_S,4,&tolua_err)
7379 cairo_format_t format = ((cairo_format_t) (int) tolua_tonumber(tolua_S,1,0));
7380 int width = ((int) tolua_tonumber(tolua_S,2,0));
7381 int height = ((int) tolua_tonumber(tolua_S,3,0));
7383 struct _cairo_surface* tolua_ret = ( struct _cairo_surface*) cairo_image_surface_create(format,width,height);
7384 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_surface");
7388 #ifndef TOLUA_RELEASE
7390 tolua_error(tolua_S,"#ferror in function 'cairo_image_surface_create'.",&tolua_err);
7394 #endif //#ifndef TOLUA_DISABLE
7396 /* function: cairo_format_stride_for_width */
7397 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_format_stride_for_width00
7398 static int tolua_cairo_cairo_format_stride_for_width00(lua_State* tolua_S)
7400 #ifndef TOLUA_RELEASE
7401 tolua_Error tolua_err;
7403 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
7404 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
7405 !tolua_isnoobj(tolua_S,3,&tolua_err)
7411 cairo_format_t format = ((cairo_format_t) (int) tolua_tonumber(tolua_S,1,0));
7412 int width = ((int) tolua_tonumber(tolua_S,2,0));
7414 int tolua_ret = (int) cairo_format_stride_for_width(format,width);
7415 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
7419 #ifndef TOLUA_RELEASE
7421 tolua_error(tolua_S,"#ferror in function 'cairo_format_stride_for_width'.",&tolua_err);
7425 #endif //#ifndef TOLUA_DISABLE
7427 /* function: cairo_image_surface_create_for_data */
7428 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_image_surface_create_for_data00
7429 static int tolua_cairo_cairo_image_surface_create_for_data00(lua_State* tolua_S)
7431 #ifndef TOLUA_RELEASE
7432 tolua_Error tolua_err;
7434 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
7435 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
7436 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
7437 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
7438 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
7439 !tolua_isnoobj(tolua_S,6,&tolua_err)
7445 unsigned char* data = ((unsigned char*) tolua_tostring(tolua_S,1,0));
7446 cairo_format_t format = ((cairo_format_t) (int) tolua_tonumber(tolua_S,2,0));
7447 int width = ((int) tolua_tonumber(tolua_S,3,0));
7448 int height = ((int) tolua_tonumber(tolua_S,4,0));
7449 int stride = ((int) tolua_tonumber(tolua_S,5,0));
7451 struct _cairo_surface* tolua_ret = ( struct _cairo_surface*) cairo_image_surface_create_for_data(data,format,width,height,stride);
7452 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_surface");
7456 #ifndef TOLUA_RELEASE
7458 tolua_error(tolua_S,"#ferror in function 'cairo_image_surface_create_for_data'.",&tolua_err);
7462 #endif //#ifndef TOLUA_DISABLE
7464 /* function: cairo_image_surface_get_data */
7465 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_image_surface_get_data00
7466 static int tolua_cairo_cairo_image_surface_get_data00(lua_State* tolua_S)
7468 #ifndef TOLUA_RELEASE
7469 tolua_Error tolua_err;
7471 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
7472 !tolua_isnoobj(tolua_S,2,&tolua_err)
7478 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
7480 unsigned char* tolua_ret = (unsigned char*) cairo_image_surface_get_data(surface);
7481 tolua_pushstring(tolua_S,(const char*)tolua_ret);
7485 #ifndef TOLUA_RELEASE
7487 tolua_error(tolua_S,"#ferror in function 'cairo_image_surface_get_data'.",&tolua_err);
7491 #endif //#ifndef TOLUA_DISABLE
7493 /* function: cairo_image_surface_get_format */
7494 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_image_surface_get_format00
7495 static int tolua_cairo_cairo_image_surface_get_format00(lua_State* tolua_S)
7497 #ifndef TOLUA_RELEASE
7498 tolua_Error tolua_err;
7500 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
7501 !tolua_isnoobj(tolua_S,2,&tolua_err)
7507 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
7509 cairo_format_t tolua_ret = (cairo_format_t) cairo_image_surface_get_format(surface);
7510 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
7514 #ifndef TOLUA_RELEASE
7516 tolua_error(tolua_S,"#ferror in function 'cairo_image_surface_get_format'.",&tolua_err);
7520 #endif //#ifndef TOLUA_DISABLE
7522 /* function: cairo_image_surface_get_width */
7523 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_image_surface_get_width00
7524 static int tolua_cairo_cairo_image_surface_get_width00(lua_State* tolua_S)
7526 #ifndef TOLUA_RELEASE
7527 tolua_Error tolua_err;
7529 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
7530 !tolua_isnoobj(tolua_S,2,&tolua_err)
7536 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
7538 int tolua_ret = (int) cairo_image_surface_get_width(surface);
7539 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
7543 #ifndef TOLUA_RELEASE
7545 tolua_error(tolua_S,"#ferror in function 'cairo_image_surface_get_width'.",&tolua_err);
7549 #endif //#ifndef TOLUA_DISABLE
7551 /* function: cairo_image_surface_get_height */
7552 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_image_surface_get_height00
7553 static int tolua_cairo_cairo_image_surface_get_height00(lua_State* tolua_S)
7555 #ifndef TOLUA_RELEASE
7556 tolua_Error tolua_err;
7558 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
7559 !tolua_isnoobj(tolua_S,2,&tolua_err)
7565 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
7567 int tolua_ret = (int) cairo_image_surface_get_height(surface);
7568 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
7572 #ifndef TOLUA_RELEASE
7574 tolua_error(tolua_S,"#ferror in function 'cairo_image_surface_get_height'.",&tolua_err);
7578 #endif //#ifndef TOLUA_DISABLE
7580 /* function: cairo_image_surface_get_stride */
7581 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_image_surface_get_stride00
7582 static int tolua_cairo_cairo_image_surface_get_stride00(lua_State* tolua_S)
7584 #ifndef TOLUA_RELEASE
7585 tolua_Error tolua_err;
7587 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
7588 !tolua_isnoobj(tolua_S,2,&tolua_err)
7594 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
7596 int tolua_ret = (int) cairo_image_surface_get_stride(surface);
7597 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
7601 #ifndef TOLUA_RELEASE
7603 tolua_error(tolua_S,"#ferror in function 'cairo_image_surface_get_stride'.",&tolua_err);
7607 #endif //#ifndef TOLUA_DISABLE
7609 /* function: cairo_image_surface_create_from_png */
7610 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_image_surface_create_from_png00
7611 static int tolua_cairo_cairo_image_surface_create_from_png00(lua_State* tolua_S)
7613 #ifndef TOLUA_RELEASE
7614 tolua_Error tolua_err;
7616 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
7617 !tolua_isnoobj(tolua_S,2,&tolua_err)
7623 const char* filename = ((const char*) tolua_tostring(tolua_S,1,0));
7625 struct _cairo_surface* tolua_ret = ( struct _cairo_surface*) cairo_image_surface_create_from_png(filename);
7626 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_surface");
7630 #ifndef TOLUA_RELEASE
7632 tolua_error(tolua_S,"#ferror in function 'cairo_image_surface_create_from_png'.",&tolua_err);
7636 #endif //#ifndef TOLUA_DISABLE
7638 /* function: cairo_image_surface_create_from_png_stream */
7639 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_image_surface_create_from_png_stream00
7640 static int tolua_cairo_cairo_image_surface_create_from_png_stream00(lua_State* tolua_S)
7642 #ifndef TOLUA_RELEASE
7643 tolua_Error tolua_err;
7645 (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"cairo_read_func_t",0,&tolua_err)) ||
7646 !tolua_isuserdata(tolua_S,2,0,&tolua_err) ||
7647 !tolua_isnoobj(tolua_S,3,&tolua_err)
7653 cairo_read_func_t read_func = *((cairo_read_func_t*) tolua_tousertype(tolua_S,1,0));
7654 void* closure = ((void*) tolua_touserdata(tolua_S,2,0));
7656 struct _cairo_surface* tolua_ret = ( struct _cairo_surface*) cairo_image_surface_create_from_png_stream(read_func,closure);
7657 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_surface");
7661 #ifndef TOLUA_RELEASE
7663 tolua_error(tolua_S,"#ferror in function 'cairo_image_surface_create_from_png_stream'.",&tolua_err);
7667 #endif //#ifndef TOLUA_DISABLE
7669 /* function: cairo_pattern_create_rgb */
7670 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_create_rgb00
7671 static int tolua_cairo_cairo_pattern_create_rgb00(lua_State* tolua_S)
7673 #ifndef TOLUA_RELEASE
7674 tolua_Error tolua_err;
7676 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
7677 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
7678 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
7679 !tolua_isnoobj(tolua_S,4,&tolua_err)
7685 double red = ((double) tolua_tonumber(tolua_S,1,0));
7686 double green = ((double) tolua_tonumber(tolua_S,2,0));
7687 double blue = ((double) tolua_tonumber(tolua_S,3,0));
7689 struct _cairo_pattern* tolua_ret = ( struct _cairo_pattern*) cairo_pattern_create_rgb(red,green,blue);
7690 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_pattern");
7694 #ifndef TOLUA_RELEASE
7696 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_create_rgb'.",&tolua_err);
7700 #endif //#ifndef TOLUA_DISABLE
7702 /* function: cairo_pattern_create_rgba */
7703 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_create_rgba00
7704 static int tolua_cairo_cairo_pattern_create_rgba00(lua_State* tolua_S)
7706 #ifndef TOLUA_RELEASE
7707 tolua_Error tolua_err;
7709 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
7710 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
7711 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
7712 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
7713 !tolua_isnoobj(tolua_S,5,&tolua_err)
7719 double red = ((double) tolua_tonumber(tolua_S,1,0));
7720 double green = ((double) tolua_tonumber(tolua_S,2,0));
7721 double blue = ((double) tolua_tonumber(tolua_S,3,0));
7722 double alpha = ((double) tolua_tonumber(tolua_S,4,0));
7724 struct _cairo_pattern* tolua_ret = ( struct _cairo_pattern*) cairo_pattern_create_rgba(red,green,blue,alpha);
7725 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_pattern");
7729 #ifndef TOLUA_RELEASE
7731 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_create_rgba'.",&tolua_err);
7735 #endif //#ifndef TOLUA_DISABLE
7737 /* function: cairo_pattern_create_for_surface */
7738 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_create_for_surface00
7739 static int tolua_cairo_cairo_pattern_create_for_surface00(lua_State* tolua_S)
7741 #ifndef TOLUA_RELEASE
7742 tolua_Error tolua_err;
7744 !tolua_isusertype(tolua_S,1,"_cairo_surface",0,&tolua_err) ||
7745 !tolua_isnoobj(tolua_S,2,&tolua_err)
7751 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,1,0));
7753 struct _cairo_pattern* tolua_ret = ( struct _cairo_pattern*) cairo_pattern_create_for_surface(surface);
7754 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_pattern");
7758 #ifndef TOLUA_RELEASE
7760 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_create_for_surface'.",&tolua_err);
7764 #endif //#ifndef TOLUA_DISABLE
7766 /* function: cairo_pattern_create_linear */
7767 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_create_linear00
7768 static int tolua_cairo_cairo_pattern_create_linear00(lua_State* tolua_S)
7770 #ifndef TOLUA_RELEASE
7771 tolua_Error tolua_err;
7773 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
7774 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
7775 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
7776 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
7777 !tolua_isnoobj(tolua_S,5,&tolua_err)
7783 double x0 = ((double) tolua_tonumber(tolua_S,1,0));
7784 double y0 = ((double) tolua_tonumber(tolua_S,2,0));
7785 double x1 = ((double) tolua_tonumber(tolua_S,3,0));
7786 double y1 = ((double) tolua_tonumber(tolua_S,4,0));
7788 struct _cairo_pattern* tolua_ret = ( struct _cairo_pattern*) cairo_pattern_create_linear(x0,y0,x1,y1);
7789 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_pattern");
7793 #ifndef TOLUA_RELEASE
7795 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_create_linear'.",&tolua_err);
7799 #endif //#ifndef TOLUA_DISABLE
7801 /* function: cairo_pattern_create_radial */
7802 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_create_radial00
7803 static int tolua_cairo_cairo_pattern_create_radial00(lua_State* tolua_S)
7805 #ifndef TOLUA_RELEASE
7806 tolua_Error tolua_err;
7808 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
7809 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
7810 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
7811 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
7812 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
7813 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
7814 !tolua_isnoobj(tolua_S,7,&tolua_err)
7820 double cx0 = ((double) tolua_tonumber(tolua_S,1,0));
7821 double cy0 = ((double) tolua_tonumber(tolua_S,2,0));
7822 double radius0 = ((double) tolua_tonumber(tolua_S,3,0));
7823 double cx1 = ((double) tolua_tonumber(tolua_S,4,0));
7824 double cy1 = ((double) tolua_tonumber(tolua_S,5,0));
7825 double radius1 = ((double) tolua_tonumber(tolua_S,6,0));
7827 struct _cairo_pattern* tolua_ret = ( struct _cairo_pattern*) cairo_pattern_create_radial(cx0,cy0,radius0,cx1,cy1,radius1);
7828 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_pattern");
7832 #ifndef TOLUA_RELEASE
7834 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_create_radial'.",&tolua_err);
7838 #endif //#ifndef TOLUA_DISABLE
7840 /* function: cairo_pattern_reference */
7841 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_reference00
7842 static int tolua_cairo_cairo_pattern_reference00(lua_State* tolua_S)
7844 #ifndef TOLUA_RELEASE
7845 tolua_Error tolua_err;
7847 !tolua_isusertype(tolua_S,1,"_cairo_pattern",0,&tolua_err) ||
7848 !tolua_isnoobj(tolua_S,2,&tolua_err)
7854 struct _cairo_pattern* pattern = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,1,0));
7856 struct _cairo_pattern* tolua_ret = ( struct _cairo_pattern*) cairo_pattern_reference(pattern);
7857 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_cairo_pattern");
7861 #ifndef TOLUA_RELEASE
7863 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_reference'.",&tolua_err);
7867 #endif //#ifndef TOLUA_DISABLE
7869 /* function: cairo_pattern_destroy */
7870 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_destroy00
7871 static int tolua_cairo_cairo_pattern_destroy00(lua_State* tolua_S)
7873 #ifndef TOLUA_RELEASE
7874 tolua_Error tolua_err;
7876 !tolua_isusertype(tolua_S,1,"_cairo_pattern",0,&tolua_err) ||
7877 !tolua_isnoobj(tolua_S,2,&tolua_err)
7883 struct _cairo_pattern* pattern = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,1,0));
7885 cairo_pattern_destroy(pattern);
7889 #ifndef TOLUA_RELEASE
7891 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_destroy'.",&tolua_err);
7895 #endif //#ifndef TOLUA_DISABLE
7897 /* function: cairo_pattern_get_reference_count */
7898 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_get_reference_count00
7899 static int tolua_cairo_cairo_pattern_get_reference_count00(lua_State* tolua_S)
7901 #ifndef TOLUA_RELEASE
7902 tolua_Error tolua_err;
7904 !tolua_isusertype(tolua_S,1,"_cairo_pattern",0,&tolua_err) ||
7905 !tolua_isnoobj(tolua_S,2,&tolua_err)
7911 struct _cairo_pattern* pattern = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,1,0));
7913 unsigned int tolua_ret = (unsigned int) cairo_pattern_get_reference_count(pattern);
7914 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
7918 #ifndef TOLUA_RELEASE
7920 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_get_reference_count'.",&tolua_err);
7924 #endif //#ifndef TOLUA_DISABLE
7926 /* function: cairo_pattern_status */
7927 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_status00
7928 static int tolua_cairo_cairo_pattern_status00(lua_State* tolua_S)
7930 #ifndef TOLUA_RELEASE
7931 tolua_Error tolua_err;
7933 !tolua_isusertype(tolua_S,1,"_cairo_pattern",0,&tolua_err) ||
7934 !tolua_isnoobj(tolua_S,2,&tolua_err)
7940 struct _cairo_pattern* pattern = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,1,0));
7942 cairo_status_t tolua_ret = (cairo_status_t) cairo_pattern_status(pattern);
7943 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
7947 #ifndef TOLUA_RELEASE
7949 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_status'.",&tolua_err);
7953 #endif //#ifndef TOLUA_DISABLE
7955 /* function: cairo_pattern_get_user_data */
7956 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_get_user_data00
7957 static int tolua_cairo_cairo_pattern_get_user_data00(lua_State* tolua_S)
7959 #ifndef TOLUA_RELEASE
7960 tolua_Error tolua_err;
7962 !tolua_isusertype(tolua_S,1,"_cairo_pattern",0,&tolua_err) ||
7963 !tolua_isusertype(tolua_S,2,"const cairo_user_data_key_t",0,&tolua_err) ||
7964 !tolua_isnoobj(tolua_S,3,&tolua_err)
7970 struct _cairo_pattern* pattern = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,1,0));
7971 const cairo_user_data_key_t* key = ((const cairo_user_data_key_t*) tolua_tousertype(tolua_S,2,0));
7973 void* tolua_ret = (void*) cairo_pattern_get_user_data(pattern,key);
7974 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
7978 #ifndef TOLUA_RELEASE
7980 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_get_user_data'.",&tolua_err);
7984 #endif //#ifndef TOLUA_DISABLE
7986 /* function: cairo_pattern_set_user_data */
7987 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_set_user_data00
7988 static int tolua_cairo_cairo_pattern_set_user_data00(lua_State* tolua_S)
7990 #ifndef TOLUA_RELEASE
7991 tolua_Error tolua_err;
7993 !tolua_isusertype(tolua_S,1,"_cairo_pattern",0,&tolua_err) ||
7994 !tolua_isusertype(tolua_S,2,"const cairo_user_data_key_t",0,&tolua_err) ||
7995 !tolua_isuserdata(tolua_S,3,0,&tolua_err) ||
7996 (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"cairo_destroy_func_t",0,&tolua_err)) ||
7997 !tolua_isnoobj(tolua_S,5,&tolua_err)
8003 struct _cairo_pattern* pattern = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,1,0));
8004 const cairo_user_data_key_t* key = ((const cairo_user_data_key_t*) tolua_tousertype(tolua_S,2,0));
8005 void* user_data = ((void*) tolua_touserdata(tolua_S,3,0));
8006 cairo_destroy_func_t destroy = *((cairo_destroy_func_t*) tolua_tousertype(tolua_S,4,0));
8008 cairo_status_t tolua_ret = (cairo_status_t) cairo_pattern_set_user_data(pattern,key,user_data,destroy);
8009 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
8013 #ifndef TOLUA_RELEASE
8015 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_set_user_data'.",&tolua_err);
8019 #endif //#ifndef TOLUA_DISABLE
8021 /* function: cairo_pattern_get_type */
8022 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_get_type00
8023 static int tolua_cairo_cairo_pattern_get_type00(lua_State* tolua_S)
8025 #ifndef TOLUA_RELEASE
8026 tolua_Error tolua_err;
8028 !tolua_isusertype(tolua_S,1,"_cairo_pattern",0,&tolua_err) ||
8029 !tolua_isnoobj(tolua_S,2,&tolua_err)
8035 struct _cairo_pattern* pattern = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,1,0));
8037 cairo_pattern_type_t tolua_ret = (cairo_pattern_type_t) cairo_pattern_get_type(pattern);
8038 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
8042 #ifndef TOLUA_RELEASE
8044 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_get_type'.",&tolua_err);
8048 #endif //#ifndef TOLUA_DISABLE
8050 /* function: cairo_pattern_add_color_stop_rgb */
8051 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_add_color_stop_rgb00
8052 static int tolua_cairo_cairo_pattern_add_color_stop_rgb00(lua_State* tolua_S)
8054 #ifndef TOLUA_RELEASE
8055 tolua_Error tolua_err;
8057 !tolua_isusertype(tolua_S,1,"_cairo_pattern",0,&tolua_err) ||
8058 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8059 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
8060 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
8061 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
8062 !tolua_isnoobj(tolua_S,6,&tolua_err)
8068 struct _cairo_pattern* pattern = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,1,0));
8069 double offset = ((double) tolua_tonumber(tolua_S,2,0));
8070 double red = ((double) tolua_tonumber(tolua_S,3,0));
8071 double green = ((double) tolua_tonumber(tolua_S,4,0));
8072 double blue = ((double) tolua_tonumber(tolua_S,5,0));
8074 cairo_pattern_add_color_stop_rgb(pattern,offset,red,green,blue);
8078 #ifndef TOLUA_RELEASE
8080 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_add_color_stop_rgb'.",&tolua_err);
8084 #endif //#ifndef TOLUA_DISABLE
8086 /* function: cairo_pattern_add_color_stop_rgba */
8087 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_add_color_stop_rgba00
8088 static int tolua_cairo_cairo_pattern_add_color_stop_rgba00(lua_State* tolua_S)
8090 #ifndef TOLUA_RELEASE
8091 tolua_Error tolua_err;
8093 !tolua_isusertype(tolua_S,1,"_cairo_pattern",0,&tolua_err) ||
8094 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8095 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
8096 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
8097 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
8098 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
8099 !tolua_isnoobj(tolua_S,7,&tolua_err)
8105 struct _cairo_pattern* pattern = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,1,0));
8106 double offset = ((double) tolua_tonumber(tolua_S,2,0));
8107 double red = ((double) tolua_tonumber(tolua_S,3,0));
8108 double green = ((double) tolua_tonumber(tolua_S,4,0));
8109 double blue = ((double) tolua_tonumber(tolua_S,5,0));
8110 double alpha = ((double) tolua_tonumber(tolua_S,6,0));
8112 cairo_pattern_add_color_stop_rgba(pattern,offset,red,green,blue,alpha);
8116 #ifndef TOLUA_RELEASE
8118 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_add_color_stop_rgba'.",&tolua_err);
8122 #endif //#ifndef TOLUA_DISABLE
8124 /* function: cairo_pattern_set_matrix */
8125 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_set_matrix00
8126 static int tolua_cairo_cairo_pattern_set_matrix00(lua_State* tolua_S)
8128 #ifndef TOLUA_RELEASE
8129 tolua_Error tolua_err;
8131 !tolua_isusertype(tolua_S,1,"_cairo_pattern",0,&tolua_err) ||
8132 !tolua_isusertype(tolua_S,2,"cairo_matrix_t",0,&tolua_err) ||
8133 !tolua_isnoobj(tolua_S,3,&tolua_err)
8139 struct _cairo_pattern* pattern = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,1,0));
8140 cairo_matrix_t* matrix = ((cairo_matrix_t*) tolua_tousertype(tolua_S,2,0));
8142 cairo_pattern_set_matrix(pattern,matrix);
8146 #ifndef TOLUA_RELEASE
8148 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_set_matrix'.",&tolua_err);
8152 #endif //#ifndef TOLUA_DISABLE
8154 /* function: cairo_pattern_get_matrix */
8155 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_get_matrix00
8156 static int tolua_cairo_cairo_pattern_get_matrix00(lua_State* tolua_S)
8158 #ifndef TOLUA_RELEASE
8159 tolua_Error tolua_err;
8161 !tolua_isusertype(tolua_S,1,"_cairo_pattern",0,&tolua_err) ||
8162 !tolua_isusertype(tolua_S,2,"cairo_matrix_t",0,&tolua_err) ||
8163 !tolua_isnoobj(tolua_S,3,&tolua_err)
8169 struct _cairo_pattern* pattern = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,1,0));
8170 cairo_matrix_t* matrix = ((cairo_matrix_t*) tolua_tousertype(tolua_S,2,0));
8172 cairo_pattern_get_matrix(pattern,matrix);
8176 #ifndef TOLUA_RELEASE
8178 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_get_matrix'.",&tolua_err);
8182 #endif //#ifndef TOLUA_DISABLE
8184 /* function: cairo_pattern_set_extend */
8185 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_set_extend00
8186 static int tolua_cairo_cairo_pattern_set_extend00(lua_State* tolua_S)
8188 #ifndef TOLUA_RELEASE
8189 tolua_Error tolua_err;
8191 !tolua_isusertype(tolua_S,1,"_cairo_pattern",0,&tolua_err) ||
8192 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8193 !tolua_isnoobj(tolua_S,3,&tolua_err)
8199 struct _cairo_pattern* pattern = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,1,0));
8200 cairo_extend_t extend = ((cairo_extend_t) (int) tolua_tonumber(tolua_S,2,0));
8202 cairo_pattern_set_extend(pattern,extend);
8206 #ifndef TOLUA_RELEASE
8208 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_set_extend'.",&tolua_err);
8212 #endif //#ifndef TOLUA_DISABLE
8214 /* function: cairo_pattern_get_extend */
8215 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_get_extend00
8216 static int tolua_cairo_cairo_pattern_get_extend00(lua_State* tolua_S)
8218 #ifndef TOLUA_RELEASE
8219 tolua_Error tolua_err;
8221 !tolua_isusertype(tolua_S,1,"_cairo_pattern",0,&tolua_err) ||
8222 !tolua_isnoobj(tolua_S,2,&tolua_err)
8228 struct _cairo_pattern* pattern = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,1,0));
8230 cairo_extend_t tolua_ret = (cairo_extend_t) cairo_pattern_get_extend(pattern);
8231 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
8235 #ifndef TOLUA_RELEASE
8237 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_get_extend'.",&tolua_err);
8241 #endif //#ifndef TOLUA_DISABLE
8243 /* function: cairo_pattern_set_filter */
8244 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_set_filter00
8245 static int tolua_cairo_cairo_pattern_set_filter00(lua_State* tolua_S)
8247 #ifndef TOLUA_RELEASE
8248 tolua_Error tolua_err;
8250 !tolua_isusertype(tolua_S,1,"_cairo_pattern",0,&tolua_err) ||
8251 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8252 !tolua_isnoobj(tolua_S,3,&tolua_err)
8258 struct _cairo_pattern* pattern = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,1,0));
8259 cairo_filter_t filter = ((cairo_filter_t) (int) tolua_tonumber(tolua_S,2,0));
8261 cairo_pattern_set_filter(pattern,filter);
8265 #ifndef TOLUA_RELEASE
8267 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_set_filter'.",&tolua_err);
8271 #endif //#ifndef TOLUA_DISABLE
8273 /* function: cairo_pattern_get_filter */
8274 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_get_filter00
8275 static int tolua_cairo_cairo_pattern_get_filter00(lua_State* tolua_S)
8277 #ifndef TOLUA_RELEASE
8278 tolua_Error tolua_err;
8280 !tolua_isusertype(tolua_S,1,"_cairo_pattern",0,&tolua_err) ||
8281 !tolua_isnoobj(tolua_S,2,&tolua_err)
8287 struct _cairo_pattern* pattern = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,1,0));
8289 cairo_filter_t tolua_ret = (cairo_filter_t) cairo_pattern_get_filter(pattern);
8290 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
8294 #ifndef TOLUA_RELEASE
8296 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_get_filter'.",&tolua_err);
8300 #endif //#ifndef TOLUA_DISABLE
8302 /* function: cairo_pattern_get_rgba */
8303 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_get_rgba00
8304 static int tolua_cairo_cairo_pattern_get_rgba00(lua_State* tolua_S)
8306 #ifndef TOLUA_RELEASE
8307 tolua_Error tolua_err;
8309 !tolua_isusertype(tolua_S,1,"_cairo_pattern",0,&tolua_err) ||
8310 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8311 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
8312 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
8313 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
8314 !tolua_isnoobj(tolua_S,6,&tolua_err)
8320 struct _cairo_pattern* pattern = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,1,0));
8321 double red = ((double) tolua_tonumber(tolua_S,2,0));
8322 double green = ((double) tolua_tonumber(tolua_S,3,0));
8323 double blue = ((double) tolua_tonumber(tolua_S,4,0));
8324 double alpha = ((double) tolua_tonumber(tolua_S,5,0));
8326 cairo_status_t tolua_ret = (cairo_status_t) cairo_pattern_get_rgba(pattern,&red,&green,&blue,&alpha);
8327 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
8328 tolua_pushnumber(tolua_S,(lua_Number)red);
8329 tolua_pushnumber(tolua_S,(lua_Number)green);
8330 tolua_pushnumber(tolua_S,(lua_Number)blue);
8331 tolua_pushnumber(tolua_S,(lua_Number)alpha);
8335 #ifndef TOLUA_RELEASE
8337 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_get_rgba'.",&tolua_err);
8341 #endif //#ifndef TOLUA_DISABLE
8343 /* function: cairo_pattern_get_surface */
8344 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_get_surface00
8345 static int tolua_cairo_cairo_pattern_get_surface00(lua_State* tolua_S)
8347 #ifndef TOLUA_RELEASE
8348 tolua_Error tolua_err;
8350 !tolua_isusertype(tolua_S,1,"_cairo_pattern",0,&tolua_err) ||
8351 !tolua_isusertype(tolua_S,2,"_cairo_surface",0,&tolua_err) ||
8352 !tolua_isnoobj(tolua_S,3,&tolua_err)
8358 struct _cairo_pattern* pattern = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,1,0));
8359 struct _cairo_surface* surface = (( struct _cairo_surface*) tolua_tousertype(tolua_S,2,0));
8361 cairo_status_t tolua_ret = (cairo_status_t) cairo_pattern_get_surface(pattern,&surface);
8362 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
8363 tolua_pushusertype(tolua_S,(void*)surface,"_cairo_surface");
8367 #ifndef TOLUA_RELEASE
8369 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_get_surface'.",&tolua_err);
8373 #endif //#ifndef TOLUA_DISABLE
8375 /* function: cairo_pattern_get_color_stop_rgba */
8376 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_get_color_stop_rgba00
8377 static int tolua_cairo_cairo_pattern_get_color_stop_rgba00(lua_State* tolua_S)
8379 #ifndef TOLUA_RELEASE
8380 tolua_Error tolua_err;
8382 !tolua_isusertype(tolua_S,1,"_cairo_pattern",0,&tolua_err) ||
8383 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8384 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
8385 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
8386 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
8387 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
8388 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
8389 !tolua_isnoobj(tolua_S,8,&tolua_err)
8395 struct _cairo_pattern* pattern = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,1,0));
8396 int index = ((int) tolua_tonumber(tolua_S,2,0));
8397 double offset = ((double) tolua_tonumber(tolua_S,3,0));
8398 double red = ((double) tolua_tonumber(tolua_S,4,0));
8399 double green = ((double) tolua_tonumber(tolua_S,5,0));
8400 double blue = ((double) tolua_tonumber(tolua_S,6,0));
8401 double alpha = ((double) tolua_tonumber(tolua_S,7,0));
8403 cairo_status_t tolua_ret = (cairo_status_t) cairo_pattern_get_color_stop_rgba(pattern,index,&offset,&red,&green,&blue,&alpha);
8404 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
8405 tolua_pushnumber(tolua_S,(lua_Number)offset);
8406 tolua_pushnumber(tolua_S,(lua_Number)red);
8407 tolua_pushnumber(tolua_S,(lua_Number)green);
8408 tolua_pushnumber(tolua_S,(lua_Number)blue);
8409 tolua_pushnumber(tolua_S,(lua_Number)alpha);
8413 #ifndef TOLUA_RELEASE
8415 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_get_color_stop_rgba'.",&tolua_err);
8419 #endif //#ifndef TOLUA_DISABLE
8421 /* function: cairo_pattern_get_color_stop_count */
8422 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_get_color_stop_count00
8423 static int tolua_cairo_cairo_pattern_get_color_stop_count00(lua_State* tolua_S)
8425 #ifndef TOLUA_RELEASE
8426 tolua_Error tolua_err;
8428 !tolua_isusertype(tolua_S,1,"_cairo_pattern",0,&tolua_err) ||
8429 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8430 !tolua_isnoobj(tolua_S,3,&tolua_err)
8436 struct _cairo_pattern* pattern = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,1,0));
8437 int count = ((int) tolua_tonumber(tolua_S,2,0));
8439 cairo_status_t tolua_ret = (cairo_status_t) cairo_pattern_get_color_stop_count(pattern,&count);
8440 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
8441 tolua_pushnumber(tolua_S,(lua_Number)count);
8445 #ifndef TOLUA_RELEASE
8447 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_get_color_stop_count'.",&tolua_err);
8451 #endif //#ifndef TOLUA_DISABLE
8453 /* function: cairo_pattern_get_linear_points */
8454 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_get_linear_points00
8455 static int tolua_cairo_cairo_pattern_get_linear_points00(lua_State* tolua_S)
8457 #ifndef TOLUA_RELEASE
8458 tolua_Error tolua_err;
8460 !tolua_isusertype(tolua_S,1,"_cairo_pattern",0,&tolua_err) ||
8461 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8462 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
8463 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
8464 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
8465 !tolua_isnoobj(tolua_S,6,&tolua_err)
8471 struct _cairo_pattern* pattern = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,1,0));
8472 double x0 = ((double) tolua_tonumber(tolua_S,2,0));
8473 double y0 = ((double) tolua_tonumber(tolua_S,3,0));
8474 double x1 = ((double) tolua_tonumber(tolua_S,4,0));
8475 double y1 = ((double) tolua_tonumber(tolua_S,5,0));
8477 cairo_status_t tolua_ret = (cairo_status_t) cairo_pattern_get_linear_points(pattern,&x0,&y0,&x1,&y1);
8478 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
8479 tolua_pushnumber(tolua_S,(lua_Number)x0);
8480 tolua_pushnumber(tolua_S,(lua_Number)y0);
8481 tolua_pushnumber(tolua_S,(lua_Number)x1);
8482 tolua_pushnumber(tolua_S,(lua_Number)y1);
8486 #ifndef TOLUA_RELEASE
8488 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_get_linear_points'.",&tolua_err);
8492 #endif //#ifndef TOLUA_DISABLE
8494 /* function: cairo_pattern_get_radial_circles */
8495 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_pattern_get_radial_circles00
8496 static int tolua_cairo_cairo_pattern_get_radial_circles00(lua_State* tolua_S)
8498 #ifndef TOLUA_RELEASE
8499 tolua_Error tolua_err;
8501 !tolua_isusertype(tolua_S,1,"_cairo_pattern",0,&tolua_err) ||
8502 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8503 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
8504 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
8505 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
8506 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
8507 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
8508 !tolua_isnoobj(tolua_S,8,&tolua_err)
8514 struct _cairo_pattern* pattern = (( struct _cairo_pattern*) tolua_tousertype(tolua_S,1,0));
8515 double x0 = ((double) tolua_tonumber(tolua_S,2,0));
8516 double y0 = ((double) tolua_tonumber(tolua_S,3,0));
8517 double r0 = ((double) tolua_tonumber(tolua_S,4,0));
8518 double x1 = ((double) tolua_tonumber(tolua_S,5,0));
8519 double y1 = ((double) tolua_tonumber(tolua_S,6,0));
8520 double r1 = ((double) tolua_tonumber(tolua_S,7,0));
8522 cairo_status_t tolua_ret = (cairo_status_t) cairo_pattern_get_radial_circles(pattern,&x0,&y0,&r0,&x1,&y1,&r1);
8523 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
8524 tolua_pushnumber(tolua_S,(lua_Number)x0);
8525 tolua_pushnumber(tolua_S,(lua_Number)y0);
8526 tolua_pushnumber(tolua_S,(lua_Number)r0);
8527 tolua_pushnumber(tolua_S,(lua_Number)x1);
8528 tolua_pushnumber(tolua_S,(lua_Number)y1);
8529 tolua_pushnumber(tolua_S,(lua_Number)r1);
8533 #ifndef TOLUA_RELEASE
8535 tolua_error(tolua_S,"#ferror in function 'cairo_pattern_get_radial_circles'.",&tolua_err);
8539 #endif //#ifndef TOLUA_DISABLE
8541 /* function: cairo_matrix_init */
8542 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_matrix_init00
8543 static int tolua_cairo_cairo_matrix_init00(lua_State* tolua_S)
8545 #ifndef TOLUA_RELEASE
8546 tolua_Error tolua_err;
8548 !tolua_isusertype(tolua_S,1,"cairo_matrix_t",0,&tolua_err) ||
8549 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8550 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
8551 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
8552 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
8553 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
8554 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
8555 !tolua_isnoobj(tolua_S,8,&tolua_err)
8561 cairo_matrix_t* matrix = ((cairo_matrix_t*) tolua_tousertype(tolua_S,1,0));
8562 double xx = ((double) tolua_tonumber(tolua_S,2,0));
8563 double yx = ((double) tolua_tonumber(tolua_S,3,0));
8564 double xy = ((double) tolua_tonumber(tolua_S,4,0));
8565 double yy = ((double) tolua_tonumber(tolua_S,5,0));
8566 double x0 = ((double) tolua_tonumber(tolua_S,6,0));
8567 double y0 = ((double) tolua_tonumber(tolua_S,7,0));
8569 cairo_matrix_init(matrix,xx,yx,xy,yy,x0,y0);
8573 #ifndef TOLUA_RELEASE
8575 tolua_error(tolua_S,"#ferror in function 'cairo_matrix_init'.",&tolua_err);
8579 #endif //#ifndef TOLUA_DISABLE
8581 /* function: cairo_matrix_init_identity */
8582 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_matrix_init_identity00
8583 static int tolua_cairo_cairo_matrix_init_identity00(lua_State* tolua_S)
8585 #ifndef TOLUA_RELEASE
8586 tolua_Error tolua_err;
8588 !tolua_isusertype(tolua_S,1,"cairo_matrix_t",0,&tolua_err) ||
8589 !tolua_isnoobj(tolua_S,2,&tolua_err)
8595 cairo_matrix_t* matrix = ((cairo_matrix_t*) tolua_tousertype(tolua_S,1,0));
8597 cairo_matrix_init_identity(matrix);
8601 #ifndef TOLUA_RELEASE
8603 tolua_error(tolua_S,"#ferror in function 'cairo_matrix_init_identity'.",&tolua_err);
8607 #endif //#ifndef TOLUA_DISABLE
8609 /* function: cairo_matrix_init_translate */
8610 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_matrix_init_translate00
8611 static int tolua_cairo_cairo_matrix_init_translate00(lua_State* tolua_S)
8613 #ifndef TOLUA_RELEASE
8614 tolua_Error tolua_err;
8616 !tolua_isusertype(tolua_S,1,"cairo_matrix_t",0,&tolua_err) ||
8617 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8618 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
8619 !tolua_isnoobj(tolua_S,4,&tolua_err)
8625 cairo_matrix_t* matrix = ((cairo_matrix_t*) tolua_tousertype(tolua_S,1,0));
8626 double tx = ((double) tolua_tonumber(tolua_S,2,0));
8627 double ty = ((double) tolua_tonumber(tolua_S,3,0));
8629 cairo_matrix_init_translate(matrix,tx,ty);
8633 #ifndef TOLUA_RELEASE
8635 tolua_error(tolua_S,"#ferror in function 'cairo_matrix_init_translate'.",&tolua_err);
8639 #endif //#ifndef TOLUA_DISABLE
8641 /* function: cairo_matrix_init_scale */
8642 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_matrix_init_scale00
8643 static int tolua_cairo_cairo_matrix_init_scale00(lua_State* tolua_S)
8645 #ifndef TOLUA_RELEASE
8646 tolua_Error tolua_err;
8648 !tolua_isusertype(tolua_S,1,"cairo_matrix_t",0,&tolua_err) ||
8649 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8650 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
8651 !tolua_isnoobj(tolua_S,4,&tolua_err)
8657 cairo_matrix_t* matrix = ((cairo_matrix_t*) tolua_tousertype(tolua_S,1,0));
8658 double sx = ((double) tolua_tonumber(tolua_S,2,0));
8659 double sy = ((double) tolua_tonumber(tolua_S,3,0));
8661 cairo_matrix_init_scale(matrix,sx,sy);
8665 #ifndef TOLUA_RELEASE
8667 tolua_error(tolua_S,"#ferror in function 'cairo_matrix_init_scale'.",&tolua_err);
8671 #endif //#ifndef TOLUA_DISABLE
8673 /* function: cairo_matrix_init_rotate */
8674 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_matrix_init_rotate00
8675 static int tolua_cairo_cairo_matrix_init_rotate00(lua_State* tolua_S)
8677 #ifndef TOLUA_RELEASE
8678 tolua_Error tolua_err;
8680 !tolua_isusertype(tolua_S,1,"cairo_matrix_t",0,&tolua_err) ||
8681 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8682 !tolua_isnoobj(tolua_S,3,&tolua_err)
8688 cairo_matrix_t* matrix = ((cairo_matrix_t*) tolua_tousertype(tolua_S,1,0));
8689 double radians = ((double) tolua_tonumber(tolua_S,2,0));
8691 cairo_matrix_init_rotate(matrix,radians);
8695 #ifndef TOLUA_RELEASE
8697 tolua_error(tolua_S,"#ferror in function 'cairo_matrix_init_rotate'.",&tolua_err);
8701 #endif //#ifndef TOLUA_DISABLE
8703 /* function: cairo_matrix_translate */
8704 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_matrix_translate00
8705 static int tolua_cairo_cairo_matrix_translate00(lua_State* tolua_S)
8707 #ifndef TOLUA_RELEASE
8708 tolua_Error tolua_err;
8710 !tolua_isusertype(tolua_S,1,"cairo_matrix_t",0,&tolua_err) ||
8711 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8712 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
8713 !tolua_isnoobj(tolua_S,4,&tolua_err)
8719 cairo_matrix_t* matrix = ((cairo_matrix_t*) tolua_tousertype(tolua_S,1,0));
8720 double tx = ((double) tolua_tonumber(tolua_S,2,0));
8721 double ty = ((double) tolua_tonumber(tolua_S,3,0));
8723 cairo_matrix_translate(matrix,tx,ty);
8727 #ifndef TOLUA_RELEASE
8729 tolua_error(tolua_S,"#ferror in function 'cairo_matrix_translate'.",&tolua_err);
8733 #endif //#ifndef TOLUA_DISABLE
8735 /* function: cairo_matrix_scale */
8736 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_matrix_scale00
8737 static int tolua_cairo_cairo_matrix_scale00(lua_State* tolua_S)
8739 #ifndef TOLUA_RELEASE
8740 tolua_Error tolua_err;
8742 !tolua_isusertype(tolua_S,1,"cairo_matrix_t",0,&tolua_err) ||
8743 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8744 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
8745 !tolua_isnoobj(tolua_S,4,&tolua_err)
8751 cairo_matrix_t* matrix = ((cairo_matrix_t*) tolua_tousertype(tolua_S,1,0));
8752 double sx = ((double) tolua_tonumber(tolua_S,2,0));
8753 double sy = ((double) tolua_tonumber(tolua_S,3,0));
8755 cairo_matrix_scale(matrix,sx,sy);
8759 #ifndef TOLUA_RELEASE
8761 tolua_error(tolua_S,"#ferror in function 'cairo_matrix_scale'.",&tolua_err);
8765 #endif //#ifndef TOLUA_DISABLE
8767 /* function: cairo_matrix_rotate */
8768 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_matrix_rotate00
8769 static int tolua_cairo_cairo_matrix_rotate00(lua_State* tolua_S)
8771 #ifndef TOLUA_RELEASE
8772 tolua_Error tolua_err;
8774 !tolua_isusertype(tolua_S,1,"cairo_matrix_t",0,&tolua_err) ||
8775 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8776 !tolua_isnoobj(tolua_S,3,&tolua_err)
8782 cairo_matrix_t* matrix = ((cairo_matrix_t*) tolua_tousertype(tolua_S,1,0));
8783 double radians = ((double) tolua_tonumber(tolua_S,2,0));
8785 cairo_matrix_rotate(matrix,radians);
8789 #ifndef TOLUA_RELEASE
8791 tolua_error(tolua_S,"#ferror in function 'cairo_matrix_rotate'.",&tolua_err);
8795 #endif //#ifndef TOLUA_DISABLE
8797 /* function: cairo_matrix_invert */
8798 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_matrix_invert00
8799 static int tolua_cairo_cairo_matrix_invert00(lua_State* tolua_S)
8801 #ifndef TOLUA_RELEASE
8802 tolua_Error tolua_err;
8804 !tolua_isusertype(tolua_S,1,"cairo_matrix_t",0,&tolua_err) ||
8805 !tolua_isnoobj(tolua_S,2,&tolua_err)
8811 cairo_matrix_t* matrix = ((cairo_matrix_t*) tolua_tousertype(tolua_S,1,0));
8813 cairo_status_t tolua_ret = (cairo_status_t) cairo_matrix_invert(matrix);
8814 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
8818 #ifndef TOLUA_RELEASE
8820 tolua_error(tolua_S,"#ferror in function 'cairo_matrix_invert'.",&tolua_err);
8824 #endif //#ifndef TOLUA_DISABLE
8826 /* function: cairo_matrix_multiply */
8827 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_matrix_multiply00
8828 static int tolua_cairo_cairo_matrix_multiply00(lua_State* tolua_S)
8830 #ifndef TOLUA_RELEASE
8831 tolua_Error tolua_err;
8833 !tolua_isusertype(tolua_S,1,"cairo_matrix_t",0,&tolua_err) ||
8834 !tolua_isusertype(tolua_S,2,"cairo_matrix_t",0,&tolua_err) ||
8835 !tolua_isusertype(tolua_S,3,"cairo_matrix_t",0,&tolua_err) ||
8836 !tolua_isnoobj(tolua_S,4,&tolua_err)
8842 cairo_matrix_t* result = ((cairo_matrix_t*) tolua_tousertype(tolua_S,1,0));
8843 cairo_matrix_t* a = ((cairo_matrix_t*) tolua_tousertype(tolua_S,2,0));
8844 cairo_matrix_t* b = ((cairo_matrix_t*) tolua_tousertype(tolua_S,3,0));
8846 cairo_matrix_multiply(result,a,b);
8850 #ifndef TOLUA_RELEASE
8852 tolua_error(tolua_S,"#ferror in function 'cairo_matrix_multiply'.",&tolua_err);
8856 #endif //#ifndef TOLUA_DISABLE
8858 /* function: cairo_matrix_transform_distance */
8859 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_matrix_transform_distance00
8860 static int tolua_cairo_cairo_matrix_transform_distance00(lua_State* tolua_S)
8862 #ifndef TOLUA_RELEASE
8863 tolua_Error tolua_err;
8865 !tolua_isusertype(tolua_S,1,"cairo_matrix_t",0,&tolua_err) ||
8866 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8867 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
8868 !tolua_isnoobj(tolua_S,4,&tolua_err)
8874 cairo_matrix_t* matrix = ((cairo_matrix_t*) tolua_tousertype(tolua_S,1,0));
8875 double dx = ((double) tolua_tonumber(tolua_S,2,0));
8876 double dy = ((double) tolua_tonumber(tolua_S,3,0));
8878 cairo_matrix_transform_distance(matrix,&dx,&dy);
8879 tolua_pushnumber(tolua_S,(lua_Number)dx);
8880 tolua_pushnumber(tolua_S,(lua_Number)dy);
8884 #ifndef TOLUA_RELEASE
8886 tolua_error(tolua_S,"#ferror in function 'cairo_matrix_transform_distance'.",&tolua_err);
8890 #endif //#ifndef TOLUA_DISABLE
8892 /* function: cairo_matrix_transform_point */
8893 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_matrix_transform_point00
8894 static int tolua_cairo_cairo_matrix_transform_point00(lua_State* tolua_S)
8896 #ifndef TOLUA_RELEASE
8897 tolua_Error tolua_err;
8899 !tolua_isusertype(tolua_S,1,"cairo_matrix_t",0,&tolua_err) ||
8900 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8901 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
8902 !tolua_isnoobj(tolua_S,4,&tolua_err)
8908 cairo_matrix_t* matrix = ((cairo_matrix_t*) tolua_tousertype(tolua_S,1,0));
8909 double x = ((double) tolua_tonumber(tolua_S,2,0));
8910 double y = ((double) tolua_tonumber(tolua_S,3,0));
8912 cairo_matrix_transform_point(matrix,&x,&y);
8913 tolua_pushnumber(tolua_S,(lua_Number)x);
8914 tolua_pushnumber(tolua_S,(lua_Number)y);
8918 #ifndef TOLUA_RELEASE
8920 tolua_error(tolua_S,"#ferror in function 'cairo_matrix_transform_point'.",&tolua_err);
8924 #endif //#ifndef TOLUA_DISABLE
8926 /* function: cairo_debug_reset_static_data */
8927 #ifndef TOLUA_DISABLE_tolua_cairo_cairo_debug_reset_static_data00
8928 static int tolua_cairo_cairo_debug_reset_static_data00(lua_State* tolua_S)
8930 #ifndef TOLUA_RELEASE
8931 tolua_Error tolua_err;
8933 !tolua_isnoobj(tolua_S,1,&tolua_err)
8940 cairo_debug_reset_static_data();
8944 #ifndef TOLUA_RELEASE
8946 tolua_error(tolua_S,"#ferror in function 'cairo_debug_reset_static_data'.",&tolua_err);
8950 #endif //#ifndef TOLUA_DISABLE
8953 TOLUA_API int tolua_cairo_open (lua_State* tolua_S)
8955 tolua_open(tolua_S);
8956 tolua_reg_types(tolua_S);
8957 tolua_module(tolua_S,NULL,0);
8958 tolua_beginmodule(tolua_S,NULL);
8959 tolua_constant(tolua_S,"CAIRO_ANTIALIAS_DEFAULT",CAIRO_ANTIALIAS_DEFAULT);
8960 tolua_constant(tolua_S,"CAIRO_ANTIALIAS_NONE",CAIRO_ANTIALIAS_NONE);
8961 tolua_constant(tolua_S,"CAIRO_ANTIALIAS_GRAY",CAIRO_ANTIALIAS_GRAY);
8962 tolua_constant(tolua_S,"CAIRO_ANTIALIAS_SUBPIXEL",CAIRO_ANTIALIAS_SUBPIXEL);
8963 tolua_cclass(tolua_S,"cairo_matrix_t","cairo_matrix_t","",NULL);
8964 tolua_beginmodule(tolua_S,"cairo_matrix_t");
8965 tolua_variable(tolua_S,"xx",tolua_get_cairo_matrix_t_xx,tolua_set_cairo_matrix_t_xx);
8966 tolua_variable(tolua_S,"yx",tolua_get_cairo_matrix_t_yx,tolua_set_cairo_matrix_t_yx);
8967 tolua_variable(tolua_S,"xy",tolua_get_cairo_matrix_t_xy,tolua_set_cairo_matrix_t_xy);
8968 tolua_variable(tolua_S,"yy",tolua_get_cairo_matrix_t_yy,tolua_set_cairo_matrix_t_yy);
8969 tolua_variable(tolua_S,"x0",tolua_get_cairo_matrix_t_x0,tolua_set_cairo_matrix_t_x0);
8970 tolua_variable(tolua_S,"y0",tolua_get_cairo_matrix_t_y0,tolua_set_cairo_matrix_t_y0);
8971 tolua_function(tolua_S,"create",tolua_cairo_cairo_matrix_t_create00);
8972 tolua_endmodule(tolua_S);
8973 tolua_cclass(tolua_S,"cairo_user_data_key_t","cairo_user_data_key_t","",NULL);
8974 tolua_beginmodule(tolua_S,"cairo_user_data_key_t");
8975 tolua_variable(tolua_S,"unused",tolua_get_cairo_user_data_key_t_unused,tolua_set_cairo_user_data_key_t_unused);
8976 tolua_endmodule(tolua_S);
8977 tolua_constant(tolua_S,"CAIRO_STATUS_SUCCESS",CAIRO_STATUS_SUCCESS);
8978 tolua_constant(tolua_S,"CAIRO_STATUS_NO_MEMORY",CAIRO_STATUS_NO_MEMORY);
8979 tolua_constant(tolua_S,"CAIRO_STATUS_INVALID_RESTORE",CAIRO_STATUS_INVALID_RESTORE);
8980 tolua_constant(tolua_S,"CAIRO_STATUS_INVALID_POP_GROUP",CAIRO_STATUS_INVALID_POP_GROUP);
8981 tolua_constant(tolua_S,"CAIRO_STATUS_NO_CURRENT_POINT",CAIRO_STATUS_NO_CURRENT_POINT);
8982 tolua_constant(tolua_S,"CAIRO_STATUS_INVALID_MATRIX",CAIRO_STATUS_INVALID_MATRIX);
8983 tolua_constant(tolua_S,"CAIRO_STATUS_INVALID_STATUS",CAIRO_STATUS_INVALID_STATUS);
8984 tolua_constant(tolua_S,"CAIRO_STATUS_NULL_POINTER",CAIRO_STATUS_NULL_POINTER);
8985 tolua_constant(tolua_S,"CAIRO_STATUS_INVALID_STRING",CAIRO_STATUS_INVALID_STRING);
8986 tolua_constant(tolua_S,"CAIRO_STATUS_INVALID_PATH_DATA",CAIRO_STATUS_INVALID_PATH_DATA);
8987 tolua_constant(tolua_S,"CAIRO_STATUS_READ_ERROR",CAIRO_STATUS_READ_ERROR);
8988 tolua_constant(tolua_S,"CAIRO_STATUS_WRITE_ERROR",CAIRO_STATUS_WRITE_ERROR);
8989 tolua_constant(tolua_S,"CAIRO_STATUS_SURFACE_FINISHED",CAIRO_STATUS_SURFACE_FINISHED);
8990 tolua_constant(tolua_S,"CAIRO_STATUS_SURFACE_TYPE_MISMATCH",CAIRO_STATUS_SURFACE_TYPE_MISMATCH);
8991 tolua_constant(tolua_S,"CAIRO_STATUS_PATTERN_TYPE_MISMATCH",CAIRO_STATUS_PATTERN_TYPE_MISMATCH);
8992 tolua_constant(tolua_S,"CAIRO_STATUS_INVALID_CONTENT",CAIRO_STATUS_INVALID_CONTENT);
8993 tolua_constant(tolua_S,"CAIRO_STATUS_INVALID_FORMAT",CAIRO_STATUS_INVALID_FORMAT);
8994 tolua_constant(tolua_S,"CAIRO_STATUS_INVALID_VISUAL",CAIRO_STATUS_INVALID_VISUAL);
8995 tolua_constant(tolua_S,"CAIRO_STATUS_FILE_NOT_FOUND",CAIRO_STATUS_FILE_NOT_FOUND);
8996 tolua_constant(tolua_S,"CAIRO_STATUS_INVALID_DASH",CAIRO_STATUS_INVALID_DASH);
8997 tolua_constant(tolua_S,"CAIRO_STATUS_INVALID_DSC_COMMENT",CAIRO_STATUS_INVALID_DSC_COMMENT);
8998 tolua_constant(tolua_S,"CAIRO_STATUS_INVALID_INDEX",CAIRO_STATUS_INVALID_INDEX);
8999 tolua_constant(tolua_S,"CAIRO_STATUS_CLIP_NOT_REPRESENTABLE",CAIRO_STATUS_CLIP_NOT_REPRESENTABLE);
9000 tolua_constant(tolua_S,"CAIRO_STATUS_TEMP_FILE_ERROR",CAIRO_STATUS_TEMP_FILE_ERROR);
9001 tolua_constant(tolua_S,"CAIRO_STATUS_INVALID_STRIDE",CAIRO_STATUS_INVALID_STRIDE);
9002 tolua_constant(tolua_S,"CAIRO_STATUS_FONT_TYPE_MISMATCH",CAIRO_STATUS_FONT_TYPE_MISMATCH);
9003 tolua_constant(tolua_S,"CAIRO_STATUS_USER_FONT_IMMUTABLE",CAIRO_STATUS_USER_FONT_IMMUTABLE);
9004 tolua_constant(tolua_S,"CAIRO_STATUS_USER_FONT_ERROR",CAIRO_STATUS_USER_FONT_ERROR);
9005 tolua_constant(tolua_S,"CAIRO_STATUS_NEGATIVE_COUNT",CAIRO_STATUS_NEGATIVE_COUNT);
9006 tolua_constant(tolua_S,"CAIRO_STATUS_INVALID_CLUSTERS",CAIRO_STATUS_INVALID_CLUSTERS);
9007 tolua_constant(tolua_S,"CAIRO_STATUS_INVALID_SLANT",CAIRO_STATUS_INVALID_SLANT);
9008 tolua_constant(tolua_S,"CAIRO_STATUS_INVALID_WEIGHT",CAIRO_STATUS_INVALID_WEIGHT);
9009 tolua_constant(tolua_S,"CAIRO_CONTENT_COLOR",CAIRO_CONTENT_COLOR);
9010 tolua_constant(tolua_S,"CAIRO_CONTENT_ALPHA",CAIRO_CONTENT_ALPHA);
9011 tolua_constant(tolua_S,"CAIRO_CONTENT_COLOR_ALPHA",CAIRO_CONTENT_COLOR_ALPHA);
9012 tolua_constant(tolua_S,"CAIRO_OPERATOR_CLEAR",CAIRO_OPERATOR_CLEAR);
9013 tolua_constant(tolua_S,"CAIRO_OPERATOR_SOURCE",CAIRO_OPERATOR_SOURCE);
9014 tolua_constant(tolua_S,"CAIRO_OPERATOR_OVER",CAIRO_OPERATOR_OVER);
9015 tolua_constant(tolua_S,"CAIRO_OPERATOR_IN",CAIRO_OPERATOR_IN);
9016 tolua_constant(tolua_S,"CAIRO_OPERATOR_OUT",CAIRO_OPERATOR_OUT);
9017 tolua_constant(tolua_S,"CAIRO_OPERATOR_ATOP",CAIRO_OPERATOR_ATOP);
9018 tolua_constant(tolua_S,"CAIRO_OPERATOR_DEST",CAIRO_OPERATOR_DEST);
9019 tolua_constant(tolua_S,"CAIRO_OPERATOR_DEST_OVER",CAIRO_OPERATOR_DEST_OVER);
9020 tolua_constant(tolua_S,"CAIRO_OPERATOR_DEST_IN",CAIRO_OPERATOR_DEST_IN);
9021 tolua_constant(tolua_S,"CAIRO_OPERATOR_DEST_OUT",CAIRO_OPERATOR_DEST_OUT);
9022 tolua_constant(tolua_S,"CAIRO_OPERATOR_DEST_ATOP",CAIRO_OPERATOR_DEST_ATOP);
9023 tolua_constant(tolua_S,"CAIRO_OPERATOR_XOR",CAIRO_OPERATOR_XOR);
9024 tolua_constant(tolua_S,"CAIRO_OPERATOR_ADD",CAIRO_OPERATOR_ADD);
9025 tolua_constant(tolua_S,"CAIRO_OPERATOR_SATURATE",CAIRO_OPERATOR_SATURATE);
9026 tolua_constant(tolua_S,"CAIRO_FILTER_FAST",CAIRO_FILTER_FAST);
9027 tolua_constant(tolua_S,"CAIRO_FILTER_GOOD",CAIRO_FILTER_GOOD);
9028 tolua_constant(tolua_S,"CAIRO_FILTER_BEST",CAIRO_FILTER_BEST);
9029 tolua_constant(tolua_S,"CAIRO_FILTER_NEAREST",CAIRO_FILTER_NEAREST);
9030 tolua_constant(tolua_S,"CAIRO_FILTER_BILINEAR",CAIRO_FILTER_BILINEAR);
9031 tolua_constant(tolua_S,"CAIRO_FILTER_GAUSSIAN",CAIRO_FILTER_GAUSSIAN);
9032 tolua_function(tolua_S,"cairo_xlib_surface_create",tolua_cairo_cairo_xlib_surface_create00);
9033 tolua_function(tolua_S,"cairo_xlib_surface_create_for_bitmap",tolua_cairo_cairo_xlib_surface_create_for_bitmap00);
9034 tolua_function(tolua_S,"cairo_xlib_surface_set_size",tolua_cairo_cairo_xlib_surface_set_size00);
9035 tolua_function(tolua_S,"cairo_xlib_surface_set_drawable",tolua_cairo_cairo_xlib_surface_set_drawable00);
9036 tolua_function(tolua_S,"cairo_xlib_surface_get_display",tolua_cairo_cairo_xlib_surface_get_display00);
9037 tolua_function(tolua_S,"cairo_xlib_surface_get_drawable",tolua_cairo_cairo_xlib_surface_get_drawable00);
9038 tolua_function(tolua_S,"cairo_xlib_surface_get_screen",tolua_cairo_cairo_xlib_surface_get_screen00);
9039 tolua_function(tolua_S,"cairo_xlib_surface_get_visual",tolua_cairo_cairo_xlib_surface_get_visual00);
9040 tolua_function(tolua_S,"cairo_xlib_surface_get_depth",tolua_cairo_cairo_xlib_surface_get_depth00);
9041 tolua_function(tolua_S,"cairo_xlib_surface_get_width",tolua_cairo_cairo_xlib_surface_get_width00);
9042 tolua_function(tolua_S,"cairo_xlib_surface_get_height",tolua_cairo_cairo_xlib_surface_get_height00);
9043 tolua_function(tolua_S,"cairo_version",tolua_cairo_cairo_version00);
9044 tolua_function(tolua_S,"cairo_version_string",tolua_cairo_cairo_version_string00);
9045 tolua_function(tolua_S,"cairo_create",tolua_cairo_cairo_create00);
9046 tolua_function(tolua_S,"cairo_reference",tolua_cairo_cairo_reference00);
9047 tolua_function(tolua_S,"cairo_destroy",tolua_cairo_cairo_destroy00);
9048 tolua_function(tolua_S,"cairo_get_reference_count",tolua_cairo_cairo_get_reference_count00);
9049 tolua_function(tolua_S,"cairo_get_user_data",tolua_cairo_cairo_get_user_data00);
9050 tolua_function(tolua_S,"cairo_set_user_data",tolua_cairo_cairo_set_user_data00);
9051 tolua_function(tolua_S,"cairo_save",tolua_cairo_cairo_save00);
9052 tolua_function(tolua_S,"cairo_restore",tolua_cairo_cairo_restore00);
9053 tolua_function(tolua_S,"cairo_push_group",tolua_cairo_cairo_push_group00);
9054 tolua_function(tolua_S,"cairo_push_group_with_content",tolua_cairo_cairo_push_group_with_content00);
9055 tolua_function(tolua_S,"cairo_pop_group",tolua_cairo_cairo_pop_group00);
9056 tolua_function(tolua_S,"cairo_pop_group_to_source",tolua_cairo_cairo_pop_group_to_source00);
9057 tolua_function(tolua_S,"cairo_set_operator",tolua_cairo_cairo_set_operator00);
9058 tolua_function(tolua_S,"cairo_set_source",tolua_cairo_cairo_set_source00);
9059 tolua_function(tolua_S,"cairo_set_source_rgb",tolua_cairo_cairo_set_source_rgb00);
9060 tolua_function(tolua_S,"cairo_set_source_rgba",tolua_cairo_cairo_set_source_rgba00);
9061 tolua_function(tolua_S,"cairo_set_source_surface",tolua_cairo_cairo_set_source_surface00);
9062 tolua_function(tolua_S,"cairo_set_tolerance",tolua_cairo_cairo_set_tolerance00);
9063 tolua_function(tolua_S,"cairo_set_antialias",tolua_cairo_cairo_set_antialias00);
9064 tolua_constant(tolua_S,"CAIRO_FILL_RULE_WINDING",CAIRO_FILL_RULE_WINDING);
9065 tolua_constant(tolua_S,"CAIRO_FILL_RULE_EVEN_ODD",CAIRO_FILL_RULE_EVEN_ODD);
9066 tolua_function(tolua_S,"cairo_set_fill_rule",tolua_cairo_cairo_set_fill_rule00);
9067 tolua_function(tolua_S,"cairo_set_line_width",tolua_cairo_cairo_set_line_width00);
9068 tolua_constant(tolua_S,"CAIRO_LINE_CAP_BUTT",CAIRO_LINE_CAP_BUTT);
9069 tolua_constant(tolua_S,"CAIRO_LINE_CAP_ROUND",CAIRO_LINE_CAP_ROUND);
9070 tolua_constant(tolua_S,"CAIRO_LINE_CAP_SQUARE",CAIRO_LINE_CAP_SQUARE);
9071 tolua_function(tolua_S,"cairo_set_line_cap",tolua_cairo_cairo_set_line_cap00);
9072 tolua_constant(tolua_S,"CAIRO_LINE_JOIN_MITER",CAIRO_LINE_JOIN_MITER);
9073 tolua_constant(tolua_S,"CAIRO_LINE_JOIN_ROUND",CAIRO_LINE_JOIN_ROUND);
9074 tolua_constant(tolua_S,"CAIRO_LINE_JOIN_BEVEL",CAIRO_LINE_JOIN_BEVEL);
9075 tolua_function(tolua_S,"cairo_set_line_join",tolua_cairo_cairo_set_line_join00);
9076 tolua_function(tolua_S,"cairo_set_dash",tolua_cairo_cairo_set_dash00);
9077 tolua_function(tolua_S,"cairo_set_miter_limit",tolua_cairo_cairo_set_miter_limit00);
9078 tolua_function(tolua_S,"cairo_translate",tolua_cairo_cairo_translate00);
9079 tolua_function(tolua_S,"cairo_scale",tolua_cairo_cairo_scale00);
9080 tolua_function(tolua_S,"cairo_rotate",tolua_cairo_cairo_rotate00);
9081 tolua_function(tolua_S,"cairo_transform",tolua_cairo_cairo_transform00);
9082 tolua_function(tolua_S,"cairo_set_matrix",tolua_cairo_cairo_set_matrix00);
9083 tolua_function(tolua_S,"cairo_identity_matrix",tolua_cairo_cairo_identity_matrix00);
9084 tolua_function(tolua_S,"cairo_user_to_device",tolua_cairo_cairo_user_to_device00);
9085 tolua_function(tolua_S,"cairo_user_to_device_distance",tolua_cairo_cairo_user_to_device_distance00);
9086 tolua_function(tolua_S,"cairo_device_to_user",tolua_cairo_cairo_device_to_user00);
9087 tolua_function(tolua_S,"cairo_device_to_user_distance",tolua_cairo_cairo_device_to_user_distance00);
9088 tolua_function(tolua_S,"cairo_new_path",tolua_cairo_cairo_new_path00);
9089 tolua_function(tolua_S,"cairo_move_to",tolua_cairo_cairo_move_to00);
9090 tolua_function(tolua_S,"cairo_new_sub_path",tolua_cairo_cairo_new_sub_path00);
9091 tolua_function(tolua_S,"cairo_line_to",tolua_cairo_cairo_line_to00);
9092 tolua_function(tolua_S,"cairo_curve_to",tolua_cairo_cairo_curve_to00);
9093 tolua_function(tolua_S,"cairo_arc",tolua_cairo_cairo_arc00);
9094 tolua_function(tolua_S,"cairo_arc_negative",tolua_cairo_cairo_arc_negative00);
9095 tolua_function(tolua_S,"cairo_rel_move_to",tolua_cairo_cairo_rel_move_to00);
9096 tolua_function(tolua_S,"cairo_rel_line_to",tolua_cairo_cairo_rel_line_to00);
9097 tolua_function(tolua_S,"cairo_rel_curve_to",tolua_cairo_cairo_rel_curve_to00);
9098 tolua_function(tolua_S,"cairo_rectangle",tolua_cairo_cairo_rectangle00);
9099 tolua_function(tolua_S,"cairo_close_path",tolua_cairo_cairo_close_path00);
9100 tolua_function(tolua_S,"cairo_path_extents",tolua_cairo_cairo_path_extents00);
9101 tolua_function(tolua_S,"cairo_paint",tolua_cairo_cairo_paint00);
9102 tolua_function(tolua_S,"cairo_paint_with_alpha",tolua_cairo_cairo_paint_with_alpha00);
9103 tolua_function(tolua_S,"cairo_mask",tolua_cairo_cairo_mask00);
9104 tolua_function(tolua_S,"cairo_mask_surface",tolua_cairo_cairo_mask_surface00);
9105 tolua_function(tolua_S,"cairo_stroke",tolua_cairo_cairo_stroke00);
9106 tolua_function(tolua_S,"cairo_stroke_preserve",tolua_cairo_cairo_stroke_preserve00);
9107 tolua_function(tolua_S,"cairo_fill",tolua_cairo_cairo_fill00);
9108 tolua_function(tolua_S,"cairo_fill_preserve",tolua_cairo_cairo_fill_preserve00);
9109 tolua_function(tolua_S,"cairo_copy_page",tolua_cairo_cairo_copy_page00);
9110 tolua_function(tolua_S,"cairo_show_page",tolua_cairo_cairo_show_page00);
9111 tolua_function(tolua_S,"cairo_in_stroke",tolua_cairo_cairo_in_stroke00);
9112 tolua_function(tolua_S,"cairo_in_fill",tolua_cairo_cairo_in_fill00);
9113 tolua_function(tolua_S,"cairo_stroke_extents",tolua_cairo_cairo_stroke_extents00);
9114 tolua_function(tolua_S,"cairo_fill_extents",tolua_cairo_cairo_fill_extents00);
9115 tolua_function(tolua_S,"cairo_reset_clip",tolua_cairo_cairo_reset_clip00);
9116 tolua_function(tolua_S,"cairo_clip",tolua_cairo_cairo_clip00);
9117 tolua_function(tolua_S,"cairo_clip_preserve",tolua_cairo_cairo_clip_preserve00);
9118 tolua_function(tolua_S,"cairo_clip_extents",tolua_cairo_cairo_clip_extents00);
9119 tolua_cclass(tolua_S,"cairo_rectangle_t","cairo_rectangle_t","",NULL);
9120 tolua_beginmodule(tolua_S,"cairo_rectangle_t");
9121 tolua_variable(tolua_S,"x",tolua_get_cairo_rectangle_t_x,tolua_set_cairo_rectangle_t_x);
9122 tolua_variable(tolua_S,"y",tolua_get_cairo_rectangle_t_y,tolua_set_cairo_rectangle_t_y);
9123 tolua_variable(tolua_S,"width",tolua_get_cairo_rectangle_t_width,tolua_set_cairo_rectangle_t_width);
9124 tolua_variable(tolua_S,"height",tolua_get_cairo_rectangle_t_height,tolua_set_cairo_rectangle_t_height);
9125 tolua_endmodule(tolua_S);
9126 tolua_cclass(tolua_S,"cairo_rectangle_list_t","cairo_rectangle_list_t","",NULL);
9127 tolua_beginmodule(tolua_S,"cairo_rectangle_list_t");
9128 tolua_variable(tolua_S,"status",tolua_get_cairo_rectangle_list_t_status,tolua_set_cairo_rectangle_list_t_status);
9129 tolua_variable(tolua_S,"rectangles",tolua_get_cairo_rectangle_list_t_rectangles_ptr,tolua_set_cairo_rectangle_list_t_rectangles_ptr);
9130 tolua_variable(tolua_S,"num_rectangles",tolua_get_cairo_rectangle_list_t_num_rectangles,tolua_set_cairo_rectangle_list_t_num_rectangles);
9131 tolua_endmodule(tolua_S);
9132 tolua_function(tolua_S,"cairo_copy_clip_rectangle_list",tolua_cairo_cairo_copy_clip_rectangle_list00);
9133 tolua_function(tolua_S,"cairo_rectangle_list_destroy",tolua_cairo_cairo_rectangle_list_destroy00);
9134 tolua_cclass(tolua_S,"cairo_glyph_t","cairo_glyph_t","",NULL);
9135 tolua_beginmodule(tolua_S,"cairo_glyph_t");
9136 tolua_variable(tolua_S,"index",tolua_get_cairo_glyph_t_unsigned_index,tolua_set_cairo_glyph_t_unsigned_index);
9137 tolua_variable(tolua_S,"x",tolua_get_cairo_glyph_t_x,tolua_set_cairo_glyph_t_x);
9138 tolua_variable(tolua_S,"y",tolua_get_cairo_glyph_t_y,tolua_set_cairo_glyph_t_y);
9139 tolua_endmodule(tolua_S);
9140 tolua_function(tolua_S,"cairo_glyph_allocate",tolua_cairo_cairo_glyph_allocate00);
9141 tolua_function(tolua_S,"cairo_glyph_free",tolua_cairo_cairo_glyph_free00);
9142 tolua_cclass(tolua_S,"cairo_text_cluster_t","cairo_text_cluster_t","",NULL);
9143 tolua_beginmodule(tolua_S,"cairo_text_cluster_t");
9144 tolua_variable(tolua_S,"num_bytes",tolua_get_cairo_text_cluster_t_num_bytes,tolua_set_cairo_text_cluster_t_num_bytes);
9145 tolua_variable(tolua_S,"num_glyphs",tolua_get_cairo_text_cluster_t_num_glyphs,tolua_set_cairo_text_cluster_t_num_glyphs);
9146 tolua_endmodule(tolua_S);
9147 tolua_function(tolua_S,"cairo_text_cluster_allocate",tolua_cairo_cairo_text_cluster_allocate00);
9148 tolua_function(tolua_S,"cairo_text_cluster_free",tolua_cairo_cairo_text_cluster_free00);
9149 tolua_constant(tolua_S,"CAIRO_TEXT_CLUSTER_FLAG_BACKWARD",CAIRO_TEXT_CLUSTER_FLAG_BACKWARD);
9150 tolua_cclass(tolua_S,"cairo_text_extents_t","cairo_text_extents_t","",NULL);
9151 tolua_beginmodule(tolua_S,"cairo_text_extents_t");
9152 tolua_variable(tolua_S,"x_bearing",tolua_get_cairo_text_extents_t_x_bearing,tolua_set_cairo_text_extents_t_x_bearing);
9153 tolua_variable(tolua_S,"y_bearing",tolua_get_cairo_text_extents_t_y_bearing,tolua_set_cairo_text_extents_t_y_bearing);
9154 tolua_variable(tolua_S,"width",tolua_get_cairo_text_extents_t_width,tolua_set_cairo_text_extents_t_width);
9155 tolua_variable(tolua_S,"height",tolua_get_cairo_text_extents_t_height,tolua_set_cairo_text_extents_t_height);
9156 tolua_variable(tolua_S,"x_advance",tolua_get_cairo_text_extents_t_x_advance,tolua_set_cairo_text_extents_t_x_advance);
9157 tolua_variable(tolua_S,"y_advance",tolua_get_cairo_text_extents_t_y_advance,tolua_set_cairo_text_extents_t_y_advance);
9158 tolua_function(tolua_S,"create",tolua_cairo_cairo_text_extents_t_create00);
9159 tolua_endmodule(tolua_S);
9160 tolua_cclass(tolua_S,"cairo_font_extents_t","cairo_font_extents_t","",NULL);
9161 tolua_beginmodule(tolua_S,"cairo_font_extents_t");
9162 tolua_variable(tolua_S,"ascent",tolua_get_cairo_font_extents_t_ascent,tolua_set_cairo_font_extents_t_ascent);
9163 tolua_variable(tolua_S,"descent",tolua_get_cairo_font_extents_t_descent,tolua_set_cairo_font_extents_t_descent);
9164 tolua_variable(tolua_S,"height",tolua_get_cairo_font_extents_t_height,tolua_set_cairo_font_extents_t_height);
9165 tolua_variable(tolua_S,"max_x_advance",tolua_get_cairo_font_extents_t_max_x_advance,tolua_set_cairo_font_extents_t_max_x_advance);
9166 tolua_variable(tolua_S,"max_y_advance",tolua_get_cairo_font_extents_t_max_y_advance,tolua_set_cairo_font_extents_t_max_y_advance);
9167 tolua_function(tolua_S,"create",tolua_cairo_cairo_font_extents_t_create00);
9168 tolua_endmodule(tolua_S);
9169 tolua_constant(tolua_S,"CAIRO_FONT_SLANT_NORMAL",CAIRO_FONT_SLANT_NORMAL);
9170 tolua_constant(tolua_S,"CAIRO_FONT_SLANT_ITALIC",CAIRO_FONT_SLANT_ITALIC);
9171 tolua_constant(tolua_S,"CAIRO_FONT_SLANT_OBLIQUE",CAIRO_FONT_SLANT_OBLIQUE);
9172 tolua_constant(tolua_S,"CAIRO_FONT_WEIGHT_NORMAL",CAIRO_FONT_WEIGHT_NORMAL);
9173 tolua_constant(tolua_S,"CAIRO_FONT_WEIGHT_BOLD",CAIRO_FONT_WEIGHT_BOLD);
9174 tolua_constant(tolua_S,"CAIRO_SUBPIXEL_ORDER_DEFAULT",CAIRO_SUBPIXEL_ORDER_DEFAULT);
9175 tolua_constant(tolua_S,"CAIRO_SUBPIXEL_ORDER_RGB",CAIRO_SUBPIXEL_ORDER_RGB);
9176 tolua_constant(tolua_S,"CAIRO_SUBPIXEL_ORDER_BGR",CAIRO_SUBPIXEL_ORDER_BGR);
9177 tolua_constant(tolua_S,"CAIRO_SUBPIXEL_ORDER_VRGB",CAIRO_SUBPIXEL_ORDER_VRGB);
9178 tolua_constant(tolua_S,"CAIRO_SUBPIXEL_ORDER_VBGR",CAIRO_SUBPIXEL_ORDER_VBGR);
9179 tolua_constant(tolua_S,"CAIRO_HINT_STYLE_DEFAULT",CAIRO_HINT_STYLE_DEFAULT);
9180 tolua_constant(tolua_S,"CAIRO_HINT_STYLE_NONE",CAIRO_HINT_STYLE_NONE);
9181 tolua_constant(tolua_S,"CAIRO_HINT_STYLE_SLIGHT",CAIRO_HINT_STYLE_SLIGHT);
9182 tolua_constant(tolua_S,"CAIRO_HINT_STYLE_MEDIUM",CAIRO_HINT_STYLE_MEDIUM);
9183 tolua_constant(tolua_S,"CAIRO_HINT_STYLE_FULL",CAIRO_HINT_STYLE_FULL);
9184 tolua_constant(tolua_S,"CAIRO_HINT_METRICS_DEFAULT",CAIRO_HINT_METRICS_DEFAULT);
9185 tolua_constant(tolua_S,"CAIRO_HINT_METRICS_OFF",CAIRO_HINT_METRICS_OFF);
9186 tolua_constant(tolua_S,"CAIRO_HINT_METRICS_ON",CAIRO_HINT_METRICS_ON);
9187 tolua_function(tolua_S,"cairo_font_options_create",tolua_cairo_cairo_font_options_create00);
9188 tolua_function(tolua_S,"cairo_font_options_copy",tolua_cairo_cairo_font_options_copy00);
9189 tolua_function(tolua_S,"cairo_font_options_destroy",tolua_cairo_cairo_font_options_destroy00);
9190 tolua_function(tolua_S,"cairo_font_options_status",tolua_cairo_cairo_font_options_status00);
9191 tolua_function(tolua_S,"cairo_font_options_merge",tolua_cairo_cairo_font_options_merge00);
9192 tolua_function(tolua_S,"cairo_font_options_equal",tolua_cairo_cairo_font_options_equal00);
9193 tolua_function(tolua_S,"cairo_font_options_hash",tolua_cairo_cairo_font_options_hash00);
9194 tolua_function(tolua_S,"cairo_font_options_set_antialias",tolua_cairo_cairo_font_options_set_antialias00);
9195 tolua_function(tolua_S,"cairo_font_options_get_antialias",tolua_cairo_cairo_font_options_get_antialias00);
9196 tolua_function(tolua_S,"cairo_font_options_set_subpixel_order",tolua_cairo_cairo_font_options_set_subpixel_order00);
9197 tolua_function(tolua_S,"cairo_font_options_get_subpixel_order",tolua_cairo_cairo_font_options_get_subpixel_order00);
9198 tolua_function(tolua_S,"cairo_font_options_set_hint_style",tolua_cairo_cairo_font_options_set_hint_style00);
9199 tolua_function(tolua_S,"cairo_font_options_get_hint_style",tolua_cairo_cairo_font_options_get_hint_style00);
9200 tolua_function(tolua_S,"cairo_font_options_set_hint_metrics",tolua_cairo_cairo_font_options_set_hint_metrics00);
9201 tolua_function(tolua_S,"cairo_font_options_get_hint_metrics",tolua_cairo_cairo_font_options_get_hint_metrics00);
9202 tolua_function(tolua_S,"cairo_select_font_face",tolua_cairo_cairo_select_font_face00);
9203 tolua_function(tolua_S,"cairo_set_font_size",tolua_cairo_cairo_set_font_size00);
9204 tolua_function(tolua_S,"cairo_set_font_matrix",tolua_cairo_cairo_set_font_matrix00);
9205 tolua_function(tolua_S,"cairo_get_font_matrix",tolua_cairo_cairo_get_font_matrix00);
9206 tolua_function(tolua_S,"cairo_set_font_options",tolua_cairo_cairo_set_font_options00);
9207 tolua_function(tolua_S,"cairo_get_font_options",tolua_cairo_cairo_get_font_options00);
9208 tolua_function(tolua_S,"cairo_set_font_face",tolua_cairo_cairo_set_font_face00);
9209 tolua_function(tolua_S,"cairo_get_font_face",tolua_cairo_cairo_get_font_face00);
9210 tolua_function(tolua_S,"cairo_set_scaled_font",tolua_cairo_cairo_set_scaled_font00);
9211 tolua_function(tolua_S,"cairo_get_scaled_font",tolua_cairo_cairo_get_scaled_font00);
9212 tolua_function(tolua_S,"cairo_show_text",tolua_cairo_cairo_show_text00);
9213 tolua_function(tolua_S,"cairo_show_glyphs",tolua_cairo_cairo_show_glyphs00);
9214 tolua_function(tolua_S,"cairo_show_text_glyphs",tolua_cairo_cairo_show_text_glyphs00);
9215 tolua_function(tolua_S,"cairo_text_path",tolua_cairo_cairo_text_path00);
9216 tolua_function(tolua_S,"cairo_glyph_path",tolua_cairo_cairo_glyph_path00);
9217 tolua_function(tolua_S,"cairo_text_extents",tolua_cairo_cairo_text_extents00);
9218 tolua_function(tolua_S,"cairo_glyph_extents",tolua_cairo_cairo_glyph_extents00);
9219 tolua_function(tolua_S,"cairo_font_extents",tolua_cairo_cairo_font_extents00);
9220 tolua_function(tolua_S,"cairo_font_face_reference",tolua_cairo_cairo_font_face_reference00);
9221 tolua_function(tolua_S,"cairo_font_face_destroy",tolua_cairo_cairo_font_face_destroy00);
9222 tolua_function(tolua_S,"cairo_font_face_get_reference_count",tolua_cairo_cairo_font_face_get_reference_count00);
9223 tolua_function(tolua_S,"cairo_font_face_status",tolua_cairo_cairo_font_face_status00);
9224 tolua_constant(tolua_S,"CAIRO_FONT_TYPE_TOY",CAIRO_FONT_TYPE_TOY);
9225 tolua_constant(tolua_S,"CAIRO_FONT_TYPE_FT",CAIRO_FONT_TYPE_FT);
9226 tolua_constant(tolua_S,"CAIRO_FONT_TYPE_WIN32",CAIRO_FONT_TYPE_WIN32);
9227 tolua_constant(tolua_S,"CAIRO_FONT_TYPE_QUARTZ",CAIRO_FONT_TYPE_QUARTZ);
9228 tolua_constant(tolua_S,"CAIRO_FONT_TYPE_USER",CAIRO_FONT_TYPE_USER);
9229 tolua_function(tolua_S,"cairo_font_face_get_type",tolua_cairo_cairo_font_face_get_type00);
9230 tolua_function(tolua_S,"cairo_font_face_get_user_data",tolua_cairo_cairo_font_face_get_user_data00);
9231 tolua_function(tolua_S,"cairo_font_face_set_user_data",tolua_cairo_cairo_font_face_set_user_data00);
9232 tolua_function(tolua_S,"cairo_scaled_font_create",tolua_cairo_cairo_scaled_font_create00);
9233 tolua_function(tolua_S,"cairo_scaled_font_reference",tolua_cairo_cairo_scaled_font_reference00);
9234 tolua_function(tolua_S,"cairo_scaled_font_destroy",tolua_cairo_cairo_scaled_font_destroy00);
9235 tolua_function(tolua_S,"cairo_scaled_font_get_reference_count",tolua_cairo_cairo_scaled_font_get_reference_count00);
9236 tolua_function(tolua_S,"cairo_scaled_font_status",tolua_cairo_cairo_scaled_font_status00);
9237 tolua_function(tolua_S,"cairo_scaled_font_get_type",tolua_cairo_cairo_scaled_font_get_type00);
9238 tolua_function(tolua_S,"cairo_scaled_font_get_user_data",tolua_cairo_cairo_scaled_font_get_user_data00);
9239 tolua_function(tolua_S,"cairo_scaled_font_set_user_data",tolua_cairo_cairo_scaled_font_set_user_data00);
9240 tolua_function(tolua_S,"cairo_scaled_font_extents",tolua_cairo_cairo_scaled_font_extents00);
9241 tolua_function(tolua_S,"cairo_scaled_font_text_extents",tolua_cairo_cairo_scaled_font_text_extents00);
9242 tolua_function(tolua_S,"cairo_scaled_font_glyph_extents",tolua_cairo_cairo_scaled_font_glyph_extents00);
9243 tolua_function(tolua_S,"cairo_scaled_font_text_to_glyphs",tolua_cairo_cairo_scaled_font_text_to_glyphs00);
9244 tolua_function(tolua_S,"cairo_scaled_font_get_font_face",tolua_cairo_cairo_scaled_font_get_font_face00);
9245 tolua_function(tolua_S,"cairo_scaled_font_get_font_matrix",tolua_cairo_cairo_scaled_font_get_font_matrix00);
9246 tolua_function(tolua_S,"cairo_scaled_font_get_ctm",tolua_cairo_cairo_scaled_font_get_ctm00);
9247 tolua_function(tolua_S,"cairo_scaled_font_get_scale_matrix",tolua_cairo_cairo_scaled_font_get_scale_matrix00);
9248 tolua_function(tolua_S,"cairo_scaled_font_get_font_options",tolua_cairo_cairo_scaled_font_get_font_options00);
9249 tolua_function(tolua_S,"cairo_toy_font_face_create",tolua_cairo_cairo_toy_font_face_create00);
9250 tolua_function(tolua_S,"cairo_toy_font_face_get_family",tolua_cairo_cairo_toy_font_face_get_family00);
9251 tolua_function(tolua_S,"cairo_toy_font_face_get_slant",tolua_cairo_cairo_toy_font_face_get_slant00);
9252 tolua_function(tolua_S,"cairo_toy_font_face_get_weight",tolua_cairo_cairo_toy_font_face_get_weight00);
9253 tolua_function(tolua_S,"cairo_user_font_face_create",tolua_cairo_cairo_user_font_face_create00);
9254 tolua_function(tolua_S,"cairo_user_font_face_set_init_func",tolua_cairo_cairo_user_font_face_set_init_func00);
9255 tolua_function(tolua_S,"cairo_user_font_face_set_render_glyph_func",tolua_cairo_cairo_user_font_face_set_render_glyph_func00);
9256 tolua_function(tolua_S,"cairo_user_font_face_set_text_to_glyphs_func",tolua_cairo_cairo_user_font_face_set_text_to_glyphs_func00);
9257 tolua_function(tolua_S,"cairo_user_font_face_set_unicode_to_glyph_func",tolua_cairo_cairo_user_font_face_set_unicode_to_glyph_func00);
9258 tolua_function(tolua_S,"cairo_user_font_face_get_init_func",tolua_cairo_cairo_user_font_face_get_init_func00);
9259 tolua_function(tolua_S,"cairo_user_font_face_get_render_glyph_func",tolua_cairo_cairo_user_font_face_get_render_glyph_func00);
9260 tolua_function(tolua_S,"cairo_user_font_face_get_text_to_glyphs_func",tolua_cairo_cairo_user_font_face_get_text_to_glyphs_func00);
9261 tolua_function(tolua_S,"cairo_user_font_face_get_unicode_to_glyph_func",tolua_cairo_cairo_user_font_face_get_unicode_to_glyph_func00);
9262 tolua_function(tolua_S,"cairo_get_operator",tolua_cairo_cairo_get_operator00);
9263 tolua_function(tolua_S,"cairo_get_source",tolua_cairo_cairo_get_source00);
9264 tolua_function(tolua_S,"cairo_get_tolerance",tolua_cairo_cairo_get_tolerance00);
9265 tolua_function(tolua_S,"cairo_get_antialias",tolua_cairo_cairo_get_antialias00);
9266 tolua_function(tolua_S,"cairo_has_current_point",tolua_cairo_cairo_has_current_point00);
9267 tolua_function(tolua_S,"cairo_get_current_point",tolua_cairo_cairo_get_current_point00);
9268 tolua_function(tolua_S,"cairo_get_fill_rule",tolua_cairo_cairo_get_fill_rule00);
9269 tolua_function(tolua_S,"cairo_get_line_width",tolua_cairo_cairo_get_line_width00);
9270 tolua_function(tolua_S,"cairo_get_line_cap",tolua_cairo_cairo_get_line_cap00);
9271 tolua_function(tolua_S,"cairo_get_line_join",tolua_cairo_cairo_get_line_join00);
9272 tolua_function(tolua_S,"cairo_get_miter_limit",tolua_cairo_cairo_get_miter_limit00);
9273 tolua_function(tolua_S,"cairo_get_dash_count",tolua_cairo_cairo_get_dash_count00);
9274 tolua_function(tolua_S,"cairo_get_dash",tolua_cairo_cairo_get_dash00);
9275 tolua_function(tolua_S,"cairo_get_matrix",tolua_cairo_cairo_get_matrix00);
9276 tolua_function(tolua_S,"cairo_get_target",tolua_cairo_cairo_get_target00);
9277 tolua_function(tolua_S,"cairo_get_group_target",tolua_cairo_cairo_get_group_target00);
9278 tolua_constant(tolua_S,"CAIRO_PATH_MOVE_TO",CAIRO_PATH_MOVE_TO);
9279 tolua_constant(tolua_S,"CAIRO_PATH_LINE_TO",CAIRO_PATH_LINE_TO);
9280 tolua_constant(tolua_S,"CAIRO_PATH_CURVE_TO",CAIRO_PATH_CURVE_TO);
9281 tolua_constant(tolua_S,"CAIRO_PATH_CLOSE_PATH",CAIRO_PATH_CLOSE_PATH);
9282 tolua_cclass(tolua_S,"cairo_path_t","cairo_path_t","",NULL);
9283 tolua_beginmodule(tolua_S,"cairo_path_t");
9284 tolua_variable(tolua_S,"status",tolua_get_cairo_path_t_status,tolua_set_cairo_path_t_status);
9285 tolua_variable(tolua_S,"data",tolua_get_cairo_path_t_data_ptr,tolua_set_cairo_path_t_data_ptr);
9286 tolua_variable(tolua_S,"num_data",tolua_get_cairo_path_t_num_data,tolua_set_cairo_path_t_num_data);
9287 tolua_endmodule(tolua_S);
9288 tolua_function(tolua_S,"cairo_copy_path",tolua_cairo_cairo_copy_path00);
9289 tolua_function(tolua_S,"cairo_copy_path_flat",tolua_cairo_cairo_copy_path_flat00);
9290 tolua_function(tolua_S,"cairo_append_path",tolua_cairo_cairo_append_path00);
9291 tolua_function(tolua_S,"cairo_path_destroy",tolua_cairo_cairo_path_destroy00);
9292 tolua_function(tolua_S,"cairo_status",tolua_cairo_cairo_status00);
9293 tolua_function(tolua_S,"cairo_status_to_string",tolua_cairo_cairo_status_to_string00);
9294 tolua_function(tolua_S,"cairo_surface_create_similar",tolua_cairo_cairo_surface_create_similar00);
9295 tolua_function(tolua_S,"cairo_surface_reference",tolua_cairo_cairo_surface_reference00);
9296 tolua_function(tolua_S,"cairo_surface_finish",tolua_cairo_cairo_surface_finish00);
9297 tolua_function(tolua_S,"cairo_surface_destroy",tolua_cairo_cairo_surface_destroy00);
9298 tolua_function(tolua_S,"cairo_surface_get_reference_count",tolua_cairo_cairo_surface_get_reference_count00);
9299 tolua_function(tolua_S,"cairo_surface_status",tolua_cairo_cairo_surface_status00);
9300 tolua_constant(tolua_S,"CAIRO_SURFACE_TYPE_IMAGE",CAIRO_SURFACE_TYPE_IMAGE);
9301 tolua_constant(tolua_S,"CAIRO_SURFACE_TYPE_PDF",CAIRO_SURFACE_TYPE_PDF);
9302 tolua_constant(tolua_S,"CAIRO_SURFACE_TYPE_PS",CAIRO_SURFACE_TYPE_PS);
9303 tolua_constant(tolua_S,"CAIRO_SURFACE_TYPE_XLIB",CAIRO_SURFACE_TYPE_XLIB);
9304 tolua_constant(tolua_S,"CAIRO_SURFACE_TYPE_XCB",CAIRO_SURFACE_TYPE_XCB);
9305 tolua_constant(tolua_S,"CAIRO_SURFACE_TYPE_GLITZ",CAIRO_SURFACE_TYPE_GLITZ);
9306 tolua_constant(tolua_S,"CAIRO_SURFACE_TYPE_QUARTZ",CAIRO_SURFACE_TYPE_QUARTZ);
9307 tolua_constant(tolua_S,"CAIRO_SURFACE_TYPE_WIN32",CAIRO_SURFACE_TYPE_WIN32);
9308 tolua_constant(tolua_S,"CAIRO_SURFACE_TYPE_BEOS",CAIRO_SURFACE_TYPE_BEOS);
9309 tolua_constant(tolua_S,"CAIRO_SURFACE_TYPE_DIRECTFB",CAIRO_SURFACE_TYPE_DIRECTFB);
9310 tolua_constant(tolua_S,"CAIRO_SURFACE_TYPE_SVG",CAIRO_SURFACE_TYPE_SVG);
9311 tolua_constant(tolua_S,"CAIRO_SURFACE_TYPE_OS2",CAIRO_SURFACE_TYPE_OS2);
9312 tolua_constant(tolua_S,"CAIRO_SURFACE_TYPE_WIN32_PRINTING",CAIRO_SURFACE_TYPE_WIN32_PRINTING);
9313 tolua_constant(tolua_S,"CAIRO_SURFACE_TYPE_QUARTZ_IMAGE",CAIRO_SURFACE_TYPE_QUARTZ_IMAGE);
9314 tolua_function(tolua_S,"cairo_surface_get_type",tolua_cairo_cairo_surface_get_type00);
9315 tolua_function(tolua_S,"cairo_surface_get_content",tolua_cairo_cairo_surface_get_content00);
9316 tolua_function(tolua_S,"cairo_surface_write_to_png",tolua_cairo_cairo_surface_write_to_png00);
9317 tolua_function(tolua_S,"cairo_surface_write_to_png_stream",tolua_cairo_cairo_surface_write_to_png_stream00);
9318 tolua_function(tolua_S,"cairo_surface_get_user_data",tolua_cairo_cairo_surface_get_user_data00);
9319 tolua_function(tolua_S,"cairo_surface_set_user_data",tolua_cairo_cairo_surface_set_user_data00);
9320 tolua_function(tolua_S,"cairo_surface_get_font_options",tolua_cairo_cairo_surface_get_font_options00);
9321 tolua_function(tolua_S,"cairo_surface_flush",tolua_cairo_cairo_surface_flush00);
9322 tolua_function(tolua_S,"cairo_surface_mark_dirty",tolua_cairo_cairo_surface_mark_dirty00);
9323 tolua_function(tolua_S,"cairo_surface_mark_dirty_rectangle",tolua_cairo_cairo_surface_mark_dirty_rectangle00);
9324 tolua_function(tolua_S,"cairo_surface_set_device_offset",tolua_cairo_cairo_surface_set_device_offset00);
9325 tolua_function(tolua_S,"cairo_surface_get_device_offset",tolua_cairo_cairo_surface_get_device_offset00);
9326 tolua_function(tolua_S,"cairo_surface_set_fallback_resolution",tolua_cairo_cairo_surface_set_fallback_resolution00);
9327 tolua_function(tolua_S,"cairo_surface_get_fallback_resolution",tolua_cairo_cairo_surface_get_fallback_resolution00);
9328 tolua_function(tolua_S,"cairo_surface_copy_page",tolua_cairo_cairo_surface_copy_page00);
9329 tolua_function(tolua_S,"cairo_surface_show_page",tolua_cairo_cairo_surface_show_page00);
9330 tolua_function(tolua_S,"cairo_surface_has_show_text_glyphs",tolua_cairo_cairo_surface_has_show_text_glyphs00);
9331 tolua_constant(tolua_S,"CAIRO_FORMAT_ARGB32",CAIRO_FORMAT_ARGB32);
9332 tolua_constant(tolua_S,"CAIRO_FORMAT_RGB24",CAIRO_FORMAT_RGB24);
9333 tolua_constant(tolua_S,"CAIRO_FORMAT_A8",CAIRO_FORMAT_A8);
9334 tolua_constant(tolua_S,"CAIRO_FORMAT_A1",CAIRO_FORMAT_A1);
9335 tolua_function(tolua_S,"cairo_image_surface_create",tolua_cairo_cairo_image_surface_create00);
9336 tolua_function(tolua_S,"cairo_format_stride_for_width",tolua_cairo_cairo_format_stride_for_width00);
9337 tolua_function(tolua_S,"cairo_image_surface_create_for_data",tolua_cairo_cairo_image_surface_create_for_data00);
9338 tolua_function(tolua_S,"cairo_image_surface_get_data",tolua_cairo_cairo_image_surface_get_data00);
9339 tolua_function(tolua_S,"cairo_image_surface_get_format",tolua_cairo_cairo_image_surface_get_format00);
9340 tolua_function(tolua_S,"cairo_image_surface_get_width",tolua_cairo_cairo_image_surface_get_width00);
9341 tolua_function(tolua_S,"cairo_image_surface_get_height",tolua_cairo_cairo_image_surface_get_height00);
9342 tolua_function(tolua_S,"cairo_image_surface_get_stride",tolua_cairo_cairo_image_surface_get_stride00);
9343 tolua_function(tolua_S,"cairo_image_surface_create_from_png",tolua_cairo_cairo_image_surface_create_from_png00);
9344 tolua_function(tolua_S,"cairo_image_surface_create_from_png_stream",tolua_cairo_cairo_image_surface_create_from_png_stream00);
9345 tolua_function(tolua_S,"cairo_pattern_create_rgb",tolua_cairo_cairo_pattern_create_rgb00);
9346 tolua_function(tolua_S,"cairo_pattern_create_rgba",tolua_cairo_cairo_pattern_create_rgba00);
9347 tolua_function(tolua_S,"cairo_pattern_create_for_surface",tolua_cairo_cairo_pattern_create_for_surface00);
9348 tolua_function(tolua_S,"cairo_pattern_create_linear",tolua_cairo_cairo_pattern_create_linear00);
9349 tolua_function(tolua_S,"cairo_pattern_create_radial",tolua_cairo_cairo_pattern_create_radial00);
9350 tolua_function(tolua_S,"cairo_pattern_reference",tolua_cairo_cairo_pattern_reference00);
9351 tolua_function(tolua_S,"cairo_pattern_destroy",tolua_cairo_cairo_pattern_destroy00);
9352 tolua_function(tolua_S,"cairo_pattern_get_reference_count",tolua_cairo_cairo_pattern_get_reference_count00);
9353 tolua_function(tolua_S,"cairo_pattern_status",tolua_cairo_cairo_pattern_status00);
9354 tolua_function(tolua_S,"cairo_pattern_get_user_data",tolua_cairo_cairo_pattern_get_user_data00);
9355 tolua_function(tolua_S,"cairo_pattern_set_user_data",tolua_cairo_cairo_pattern_set_user_data00);
9356 tolua_constant(tolua_S,"CAIRO_PATTERN_TYPE_SOLID",CAIRO_PATTERN_TYPE_SOLID);
9357 tolua_constant(tolua_S,"CAIRO_PATTERN_TYPE_SURFACE",CAIRO_PATTERN_TYPE_SURFACE);
9358 tolua_constant(tolua_S,"CAIRO_PATTERN_TYPE_LINEAR",CAIRO_PATTERN_TYPE_LINEAR);
9359 tolua_constant(tolua_S,"CAIRO_PATTERN_TYPE_RADIAL",CAIRO_PATTERN_TYPE_RADIAL);
9360 tolua_function(tolua_S,"cairo_pattern_get_type",tolua_cairo_cairo_pattern_get_type00);
9361 tolua_function(tolua_S,"cairo_pattern_add_color_stop_rgb",tolua_cairo_cairo_pattern_add_color_stop_rgb00);
9362 tolua_function(tolua_S,"cairo_pattern_add_color_stop_rgba",tolua_cairo_cairo_pattern_add_color_stop_rgba00);
9363 tolua_function(tolua_S,"cairo_pattern_set_matrix",tolua_cairo_cairo_pattern_set_matrix00);
9364 tolua_function(tolua_S,"cairo_pattern_get_matrix",tolua_cairo_cairo_pattern_get_matrix00);
9365 tolua_constant(tolua_S,"CAIRO_EXTEND_NONE",CAIRO_EXTEND_NONE);
9366 tolua_constant(tolua_S,"CAIRO_EXTEND_REPEAT",CAIRO_EXTEND_REPEAT);
9367 tolua_constant(tolua_S,"CAIRO_EXTEND_REFLECT",CAIRO_EXTEND_REFLECT);
9368 tolua_constant(tolua_S,"CAIRO_EXTEND_PAD",CAIRO_EXTEND_PAD);
9369 tolua_function(tolua_S,"cairo_pattern_set_extend",tolua_cairo_cairo_pattern_set_extend00);
9370 tolua_function(tolua_S,"cairo_pattern_get_extend",tolua_cairo_cairo_pattern_get_extend00);
9371 tolua_function(tolua_S,"cairo_pattern_set_filter",tolua_cairo_cairo_pattern_set_filter00);
9372 tolua_function(tolua_S,"cairo_pattern_get_filter",tolua_cairo_cairo_pattern_get_filter00);
9373 tolua_function(tolua_S,"cairo_pattern_get_rgba",tolua_cairo_cairo_pattern_get_rgba00);
9374 tolua_function(tolua_S,"cairo_pattern_get_surface",tolua_cairo_cairo_pattern_get_surface00);
9375 tolua_function(tolua_S,"cairo_pattern_get_color_stop_rgba",tolua_cairo_cairo_pattern_get_color_stop_rgba00);
9376 tolua_function(tolua_S,"cairo_pattern_get_color_stop_count",tolua_cairo_cairo_pattern_get_color_stop_count00);
9377 tolua_function(tolua_S,"cairo_pattern_get_linear_points",tolua_cairo_cairo_pattern_get_linear_points00);
9378 tolua_function(tolua_S,"cairo_pattern_get_radial_circles",tolua_cairo_cairo_pattern_get_radial_circles00);
9379 tolua_function(tolua_S,"cairo_matrix_init",tolua_cairo_cairo_matrix_init00);
9380 tolua_function(tolua_S,"cairo_matrix_init_identity",tolua_cairo_cairo_matrix_init_identity00);
9381 tolua_function(tolua_S,"cairo_matrix_init_translate",tolua_cairo_cairo_matrix_init_translate00);
9382 tolua_function(tolua_S,"cairo_matrix_init_scale",tolua_cairo_cairo_matrix_init_scale00);
9383 tolua_function(tolua_S,"cairo_matrix_init_rotate",tolua_cairo_cairo_matrix_init_rotate00);
9384 tolua_function(tolua_S,"cairo_matrix_translate",tolua_cairo_cairo_matrix_translate00);
9385 tolua_function(tolua_S,"cairo_matrix_scale",tolua_cairo_cairo_matrix_scale00);
9386 tolua_function(tolua_S,"cairo_matrix_rotate",tolua_cairo_cairo_matrix_rotate00);
9387 tolua_function(tolua_S,"cairo_matrix_invert",tolua_cairo_cairo_matrix_invert00);
9388 tolua_function(tolua_S,"cairo_matrix_multiply",tolua_cairo_cairo_matrix_multiply00);
9389 tolua_function(tolua_S,"cairo_matrix_transform_distance",tolua_cairo_cairo_matrix_transform_distance00);
9390 tolua_function(tolua_S,"cairo_matrix_transform_point",tolua_cairo_cairo_matrix_transform_point00);
9391 tolua_function(tolua_S,"cairo_debug_reset_static_data",tolua_cairo_cairo_debug_reset_static_data00);
9392 tolua_endmodule(tolua_S);
9397 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
9398 TOLUA_API int luaopen_cairo (lua_State* tolua_S) {
9399 return tolua_cairo_open(tolua_S);