3 ** Generated automatically by tolua++-1.0.92 on Mon Jan 4 18:45:07 2010.
13 /* Exported function */
14 TOLUA_API int tolua_imlib2_open (lua_State* tolua_S);
18 #define _userdata void*
20 /* function to release collected object via destructor */
23 static int tolua_collect_Pixmap (lua_State* tolua_S)
25 Pixmap* self = (Pixmap*) tolua_tousertype(tolua_S,1,0);
30 static int tolua_collect_Colormap (lua_State* tolua_S)
32 Colormap* self = (Colormap*) tolua_tousertype(tolua_S,1,0);
37 static int tolua_collect_Drawable (lua_State* tolua_S)
39 Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
44 static int tolua_collect_Imlib_Progress_Function (lua_State* tolua_S)
46 Imlib_Progress_Function* self = (Imlib_Progress_Function*) tolua_tousertype(tolua_S,1,0);
53 /* function to register type */
54 static void tolua_reg_types (lua_State* tolua_S)
56 tolua_usertype(tolua_S,"Visual");
57 tolua_usertype(tolua_S,"Imlib_Data_Destructor_Function");
58 tolua_usertype(tolua_S,"Imlib_Progress_Function");
59 tolua_usertype(tolua_S,"Pixmap");
60 tolua_usertype(tolua_S,"Colormap");
61 tolua_usertype(tolua_S,"Drawable");
62 tolua_usertype(tolua_S,"Display");
63 tolua_usertype(tolua_S,"XImage");
64 tolua_usertype(tolua_S,"_imlib_border");
65 tolua_usertype(tolua_S,"_imlib_color");
68 /* function: imlib_context_new */
69 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_new00
70 static int tolua_imlib2_imlib_context_new00(lua_State* tolua_S)
73 tolua_Error tolua_err;
75 !tolua_isnoobj(tolua_S,1,&tolua_err)
82 _userdata tolua_ret = ( _userdata) imlib_context_new();
83 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
89 tolua_error(tolua_S,"#ferror in function 'imlib_context_new'.",&tolua_err);
93 #endif //#ifndef TOLUA_DISABLE
95 /* function: imlib_context_free */
96 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_free00
97 static int tolua_imlib2_imlib_context_free00(lua_State* tolua_S)
100 tolua_Error tolua_err;
102 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
103 !tolua_isnoobj(tolua_S,2,&tolua_err)
109 _userdata context = (( _userdata) tolua_touserdata(tolua_S,1,0));
111 imlib_context_free(context);
115 #ifndef TOLUA_RELEASE
117 tolua_error(tolua_S,"#ferror in function 'imlib_context_free'.",&tolua_err);
121 #endif //#ifndef TOLUA_DISABLE
123 /* function: imlib_context_push */
124 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_push00
125 static int tolua_imlib2_imlib_context_push00(lua_State* tolua_S)
127 #ifndef TOLUA_RELEASE
128 tolua_Error tolua_err;
130 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
131 !tolua_isnoobj(tolua_S,2,&tolua_err)
137 _userdata context = (( _userdata) tolua_touserdata(tolua_S,1,0));
139 imlib_context_push(context);
143 #ifndef TOLUA_RELEASE
145 tolua_error(tolua_S,"#ferror in function 'imlib_context_push'.",&tolua_err);
149 #endif //#ifndef TOLUA_DISABLE
151 /* function: imlib_context_pop */
152 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_pop00
153 static int tolua_imlib2_imlib_context_pop00(lua_State* tolua_S)
155 #ifndef TOLUA_RELEASE
156 tolua_Error tolua_err;
158 !tolua_isnoobj(tolua_S,1,&tolua_err)
169 #ifndef TOLUA_RELEASE
171 tolua_error(tolua_S,"#ferror in function 'imlib_context_pop'.",&tolua_err);
175 #endif //#ifndef TOLUA_DISABLE
177 /* function: imlib_context_get */
178 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get00
179 static int tolua_imlib2_imlib_context_get00(lua_State* tolua_S)
181 #ifndef TOLUA_RELEASE
182 tolua_Error tolua_err;
184 !tolua_isnoobj(tolua_S,1,&tolua_err)
191 _userdata tolua_ret = ( _userdata) imlib_context_get();
192 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
196 #ifndef TOLUA_RELEASE
198 tolua_error(tolua_S,"#ferror in function 'imlib_context_get'.",&tolua_err);
202 #endif //#ifndef TOLUA_DISABLE
204 /* function: imlib_context_set_display */
205 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_display00
206 static int tolua_imlib2_imlib_context_set_display00(lua_State* tolua_S)
208 #ifndef TOLUA_RELEASE
209 tolua_Error tolua_err;
211 !tolua_isusertype(tolua_S,1,"Display",0,&tolua_err) ||
212 !tolua_isnoobj(tolua_S,2,&tolua_err)
218 Display* display = ((Display*) tolua_tousertype(tolua_S,1,0));
220 imlib_context_set_display(display);
224 #ifndef TOLUA_RELEASE
226 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_display'.",&tolua_err);
230 #endif //#ifndef TOLUA_DISABLE
232 /* function: imlib_context_disconnect_display */
233 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_disconnect_display00
234 static int tolua_imlib2_imlib_context_disconnect_display00(lua_State* tolua_S)
236 #ifndef TOLUA_RELEASE
237 tolua_Error tolua_err;
239 !tolua_isnoobj(tolua_S,1,&tolua_err)
246 imlib_context_disconnect_display();
250 #ifndef TOLUA_RELEASE
252 tolua_error(tolua_S,"#ferror in function 'imlib_context_disconnect_display'.",&tolua_err);
256 #endif //#ifndef TOLUA_DISABLE
258 /* function: imlib_context_set_visual */
259 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_visual00
260 static int tolua_imlib2_imlib_context_set_visual00(lua_State* tolua_S)
262 #ifndef TOLUA_RELEASE
263 tolua_Error tolua_err;
265 !tolua_isusertype(tolua_S,1,"Visual",0,&tolua_err) ||
266 !tolua_isnoobj(tolua_S,2,&tolua_err)
272 Visual* visual = ((Visual*) tolua_tousertype(tolua_S,1,0));
274 imlib_context_set_visual(visual);
278 #ifndef TOLUA_RELEASE
280 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_visual'.",&tolua_err);
284 #endif //#ifndef TOLUA_DISABLE
286 /* function: imlib_context_set_colormap */
287 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_colormap00
288 static int tolua_imlib2_imlib_context_set_colormap00(lua_State* tolua_S)
290 #ifndef TOLUA_RELEASE
291 tolua_Error tolua_err;
293 (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"Colormap",0,&tolua_err)) ||
294 !tolua_isnoobj(tolua_S,2,&tolua_err)
300 Colormap colormap = *((Colormap*) tolua_tousertype(tolua_S,1,0));
302 imlib_context_set_colormap(colormap);
306 #ifndef TOLUA_RELEASE
308 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_colormap'.",&tolua_err);
312 #endif //#ifndef TOLUA_DISABLE
314 /* function: imlib_context_set_drawable */
315 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_drawable00
316 static int tolua_imlib2_imlib_context_set_drawable00(lua_State* tolua_S)
318 #ifndef TOLUA_RELEASE
319 tolua_Error tolua_err;
321 (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err)) ||
322 !tolua_isnoobj(tolua_S,2,&tolua_err)
328 Drawable drawable = *((Drawable*) tolua_tousertype(tolua_S,1,0));
330 imlib_context_set_drawable(drawable);
334 #ifndef TOLUA_RELEASE
336 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_drawable'.",&tolua_err);
340 #endif //#ifndef TOLUA_DISABLE
342 /* function: imlib_context_set_mask */
343 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_mask00
344 static int tolua_imlib2_imlib_context_set_mask00(lua_State* tolua_S)
346 #ifndef TOLUA_RELEASE
347 tolua_Error tolua_err;
349 (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"Pixmap",0,&tolua_err)) ||
350 !tolua_isnoobj(tolua_S,2,&tolua_err)
356 Pixmap mask = *((Pixmap*) tolua_tousertype(tolua_S,1,0));
358 imlib_context_set_mask(mask);
362 #ifndef TOLUA_RELEASE
364 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_mask'.",&tolua_err);
368 #endif //#ifndef TOLUA_DISABLE
370 /* function: imlib_context_set_dither_mask */
371 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_dither_mask00
372 static int tolua_imlib2_imlib_context_set_dither_mask00(lua_State* tolua_S)
374 #ifndef TOLUA_RELEASE
375 tolua_Error tolua_err;
377 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
378 !tolua_isnoobj(tolua_S,2,&tolua_err)
384 char dither_mask = ((char) tolua_tonumber(tolua_S,1,0));
386 imlib_context_set_dither_mask(dither_mask);
390 #ifndef TOLUA_RELEASE
392 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_dither_mask'.",&tolua_err);
396 #endif //#ifndef TOLUA_DISABLE
398 /* function: imlib_context_set_mask_alpha_threshold */
399 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_mask_alpha_threshold00
400 static int tolua_imlib2_imlib_context_set_mask_alpha_threshold00(lua_State* tolua_S)
402 #ifndef TOLUA_RELEASE
403 tolua_Error tolua_err;
405 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
406 !tolua_isnoobj(tolua_S,2,&tolua_err)
412 int mask_alpha_threshold = ((int) tolua_tonumber(tolua_S,1,0));
414 imlib_context_set_mask_alpha_threshold(mask_alpha_threshold);
418 #ifndef TOLUA_RELEASE
420 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_mask_alpha_threshold'.",&tolua_err);
424 #endif //#ifndef TOLUA_DISABLE
426 /* function: imlib_context_set_anti_alias */
427 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_anti_alias00
428 static int tolua_imlib2_imlib_context_set_anti_alias00(lua_State* tolua_S)
430 #ifndef TOLUA_RELEASE
431 tolua_Error tolua_err;
433 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
434 !tolua_isnoobj(tolua_S,2,&tolua_err)
440 char anti_alias = ((char) tolua_tonumber(tolua_S,1,0));
442 imlib_context_set_anti_alias(anti_alias);
446 #ifndef TOLUA_RELEASE
448 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_anti_alias'.",&tolua_err);
452 #endif //#ifndef TOLUA_DISABLE
454 /* function: imlib_context_set_dither */
455 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_dither00
456 static int tolua_imlib2_imlib_context_set_dither00(lua_State* tolua_S)
458 #ifndef TOLUA_RELEASE
459 tolua_Error tolua_err;
461 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
462 !tolua_isnoobj(tolua_S,2,&tolua_err)
468 char dither = ((char) tolua_tonumber(tolua_S,1,0));
470 imlib_context_set_dither(dither);
474 #ifndef TOLUA_RELEASE
476 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_dither'.",&tolua_err);
480 #endif //#ifndef TOLUA_DISABLE
482 /* function: imlib_context_set_blend */
483 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_blend00
484 static int tolua_imlib2_imlib_context_set_blend00(lua_State* tolua_S)
486 #ifndef TOLUA_RELEASE
487 tolua_Error tolua_err;
489 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
490 !tolua_isnoobj(tolua_S,2,&tolua_err)
496 char blend = ((char) tolua_tonumber(tolua_S,1,0));
498 imlib_context_set_blend(blend);
502 #ifndef TOLUA_RELEASE
504 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_blend'.",&tolua_err);
508 #endif //#ifndef TOLUA_DISABLE
510 /* function: imlib_context_set_color_modifier */
511 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_color_modifier00
512 static int tolua_imlib2_imlib_context_set_color_modifier00(lua_State* tolua_S)
514 #ifndef TOLUA_RELEASE
515 tolua_Error tolua_err;
517 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
518 !tolua_isnoobj(tolua_S,2,&tolua_err)
524 _userdata color_modifier = (( _userdata) tolua_touserdata(tolua_S,1,0));
526 imlib_context_set_color_modifier(color_modifier);
530 #ifndef TOLUA_RELEASE
532 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_color_modifier'.",&tolua_err);
536 #endif //#ifndef TOLUA_DISABLE
538 /* function: imlib_context_set_operation */
539 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_operation00
540 static int tolua_imlib2_imlib_context_set_operation00(lua_State* tolua_S)
542 #ifndef TOLUA_RELEASE
543 tolua_Error tolua_err;
545 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
546 !tolua_isnoobj(tolua_S,2,&tolua_err)
552 Imlib_Operation operation = ((Imlib_Operation) (int) tolua_tonumber(tolua_S,1,0));
554 imlib_context_set_operation(operation);
558 #ifndef TOLUA_RELEASE
560 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_operation'.",&tolua_err);
564 #endif //#ifndef TOLUA_DISABLE
566 /* function: imlib_context_set_font */
567 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_font00
568 static int tolua_imlib2_imlib_context_set_font00(lua_State* tolua_S)
570 #ifndef TOLUA_RELEASE
571 tolua_Error tolua_err;
573 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
574 !tolua_isnoobj(tolua_S,2,&tolua_err)
580 _userdata font = (( _userdata) tolua_touserdata(tolua_S,1,0));
582 imlib_context_set_font(font);
586 #ifndef TOLUA_RELEASE
588 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_font'.",&tolua_err);
592 #endif //#ifndef TOLUA_DISABLE
594 /* function: imlib_context_set_direction */
595 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_direction00
596 static int tolua_imlib2_imlib_context_set_direction00(lua_State* tolua_S)
598 #ifndef TOLUA_RELEASE
599 tolua_Error tolua_err;
601 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
602 !tolua_isnoobj(tolua_S,2,&tolua_err)
608 Imlib_Text_Direction direction = ((Imlib_Text_Direction) (int) tolua_tonumber(tolua_S,1,0));
610 imlib_context_set_direction(direction);
614 #ifndef TOLUA_RELEASE
616 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_direction'.",&tolua_err);
620 #endif //#ifndef TOLUA_DISABLE
622 /* function: imlib_context_set_angle */
623 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_angle00
624 static int tolua_imlib2_imlib_context_set_angle00(lua_State* tolua_S)
626 #ifndef TOLUA_RELEASE
627 tolua_Error tolua_err;
629 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
630 !tolua_isnoobj(tolua_S,2,&tolua_err)
636 double angle = ((double) tolua_tonumber(tolua_S,1,0));
638 imlib_context_set_angle(angle);
642 #ifndef TOLUA_RELEASE
644 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_angle'.",&tolua_err);
648 #endif //#ifndef TOLUA_DISABLE
650 /* function: imlib_context_set_color */
651 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_color00
652 static int tolua_imlib2_imlib_context_set_color00(lua_State* tolua_S)
654 #ifndef TOLUA_RELEASE
655 tolua_Error tolua_err;
657 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
658 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
659 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
660 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
661 !tolua_isnoobj(tolua_S,5,&tolua_err)
667 int red = ((int) tolua_tonumber(tolua_S,1,0));
668 int green = ((int) tolua_tonumber(tolua_S,2,0));
669 int blue = ((int) tolua_tonumber(tolua_S,3,0));
670 int alpha = ((int) tolua_tonumber(tolua_S,4,0));
672 imlib_context_set_color(red,green,blue,alpha);
676 #ifndef TOLUA_RELEASE
678 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_color'.",&tolua_err);
682 #endif //#ifndef TOLUA_DISABLE
684 /* function: imlib_context_set_color_hsva */
685 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_color_hsva00
686 static int tolua_imlib2_imlib_context_set_color_hsva00(lua_State* tolua_S)
688 #ifndef TOLUA_RELEASE
689 tolua_Error tolua_err;
691 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
692 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
693 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
694 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
695 !tolua_isnoobj(tolua_S,5,&tolua_err)
701 float hue = ((float) tolua_tonumber(tolua_S,1,0));
702 float saturation = ((float) tolua_tonumber(tolua_S,2,0));
703 float value = ((float) tolua_tonumber(tolua_S,3,0));
704 int alpha = ((int) tolua_tonumber(tolua_S,4,0));
706 imlib_context_set_color_hsva(hue,saturation,value,alpha);
710 #ifndef TOLUA_RELEASE
712 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_color_hsva'.",&tolua_err);
716 #endif //#ifndef TOLUA_DISABLE
718 /* function: imlib_context_set_color_hlsa */
719 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_color_hlsa00
720 static int tolua_imlib2_imlib_context_set_color_hlsa00(lua_State* tolua_S)
722 #ifndef TOLUA_RELEASE
723 tolua_Error tolua_err;
725 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
726 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
727 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
728 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
729 !tolua_isnoobj(tolua_S,5,&tolua_err)
735 float hue = ((float) tolua_tonumber(tolua_S,1,0));
736 float lightness = ((float) tolua_tonumber(tolua_S,2,0));
737 float saturation = ((float) tolua_tonumber(tolua_S,3,0));
738 int alpha = ((int) tolua_tonumber(tolua_S,4,0));
740 imlib_context_set_color_hlsa(hue,lightness,saturation,alpha);
744 #ifndef TOLUA_RELEASE
746 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_color_hlsa'.",&tolua_err);
750 #endif //#ifndef TOLUA_DISABLE
752 /* function: imlib_context_set_color_cmya */
753 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_color_cmya00
754 static int tolua_imlib2_imlib_context_set_color_cmya00(lua_State* tolua_S)
756 #ifndef TOLUA_RELEASE
757 tolua_Error tolua_err;
759 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
760 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
761 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
762 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
763 !tolua_isnoobj(tolua_S,5,&tolua_err)
769 int cyan = ((int) tolua_tonumber(tolua_S,1,0));
770 int magenta = ((int) tolua_tonumber(tolua_S,2,0));
771 int yellow = ((int) tolua_tonumber(tolua_S,3,0));
772 int alpha = ((int) tolua_tonumber(tolua_S,4,0));
774 imlib_context_set_color_cmya(cyan,magenta,yellow,alpha);
778 #ifndef TOLUA_RELEASE
780 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_color_cmya'.",&tolua_err);
784 #endif //#ifndef TOLUA_DISABLE
786 /* function: imlib_context_set_color_range */
787 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_color_range00
788 static int tolua_imlib2_imlib_context_set_color_range00(lua_State* tolua_S)
790 #ifndef TOLUA_RELEASE
791 tolua_Error tolua_err;
793 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
794 !tolua_isnoobj(tolua_S,2,&tolua_err)
800 _userdata color_range = (( _userdata) tolua_touserdata(tolua_S,1,0));
802 imlib_context_set_color_range(color_range);
806 #ifndef TOLUA_RELEASE
808 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_color_range'.",&tolua_err);
812 #endif //#ifndef TOLUA_DISABLE
814 /* function: imlib_context_set_progress_function */
815 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_progress_function00
816 static int tolua_imlib2_imlib_context_set_progress_function00(lua_State* tolua_S)
818 #ifndef TOLUA_RELEASE
819 tolua_Error tolua_err;
821 (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"Imlib_Progress_Function",0,&tolua_err)) ||
822 !tolua_isnoobj(tolua_S,2,&tolua_err)
828 Imlib_Progress_Function progress_function = *((Imlib_Progress_Function*) tolua_tousertype(tolua_S,1,0));
830 imlib_context_set_progress_function(progress_function);
834 #ifndef TOLUA_RELEASE
836 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_progress_function'.",&tolua_err);
840 #endif //#ifndef TOLUA_DISABLE
842 /* function: imlib_context_set_progress_granularity */
843 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_progress_granularity00
844 static int tolua_imlib2_imlib_context_set_progress_granularity00(lua_State* tolua_S)
846 #ifndef TOLUA_RELEASE
847 tolua_Error tolua_err;
849 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
850 !tolua_isnoobj(tolua_S,2,&tolua_err)
856 char progress_granularity = ((char) tolua_tonumber(tolua_S,1,0));
858 imlib_context_set_progress_granularity(progress_granularity);
862 #ifndef TOLUA_RELEASE
864 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_progress_granularity'.",&tolua_err);
868 #endif //#ifndef TOLUA_DISABLE
870 /* function: imlib_context_set_image */
871 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_image00
872 static int tolua_imlib2_imlib_context_set_image00(lua_State* tolua_S)
874 #ifndef TOLUA_RELEASE
875 tolua_Error tolua_err;
877 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
878 !tolua_isnoobj(tolua_S,2,&tolua_err)
884 _userdata image = (( _userdata) tolua_touserdata(tolua_S,1,0));
886 imlib_context_set_image(image);
890 #ifndef TOLUA_RELEASE
892 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_image'.",&tolua_err);
896 #endif //#ifndef TOLUA_DISABLE
898 /* function: imlib_context_set_cliprect */
899 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_cliprect00
900 static int tolua_imlib2_imlib_context_set_cliprect00(lua_State* tolua_S)
902 #ifndef TOLUA_RELEASE
903 tolua_Error tolua_err;
905 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
906 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
907 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
908 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
909 !tolua_isnoobj(tolua_S,5,&tolua_err)
915 int x = ((int) tolua_tonumber(tolua_S,1,0));
916 int y = ((int) tolua_tonumber(tolua_S,2,0));
917 int w = ((int) tolua_tonumber(tolua_S,3,0));
918 int h = ((int) tolua_tonumber(tolua_S,4,0));
920 imlib_context_set_cliprect(x,y,w,h);
924 #ifndef TOLUA_RELEASE
926 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_cliprect'.",&tolua_err);
930 #endif //#ifndef TOLUA_DISABLE
932 /* function: imlib_context_set_TTF_encoding */
933 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_TTF_encoding00
934 static int tolua_imlib2_imlib_context_set_TTF_encoding00(lua_State* tolua_S)
936 #ifndef TOLUA_RELEASE
937 tolua_Error tolua_err;
939 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
940 !tolua_isnoobj(tolua_S,2,&tolua_err)
946 Imlib_TTF_Encoding encoding = ((Imlib_TTF_Encoding) (int) tolua_tonumber(tolua_S,1,0));
948 imlib_context_set_TTF_encoding(encoding);
952 #ifndef TOLUA_RELEASE
954 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_TTF_encoding'.",&tolua_err);
958 #endif //#ifndef TOLUA_DISABLE
960 /* function: imlib_context_get_display */
961 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_display00
962 static int tolua_imlib2_imlib_context_get_display00(lua_State* tolua_S)
964 #ifndef TOLUA_RELEASE
965 tolua_Error tolua_err;
967 !tolua_isnoobj(tolua_S,1,&tolua_err)
974 Display* tolua_ret = (Display*) imlib_context_get_display();
975 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Display");
979 #ifndef TOLUA_RELEASE
981 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_display'.",&tolua_err);
985 #endif //#ifndef TOLUA_DISABLE
987 /* function: imlib_context_get_visual */
988 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_visual00
989 static int tolua_imlib2_imlib_context_get_visual00(lua_State* tolua_S)
991 #ifndef TOLUA_RELEASE
992 tolua_Error tolua_err;
994 !tolua_isnoobj(tolua_S,1,&tolua_err)
1001 Visual* tolua_ret = (Visual*) imlib_context_get_visual();
1002 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Visual");
1006 #ifndef TOLUA_RELEASE
1008 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_visual'.",&tolua_err);
1012 #endif //#ifndef TOLUA_DISABLE
1014 /* function: imlib_context_get_colormap */
1015 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_colormap00
1016 static int tolua_imlib2_imlib_context_get_colormap00(lua_State* tolua_S)
1018 #ifndef TOLUA_RELEASE
1019 tolua_Error tolua_err;
1021 !tolua_isnoobj(tolua_S,1,&tolua_err)
1028 Colormap tolua_ret = (Colormap) imlib_context_get_colormap();
1031 void* tolua_obj = Mtolua_new((Colormap)(tolua_ret));
1032 tolua_pushusertype(tolua_S,tolua_obj,"Colormap");
1033 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1035 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Colormap));
1036 tolua_pushusertype(tolua_S,tolua_obj,"Colormap");
1037 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1043 #ifndef TOLUA_RELEASE
1045 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_colormap'.",&tolua_err);
1049 #endif //#ifndef TOLUA_DISABLE
1051 /* function: imlib_context_get_drawable */
1052 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_drawable00
1053 static int tolua_imlib2_imlib_context_get_drawable00(lua_State* tolua_S)
1055 #ifndef TOLUA_RELEASE
1056 tolua_Error tolua_err;
1058 !tolua_isnoobj(tolua_S,1,&tolua_err)
1065 Drawable tolua_ret = (Drawable) imlib_context_get_drawable();
1068 void* tolua_obj = Mtolua_new((Drawable)(tolua_ret));
1069 tolua_pushusertype(tolua_S,tolua_obj,"Drawable");
1070 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1072 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Drawable));
1073 tolua_pushusertype(tolua_S,tolua_obj,"Drawable");
1074 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1080 #ifndef TOLUA_RELEASE
1082 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_drawable'.",&tolua_err);
1086 #endif //#ifndef TOLUA_DISABLE
1088 /* function: imlib_context_get_mask */
1089 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_mask00
1090 static int tolua_imlib2_imlib_context_get_mask00(lua_State* tolua_S)
1092 #ifndef TOLUA_RELEASE
1093 tolua_Error tolua_err;
1095 !tolua_isnoobj(tolua_S,1,&tolua_err)
1102 Pixmap tolua_ret = (Pixmap) imlib_context_get_mask();
1105 void* tolua_obj = Mtolua_new((Pixmap)(tolua_ret));
1106 tolua_pushusertype(tolua_S,tolua_obj,"Pixmap");
1107 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1109 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Pixmap));
1110 tolua_pushusertype(tolua_S,tolua_obj,"Pixmap");
1111 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1117 #ifndef TOLUA_RELEASE
1119 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_mask'.",&tolua_err);
1123 #endif //#ifndef TOLUA_DISABLE
1125 /* function: imlib_context_get_dither_mask */
1126 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_dither_mask00
1127 static int tolua_imlib2_imlib_context_get_dither_mask00(lua_State* tolua_S)
1129 #ifndef TOLUA_RELEASE
1130 tolua_Error tolua_err;
1132 !tolua_isnoobj(tolua_S,1,&tolua_err)
1139 char tolua_ret = (char) imlib_context_get_dither_mask();
1140 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1144 #ifndef TOLUA_RELEASE
1146 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_dither_mask'.",&tolua_err);
1150 #endif //#ifndef TOLUA_DISABLE
1152 /* function: imlib_context_get_anti_alias */
1153 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_anti_alias00
1154 static int tolua_imlib2_imlib_context_get_anti_alias00(lua_State* tolua_S)
1156 #ifndef TOLUA_RELEASE
1157 tolua_Error tolua_err;
1159 !tolua_isnoobj(tolua_S,1,&tolua_err)
1166 char tolua_ret = (char) imlib_context_get_anti_alias();
1167 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1171 #ifndef TOLUA_RELEASE
1173 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_anti_alias'.",&tolua_err);
1177 #endif //#ifndef TOLUA_DISABLE
1179 /* function: imlib_context_get_mask_alpha_threshold */
1180 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_mask_alpha_threshold00
1181 static int tolua_imlib2_imlib_context_get_mask_alpha_threshold00(lua_State* tolua_S)
1183 #ifndef TOLUA_RELEASE
1184 tolua_Error tolua_err;
1186 !tolua_isnoobj(tolua_S,1,&tolua_err)
1193 int tolua_ret = (int) imlib_context_get_mask_alpha_threshold();
1194 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1198 #ifndef TOLUA_RELEASE
1200 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_mask_alpha_threshold'.",&tolua_err);
1204 #endif //#ifndef TOLUA_DISABLE
1206 /* function: imlib_context_get_dither */
1207 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_dither00
1208 static int tolua_imlib2_imlib_context_get_dither00(lua_State* tolua_S)
1210 #ifndef TOLUA_RELEASE
1211 tolua_Error tolua_err;
1213 !tolua_isnoobj(tolua_S,1,&tolua_err)
1220 char tolua_ret = (char) imlib_context_get_dither();
1221 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1225 #ifndef TOLUA_RELEASE
1227 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_dither'.",&tolua_err);
1231 #endif //#ifndef TOLUA_DISABLE
1233 /* function: imlib_context_get_blend */
1234 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_blend00
1235 static int tolua_imlib2_imlib_context_get_blend00(lua_State* tolua_S)
1237 #ifndef TOLUA_RELEASE
1238 tolua_Error tolua_err;
1240 !tolua_isnoobj(tolua_S,1,&tolua_err)
1247 char tolua_ret = (char) imlib_context_get_blend();
1248 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1252 #ifndef TOLUA_RELEASE
1254 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_blend'.",&tolua_err);
1258 #endif //#ifndef TOLUA_DISABLE
1260 /* function: imlib_context_get_color_modifier */
1261 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_color_modifier00
1262 static int tolua_imlib2_imlib_context_get_color_modifier00(lua_State* tolua_S)
1264 #ifndef TOLUA_RELEASE
1265 tolua_Error tolua_err;
1267 !tolua_isnoobj(tolua_S,1,&tolua_err)
1274 _userdata tolua_ret = ( _userdata) imlib_context_get_color_modifier();
1275 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
1279 #ifndef TOLUA_RELEASE
1281 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_color_modifier'.",&tolua_err);
1285 #endif //#ifndef TOLUA_DISABLE
1287 /* function: imlib_context_get_operation */
1288 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_operation00
1289 static int tolua_imlib2_imlib_context_get_operation00(lua_State* tolua_S)
1291 #ifndef TOLUA_RELEASE
1292 tolua_Error tolua_err;
1294 !tolua_isnoobj(tolua_S,1,&tolua_err)
1301 Imlib_Operation tolua_ret = (Imlib_Operation) imlib_context_get_operation();
1302 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1306 #ifndef TOLUA_RELEASE
1308 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_operation'.",&tolua_err);
1312 #endif //#ifndef TOLUA_DISABLE
1314 /* function: imlib_context_get_font */
1315 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_font00
1316 static int tolua_imlib2_imlib_context_get_font00(lua_State* tolua_S)
1318 #ifndef TOLUA_RELEASE
1319 tolua_Error tolua_err;
1321 !tolua_isnoobj(tolua_S,1,&tolua_err)
1328 _userdata tolua_ret = ( _userdata) imlib_context_get_font();
1329 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
1333 #ifndef TOLUA_RELEASE
1335 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_font'.",&tolua_err);
1339 #endif //#ifndef TOLUA_DISABLE
1341 /* function: imlib_context_get_angle */
1342 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_angle00
1343 static int tolua_imlib2_imlib_context_get_angle00(lua_State* tolua_S)
1345 #ifndef TOLUA_RELEASE
1346 tolua_Error tolua_err;
1348 !tolua_isnoobj(tolua_S,1,&tolua_err)
1355 double tolua_ret = (double) imlib_context_get_angle();
1356 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1360 #ifndef TOLUA_RELEASE
1362 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_angle'.",&tolua_err);
1366 #endif //#ifndef TOLUA_DISABLE
1368 /* function: imlib_context_get_direction */
1369 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_direction00
1370 static int tolua_imlib2_imlib_context_get_direction00(lua_State* tolua_S)
1372 #ifndef TOLUA_RELEASE
1373 tolua_Error tolua_err;
1375 !tolua_isnoobj(tolua_S,1,&tolua_err)
1382 Imlib_Text_Direction tolua_ret = (Imlib_Text_Direction) imlib_context_get_direction();
1383 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1387 #ifndef TOLUA_RELEASE
1389 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_direction'.",&tolua_err);
1393 #endif //#ifndef TOLUA_DISABLE
1395 /* function: imlib_context_get_color */
1396 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_color00
1397 static int tolua_imlib2_imlib_context_get_color00(lua_State* tolua_S)
1399 #ifndef TOLUA_RELEASE
1400 tolua_Error tolua_err;
1402 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
1403 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1404 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1405 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
1406 !tolua_isnoobj(tolua_S,5,&tolua_err)
1412 int red = ((int) tolua_tonumber(tolua_S,1,0));
1413 int green = ((int) tolua_tonumber(tolua_S,2,0));
1414 int blue = ((int) tolua_tonumber(tolua_S,3,0));
1415 int alpha = ((int) tolua_tonumber(tolua_S,4,0));
1417 imlib_context_get_color(&red,&green,&blue,&alpha);
1418 tolua_pushnumber(tolua_S,(lua_Number)red);
1419 tolua_pushnumber(tolua_S,(lua_Number)green);
1420 tolua_pushnumber(tolua_S,(lua_Number)blue);
1421 tolua_pushnumber(tolua_S,(lua_Number)alpha);
1425 #ifndef TOLUA_RELEASE
1427 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_color'.",&tolua_err);
1431 #endif //#ifndef TOLUA_DISABLE
1433 /* function: imlib_context_get_color_hsva */
1434 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_color_hsva00
1435 static int tolua_imlib2_imlib_context_get_color_hsva00(lua_State* tolua_S)
1437 #ifndef TOLUA_RELEASE
1438 tolua_Error tolua_err;
1440 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
1441 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1442 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1443 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
1444 !tolua_isnoobj(tolua_S,5,&tolua_err)
1450 float hue = ((float) tolua_tonumber(tolua_S,1,0));
1451 float saturation = ((float) tolua_tonumber(tolua_S,2,0));
1452 float value = ((float) tolua_tonumber(tolua_S,3,0));
1453 int alpha = ((int) tolua_tonumber(tolua_S,4,0));
1455 imlib_context_get_color_hsva(&hue,&saturation,&value,&alpha);
1456 tolua_pushnumber(tolua_S,(lua_Number)hue);
1457 tolua_pushnumber(tolua_S,(lua_Number)saturation);
1458 tolua_pushnumber(tolua_S,(lua_Number)value);
1459 tolua_pushnumber(tolua_S,(lua_Number)alpha);
1463 #ifndef TOLUA_RELEASE
1465 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_color_hsva'.",&tolua_err);
1469 #endif //#ifndef TOLUA_DISABLE
1471 /* function: imlib_context_get_color_hlsa */
1472 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_color_hlsa00
1473 static int tolua_imlib2_imlib_context_get_color_hlsa00(lua_State* tolua_S)
1475 #ifndef TOLUA_RELEASE
1476 tolua_Error tolua_err;
1478 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
1479 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1480 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1481 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
1482 !tolua_isnoobj(tolua_S,5,&tolua_err)
1488 float hue = ((float) tolua_tonumber(tolua_S,1,0));
1489 float lightness = ((float) tolua_tonumber(tolua_S,2,0));
1490 float saturation = ((float) tolua_tonumber(tolua_S,3,0));
1491 int alpha = ((int) tolua_tonumber(tolua_S,4,0));
1493 imlib_context_get_color_hlsa(&hue,&lightness,&saturation,&alpha);
1494 tolua_pushnumber(tolua_S,(lua_Number)hue);
1495 tolua_pushnumber(tolua_S,(lua_Number)lightness);
1496 tolua_pushnumber(tolua_S,(lua_Number)saturation);
1497 tolua_pushnumber(tolua_S,(lua_Number)alpha);
1501 #ifndef TOLUA_RELEASE
1503 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_color_hlsa'.",&tolua_err);
1507 #endif //#ifndef TOLUA_DISABLE
1509 /* function: imlib_context_get_color_cmya */
1510 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_color_cmya00
1511 static int tolua_imlib2_imlib_context_get_color_cmya00(lua_State* tolua_S)
1513 #ifndef TOLUA_RELEASE
1514 tolua_Error tolua_err;
1516 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
1517 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1518 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1519 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
1520 !tolua_isnoobj(tolua_S,5,&tolua_err)
1526 int cyan = ((int) tolua_tonumber(tolua_S,1,0));
1527 int magenta = ((int) tolua_tonumber(tolua_S,2,0));
1528 int yellow = ((int) tolua_tonumber(tolua_S,3,0));
1529 int alpha = ((int) tolua_tonumber(tolua_S,4,0));
1531 imlib_context_get_color_cmya(&cyan,&magenta,&yellow,&alpha);
1532 tolua_pushnumber(tolua_S,(lua_Number)cyan);
1533 tolua_pushnumber(tolua_S,(lua_Number)magenta);
1534 tolua_pushnumber(tolua_S,(lua_Number)yellow);
1535 tolua_pushnumber(tolua_S,(lua_Number)alpha);
1539 #ifndef TOLUA_RELEASE
1541 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_color_cmya'.",&tolua_err);
1545 #endif //#ifndef TOLUA_DISABLE
1547 /* function: imlib_context_get_imlib_color */
1548 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_imlib_color00
1549 static int tolua_imlib2_imlib_context_get_imlib_color00(lua_State* tolua_S)
1551 #ifndef TOLUA_RELEASE
1552 tolua_Error tolua_err;
1554 !tolua_isnoobj(tolua_S,1,&tolua_err)
1561 struct _imlib_color* tolua_ret = ( struct _imlib_color*) imlib_context_get_imlib_color();
1562 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_imlib_color");
1566 #ifndef TOLUA_RELEASE
1568 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_imlib_color'.",&tolua_err);
1572 #endif //#ifndef TOLUA_DISABLE
1574 /* function: imlib_context_get_color_range */
1575 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_color_range00
1576 static int tolua_imlib2_imlib_context_get_color_range00(lua_State* tolua_S)
1578 #ifndef TOLUA_RELEASE
1579 tolua_Error tolua_err;
1581 !tolua_isnoobj(tolua_S,1,&tolua_err)
1588 _userdata tolua_ret = ( _userdata) imlib_context_get_color_range();
1589 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
1593 #ifndef TOLUA_RELEASE
1595 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_color_range'.",&tolua_err);
1599 #endif //#ifndef TOLUA_DISABLE
1601 /* function: imlib_context_get_progress_function */
1602 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_progress_function00
1603 static int tolua_imlib2_imlib_context_get_progress_function00(lua_State* tolua_S)
1605 #ifndef TOLUA_RELEASE
1606 tolua_Error tolua_err;
1608 !tolua_isnoobj(tolua_S,1,&tolua_err)
1615 Imlib_Progress_Function tolua_ret = (Imlib_Progress_Function) imlib_context_get_progress_function();
1618 void* tolua_obj = Mtolua_new((Imlib_Progress_Function)(tolua_ret));
1619 tolua_pushusertype(tolua_S,tolua_obj,"Imlib_Progress_Function");
1620 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1622 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Imlib_Progress_Function));
1623 tolua_pushusertype(tolua_S,tolua_obj,"Imlib_Progress_Function");
1624 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1630 #ifndef TOLUA_RELEASE
1632 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_progress_function'.",&tolua_err);
1636 #endif //#ifndef TOLUA_DISABLE
1638 /* function: imlib_context_get_progress_granularity */
1639 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_progress_granularity00
1640 static int tolua_imlib2_imlib_context_get_progress_granularity00(lua_State* tolua_S)
1642 #ifndef TOLUA_RELEASE
1643 tolua_Error tolua_err;
1645 !tolua_isnoobj(tolua_S,1,&tolua_err)
1652 char tolua_ret = (char) imlib_context_get_progress_granularity();
1653 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1657 #ifndef TOLUA_RELEASE
1659 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_progress_granularity'.",&tolua_err);
1663 #endif //#ifndef TOLUA_DISABLE
1665 /* function: imlib_context_get_image */
1666 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_image00
1667 static int tolua_imlib2_imlib_context_get_image00(lua_State* tolua_S)
1669 #ifndef TOLUA_RELEASE
1670 tolua_Error tolua_err;
1672 !tolua_isnoobj(tolua_S,1,&tolua_err)
1679 _userdata tolua_ret = ( _userdata) imlib_context_get_image();
1680 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
1684 #ifndef TOLUA_RELEASE
1686 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_image'.",&tolua_err);
1690 #endif //#ifndef TOLUA_DISABLE
1692 /* function: imlib_context_get_cliprect */
1693 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_cliprect00
1694 static int tolua_imlib2_imlib_context_get_cliprect00(lua_State* tolua_S)
1696 #ifndef TOLUA_RELEASE
1697 tolua_Error tolua_err;
1699 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
1700 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1701 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1702 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
1703 !tolua_isnoobj(tolua_S,5,&tolua_err)
1709 int x = ((int) tolua_tonumber(tolua_S,1,0));
1710 int y = ((int) tolua_tonumber(tolua_S,2,0));
1711 int w = ((int) tolua_tonumber(tolua_S,3,0));
1712 int h = ((int) tolua_tonumber(tolua_S,4,0));
1714 imlib_context_get_cliprect(&x,&y,&w,&h);
1715 tolua_pushnumber(tolua_S,(lua_Number)x);
1716 tolua_pushnumber(tolua_S,(lua_Number)y);
1717 tolua_pushnumber(tolua_S,(lua_Number)w);
1718 tolua_pushnumber(tolua_S,(lua_Number)h);
1722 #ifndef TOLUA_RELEASE
1724 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_cliprect'.",&tolua_err);
1728 #endif //#ifndef TOLUA_DISABLE
1730 /* function: imlib_context_get_TTF_encoding */
1731 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_TTF_encoding00
1732 static int tolua_imlib2_imlib_context_get_TTF_encoding00(lua_State* tolua_S)
1734 #ifndef TOLUA_RELEASE
1735 tolua_Error tolua_err;
1737 !tolua_isnoobj(tolua_S,1,&tolua_err)
1744 Imlib_TTF_Encoding tolua_ret = (Imlib_TTF_Encoding) imlib_context_get_TTF_encoding();
1745 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1749 #ifndef TOLUA_RELEASE
1751 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_TTF_encoding'.",&tolua_err);
1755 #endif //#ifndef TOLUA_DISABLE
1757 /* function: imlib_get_cache_size */
1758 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_cache_size00
1759 static int tolua_imlib2_imlib_get_cache_size00(lua_State* tolua_S)
1761 #ifndef TOLUA_RELEASE
1762 tolua_Error tolua_err;
1764 !tolua_isnoobj(tolua_S,1,&tolua_err)
1771 int tolua_ret = (int) imlib_get_cache_size();
1772 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1776 #ifndef TOLUA_RELEASE
1778 tolua_error(tolua_S,"#ferror in function 'imlib_get_cache_size'.",&tolua_err);
1782 #endif //#ifndef TOLUA_DISABLE
1784 /* function: imlib_set_cache_size */
1785 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_set_cache_size00
1786 static int tolua_imlib2_imlib_set_cache_size00(lua_State* tolua_S)
1788 #ifndef TOLUA_RELEASE
1789 tolua_Error tolua_err;
1791 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
1792 !tolua_isnoobj(tolua_S,2,&tolua_err)
1798 int bytes = ((int) tolua_tonumber(tolua_S,1,0));
1800 imlib_set_cache_size(bytes);
1804 #ifndef TOLUA_RELEASE
1806 tolua_error(tolua_S,"#ferror in function 'imlib_set_cache_size'.",&tolua_err);
1810 #endif //#ifndef TOLUA_DISABLE
1812 /* function: imlib_get_color_usage */
1813 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_color_usage00
1814 static int tolua_imlib2_imlib_get_color_usage00(lua_State* tolua_S)
1816 #ifndef TOLUA_RELEASE
1817 tolua_Error tolua_err;
1819 !tolua_isnoobj(tolua_S,1,&tolua_err)
1826 int tolua_ret = (int) imlib_get_color_usage();
1827 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1831 #ifndef TOLUA_RELEASE
1833 tolua_error(tolua_S,"#ferror in function 'imlib_get_color_usage'.",&tolua_err);
1837 #endif //#ifndef TOLUA_DISABLE
1839 /* function: imlib_set_color_usage */
1840 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_set_color_usage00
1841 static int tolua_imlib2_imlib_set_color_usage00(lua_State* tolua_S)
1843 #ifndef TOLUA_RELEASE
1844 tolua_Error tolua_err;
1846 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
1847 !tolua_isnoobj(tolua_S,2,&tolua_err)
1853 int max = ((int) tolua_tonumber(tolua_S,1,0));
1855 imlib_set_color_usage(max);
1859 #ifndef TOLUA_RELEASE
1861 tolua_error(tolua_S,"#ferror in function 'imlib_set_color_usage'.",&tolua_err);
1865 #endif //#ifndef TOLUA_DISABLE
1867 /* function: imlib_flush_loaders */
1868 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_flush_loaders00
1869 static int tolua_imlib2_imlib_flush_loaders00(lua_State* tolua_S)
1871 #ifndef TOLUA_RELEASE
1872 tolua_Error tolua_err;
1874 !tolua_isnoobj(tolua_S,1,&tolua_err)
1881 imlib_flush_loaders();
1885 #ifndef TOLUA_RELEASE
1887 tolua_error(tolua_S,"#ferror in function 'imlib_flush_loaders'.",&tolua_err);
1891 #endif //#ifndef TOLUA_DISABLE
1893 /* function: imlib_get_visual_depth */
1894 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_visual_depth00
1895 static int tolua_imlib2_imlib_get_visual_depth00(lua_State* tolua_S)
1897 #ifndef TOLUA_RELEASE
1898 tolua_Error tolua_err;
1900 !tolua_isusertype(tolua_S,1,"Display",0,&tolua_err) ||
1901 !tolua_isusertype(tolua_S,2,"Visual",0,&tolua_err) ||
1902 !tolua_isnoobj(tolua_S,3,&tolua_err)
1908 Display* display = ((Display*) tolua_tousertype(tolua_S,1,0));
1909 Visual* visual = ((Visual*) tolua_tousertype(tolua_S,2,0));
1911 int tolua_ret = (int) imlib_get_visual_depth(display,visual);
1912 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1916 #ifndef TOLUA_RELEASE
1918 tolua_error(tolua_S,"#ferror in function 'imlib_get_visual_depth'.",&tolua_err);
1922 #endif //#ifndef TOLUA_DISABLE
1924 /* function: imlib_get_best_visual */
1925 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_best_visual00
1926 static int tolua_imlib2_imlib_get_best_visual00(lua_State* tolua_S)
1928 #ifndef TOLUA_RELEASE
1929 tolua_Error tolua_err;
1931 !tolua_isusertype(tolua_S,1,"Display",0,&tolua_err) ||
1932 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1933 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1934 !tolua_isnoobj(tolua_S,4,&tolua_err)
1940 Display* display = ((Display*) tolua_tousertype(tolua_S,1,0));
1941 int screen = ((int) tolua_tonumber(tolua_S,2,0));
1942 int depth_return = ((int) tolua_tonumber(tolua_S,3,0));
1944 Visual* tolua_ret = (Visual*) imlib_get_best_visual(display,screen,&depth_return);
1945 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Visual");
1946 tolua_pushnumber(tolua_S,(lua_Number)depth_return);
1950 #ifndef TOLUA_RELEASE
1952 tolua_error(tolua_S,"#ferror in function 'imlib_get_best_visual'.",&tolua_err);
1956 #endif //#ifndef TOLUA_DISABLE
1958 /* function: imlib_load_image */
1959 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_load_image00
1960 static int tolua_imlib2_imlib_load_image00(lua_State* tolua_S)
1962 #ifndef TOLUA_RELEASE
1963 tolua_Error tolua_err;
1965 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
1966 !tolua_isnoobj(tolua_S,2,&tolua_err)
1972 const char* file = ((const char*) tolua_tostring(tolua_S,1,0));
1974 _userdata tolua_ret = ( _userdata) imlib_load_image(file);
1975 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
1979 #ifndef TOLUA_RELEASE
1981 tolua_error(tolua_S,"#ferror in function 'imlib_load_image'.",&tolua_err);
1985 #endif //#ifndef TOLUA_DISABLE
1987 /* function: imlib_load_image_immediately */
1988 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_load_image_immediately00
1989 static int tolua_imlib2_imlib_load_image_immediately00(lua_State* tolua_S)
1991 #ifndef TOLUA_RELEASE
1992 tolua_Error tolua_err;
1994 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
1995 !tolua_isnoobj(tolua_S,2,&tolua_err)
2001 const char* file = ((const char*) tolua_tostring(tolua_S,1,0));
2003 _userdata tolua_ret = ( _userdata) imlib_load_image_immediately(file);
2004 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
2008 #ifndef TOLUA_RELEASE
2010 tolua_error(tolua_S,"#ferror in function 'imlib_load_image_immediately'.",&tolua_err);
2014 #endif //#ifndef TOLUA_DISABLE
2016 /* function: imlib_load_image_without_cache */
2017 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_load_image_without_cache00
2018 static int tolua_imlib2_imlib_load_image_without_cache00(lua_State* tolua_S)
2020 #ifndef TOLUA_RELEASE
2021 tolua_Error tolua_err;
2023 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
2024 !tolua_isnoobj(tolua_S,2,&tolua_err)
2030 const char* file = ((const char*) tolua_tostring(tolua_S,1,0));
2032 _userdata tolua_ret = ( _userdata) imlib_load_image_without_cache(file);
2033 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
2037 #ifndef TOLUA_RELEASE
2039 tolua_error(tolua_S,"#ferror in function 'imlib_load_image_without_cache'.",&tolua_err);
2043 #endif //#ifndef TOLUA_DISABLE
2045 /* function: imlib_load_image_immediately_without_cache */
2046 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_load_image_immediately_without_cache00
2047 static int tolua_imlib2_imlib_load_image_immediately_without_cache00(lua_State* tolua_S)
2049 #ifndef TOLUA_RELEASE
2050 tolua_Error tolua_err;
2052 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
2053 !tolua_isnoobj(tolua_S,2,&tolua_err)
2059 const char* file = ((const char*) tolua_tostring(tolua_S,1,0));
2061 _userdata tolua_ret = ( _userdata) imlib_load_image_immediately_without_cache(file);
2062 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
2066 #ifndef TOLUA_RELEASE
2068 tolua_error(tolua_S,"#ferror in function 'imlib_load_image_immediately_without_cache'.",&tolua_err);
2072 #endif //#ifndef TOLUA_DISABLE
2074 /* function: imlib_load_image_with_error_return */
2075 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_load_image_with_error_return00
2076 static int tolua_imlib2_imlib_load_image_with_error_return00(lua_State* tolua_S)
2078 #ifndef TOLUA_RELEASE
2079 tolua_Error tolua_err;
2081 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
2082 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2083 !tolua_isnoobj(tolua_S,3,&tolua_err)
2089 const char* file = ((const char*) tolua_tostring(tolua_S,1,0));
2090 Imlib_Load_Error error_return = ((Imlib_Load_Error) (int) tolua_tonumber(tolua_S,2,0));
2092 _userdata tolua_ret = ( _userdata) imlib_load_image_with_error_return(file,&error_return);
2093 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
2094 tolua_pushnumber(tolua_S,(lua_Number)error_return);
2098 #ifndef TOLUA_RELEASE
2100 tolua_error(tolua_S,"#ferror in function 'imlib_load_image_with_error_return'.",&tolua_err);
2104 #endif //#ifndef TOLUA_DISABLE
2106 /* function: imlib_free_image */
2107 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_free_image00
2108 static int tolua_imlib2_imlib_free_image00(lua_State* tolua_S)
2110 #ifndef TOLUA_RELEASE
2111 tolua_Error tolua_err;
2113 !tolua_isnoobj(tolua_S,1,&tolua_err)
2124 #ifndef TOLUA_RELEASE
2126 tolua_error(tolua_S,"#ferror in function 'imlib_free_image'.",&tolua_err);
2130 #endif //#ifndef TOLUA_DISABLE
2132 /* function: imlib_free_image_and_decache */
2133 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_free_image_and_decache00
2134 static int tolua_imlib2_imlib_free_image_and_decache00(lua_State* tolua_S)
2136 #ifndef TOLUA_RELEASE
2137 tolua_Error tolua_err;
2139 !tolua_isnoobj(tolua_S,1,&tolua_err)
2146 imlib_free_image_and_decache();
2150 #ifndef TOLUA_RELEASE
2152 tolua_error(tolua_S,"#ferror in function 'imlib_free_image_and_decache'.",&tolua_err);
2156 #endif //#ifndef TOLUA_DISABLE
2158 /* function: imlib_image_get_width */
2159 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_get_width00
2160 static int tolua_imlib2_imlib_image_get_width00(lua_State* tolua_S)
2162 #ifndef TOLUA_RELEASE
2163 tolua_Error tolua_err;
2165 !tolua_isnoobj(tolua_S,1,&tolua_err)
2172 int tolua_ret = (int) imlib_image_get_width();
2173 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
2177 #ifndef TOLUA_RELEASE
2179 tolua_error(tolua_S,"#ferror in function 'imlib_image_get_width'.",&tolua_err);
2183 #endif //#ifndef TOLUA_DISABLE
2185 /* function: imlib_image_get_height */
2186 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_get_height00
2187 static int tolua_imlib2_imlib_image_get_height00(lua_State* tolua_S)
2189 #ifndef TOLUA_RELEASE
2190 tolua_Error tolua_err;
2192 !tolua_isnoobj(tolua_S,1,&tolua_err)
2199 int tolua_ret = (int) imlib_image_get_height();
2200 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
2204 #ifndef TOLUA_RELEASE
2206 tolua_error(tolua_S,"#ferror in function 'imlib_image_get_height'.",&tolua_err);
2210 #endif //#ifndef TOLUA_DISABLE
2212 /* function: imlib_image_get_filename */
2213 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_get_filename00
2214 static int tolua_imlib2_imlib_image_get_filename00(lua_State* tolua_S)
2216 #ifndef TOLUA_RELEASE
2217 tolua_Error tolua_err;
2219 !tolua_isnoobj(tolua_S,1,&tolua_err)
2226 const char* tolua_ret = (const char*) imlib_image_get_filename();
2227 tolua_pushstring(tolua_S,(const char*)tolua_ret);
2231 #ifndef TOLUA_RELEASE
2233 tolua_error(tolua_S,"#ferror in function 'imlib_image_get_filename'.",&tolua_err);
2237 #endif //#ifndef TOLUA_DISABLE
2239 /* function: imlib_image_get_data */
2240 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_get_data00
2241 static int tolua_imlib2_imlib_image_get_data00(lua_State* tolua_S)
2243 #ifndef TOLUA_RELEASE
2244 tolua_Error tolua_err;
2246 !tolua_isnoobj(tolua_S,1,&tolua_err)
2253 void* tolua_ret = (void*) imlib_image_get_data();
2254 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
2258 #ifndef TOLUA_RELEASE
2260 tolua_error(tolua_S,"#ferror in function 'imlib_image_get_data'.",&tolua_err);
2264 #endif //#ifndef TOLUA_DISABLE
2266 /* function: imlib_image_get_data_for_reading_only */
2267 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_get_data_for_reading_only00
2268 static int tolua_imlib2_imlib_image_get_data_for_reading_only00(lua_State* tolua_S)
2270 #ifndef TOLUA_RELEASE
2271 tolua_Error tolua_err;
2273 !tolua_isnoobj(tolua_S,1,&tolua_err)
2280 void* tolua_ret = (void*) imlib_image_get_data_for_reading_only();
2281 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
2285 #ifndef TOLUA_RELEASE
2287 tolua_error(tolua_S,"#ferror in function 'imlib_image_get_data_for_reading_only'.",&tolua_err);
2291 #endif //#ifndef TOLUA_DISABLE
2293 /* function: imlib_image_put_back_data */
2294 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_put_back_data00
2295 static int tolua_imlib2_imlib_image_put_back_data00(lua_State* tolua_S)
2297 #ifndef TOLUA_RELEASE
2298 tolua_Error tolua_err;
2300 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2301 !tolua_isnoobj(tolua_S,2,&tolua_err)
2307 unsigned int data = ((unsigned int) tolua_tonumber(tolua_S,1,0));
2309 imlib_image_put_back_data(&data);
2310 tolua_pushnumber(tolua_S,(lua_Number)data);
2314 #ifndef TOLUA_RELEASE
2316 tolua_error(tolua_S,"#ferror in function 'imlib_image_put_back_data'.",&tolua_err);
2320 #endif //#ifndef TOLUA_DISABLE
2322 /* function: imlib_image_has_alpha */
2323 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_has_alpha00
2324 static int tolua_imlib2_imlib_image_has_alpha00(lua_State* tolua_S)
2326 #ifndef TOLUA_RELEASE
2327 tolua_Error tolua_err;
2329 !tolua_isnoobj(tolua_S,1,&tolua_err)
2336 char tolua_ret = (char) imlib_image_has_alpha();
2337 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
2341 #ifndef TOLUA_RELEASE
2343 tolua_error(tolua_S,"#ferror in function 'imlib_image_has_alpha'.",&tolua_err);
2347 #endif //#ifndef TOLUA_DISABLE
2349 /* function: imlib_image_set_changes_on_disk */
2350 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_set_changes_on_disk00
2351 static int tolua_imlib2_imlib_image_set_changes_on_disk00(lua_State* tolua_S)
2353 #ifndef TOLUA_RELEASE
2354 tolua_Error tolua_err;
2356 !tolua_isnoobj(tolua_S,1,&tolua_err)
2363 imlib_image_set_changes_on_disk();
2367 #ifndef TOLUA_RELEASE
2369 tolua_error(tolua_S,"#ferror in function 'imlib_image_set_changes_on_disk'.",&tolua_err);
2373 #endif //#ifndef TOLUA_DISABLE
2375 /* function: imlib_image_get_border */
2376 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_get_border00
2377 static int tolua_imlib2_imlib_image_get_border00(lua_State* tolua_S)
2379 #ifndef TOLUA_RELEASE
2380 tolua_Error tolua_err;
2382 !tolua_isusertype(tolua_S,1,"_imlib_border",0,&tolua_err) ||
2383 !tolua_isnoobj(tolua_S,2,&tolua_err)
2389 struct _imlib_border* border = (( struct _imlib_border*) tolua_tousertype(tolua_S,1,0));
2391 imlib_image_get_border(border);
2395 #ifndef TOLUA_RELEASE
2397 tolua_error(tolua_S,"#ferror in function 'imlib_image_get_border'.",&tolua_err);
2401 #endif //#ifndef TOLUA_DISABLE
2403 /* function: imlib_image_set_border */
2404 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_set_border00
2405 static int tolua_imlib2_imlib_image_set_border00(lua_State* tolua_S)
2407 #ifndef TOLUA_RELEASE
2408 tolua_Error tolua_err;
2410 !tolua_isusertype(tolua_S,1,"_imlib_border",0,&tolua_err) ||
2411 !tolua_isnoobj(tolua_S,2,&tolua_err)
2417 struct _imlib_border* border = (( struct _imlib_border*) tolua_tousertype(tolua_S,1,0));
2419 imlib_image_set_border(border);
2423 #ifndef TOLUA_RELEASE
2425 tolua_error(tolua_S,"#ferror in function 'imlib_image_set_border'.",&tolua_err);
2429 #endif //#ifndef TOLUA_DISABLE
2431 /* function: imlib_image_set_format */
2432 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_set_format00
2433 static int tolua_imlib2_imlib_image_set_format00(lua_State* tolua_S)
2435 #ifndef TOLUA_RELEASE
2436 tolua_Error tolua_err;
2438 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
2439 !tolua_isnoobj(tolua_S,2,&tolua_err)
2445 const char* format = ((const char*) tolua_tostring(tolua_S,1,0));
2447 imlib_image_set_format(format);
2451 #ifndef TOLUA_RELEASE
2453 tolua_error(tolua_S,"#ferror in function 'imlib_image_set_format'.",&tolua_err);
2457 #endif //#ifndef TOLUA_DISABLE
2459 /* function: imlib_image_set_irrelevant_format */
2460 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_set_irrelevant_format00
2461 static int tolua_imlib2_imlib_image_set_irrelevant_format00(lua_State* tolua_S)
2463 #ifndef TOLUA_RELEASE
2464 tolua_Error tolua_err;
2466 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2467 !tolua_isnoobj(tolua_S,2,&tolua_err)
2473 char irrelevant = ((char) tolua_tonumber(tolua_S,1,0));
2475 imlib_image_set_irrelevant_format(irrelevant);
2479 #ifndef TOLUA_RELEASE
2481 tolua_error(tolua_S,"#ferror in function 'imlib_image_set_irrelevant_format'.",&tolua_err);
2485 #endif //#ifndef TOLUA_DISABLE
2487 /* function: imlib_image_set_irrelevant_border */
2488 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_set_irrelevant_border00
2489 static int tolua_imlib2_imlib_image_set_irrelevant_border00(lua_State* tolua_S)
2491 #ifndef TOLUA_RELEASE
2492 tolua_Error tolua_err;
2494 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2495 !tolua_isnoobj(tolua_S,2,&tolua_err)
2501 char irrelevant = ((char) tolua_tonumber(tolua_S,1,0));
2503 imlib_image_set_irrelevant_border(irrelevant);
2507 #ifndef TOLUA_RELEASE
2509 tolua_error(tolua_S,"#ferror in function 'imlib_image_set_irrelevant_border'.",&tolua_err);
2513 #endif //#ifndef TOLUA_DISABLE
2515 /* function: imlib_image_set_irrelevant_alpha */
2516 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_set_irrelevant_alpha00
2517 static int tolua_imlib2_imlib_image_set_irrelevant_alpha00(lua_State* tolua_S)
2519 #ifndef TOLUA_RELEASE
2520 tolua_Error tolua_err;
2522 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2523 !tolua_isnoobj(tolua_S,2,&tolua_err)
2529 char irrelevant = ((char) tolua_tonumber(tolua_S,1,0));
2531 imlib_image_set_irrelevant_alpha(irrelevant);
2535 #ifndef TOLUA_RELEASE
2537 tolua_error(tolua_S,"#ferror in function 'imlib_image_set_irrelevant_alpha'.",&tolua_err);
2541 #endif //#ifndef TOLUA_DISABLE
2543 /* function: imlib_image_format */
2544 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_format00
2545 static int tolua_imlib2_imlib_image_format00(lua_State* tolua_S)
2547 #ifndef TOLUA_RELEASE
2548 tolua_Error tolua_err;
2550 !tolua_isnoobj(tolua_S,1,&tolua_err)
2557 char* tolua_ret = (char*) imlib_image_format();
2558 tolua_pushstring(tolua_S,(const char*)tolua_ret);
2562 #ifndef TOLUA_RELEASE
2564 tolua_error(tolua_S,"#ferror in function 'imlib_image_format'.",&tolua_err);
2568 #endif //#ifndef TOLUA_DISABLE
2570 /* function: imlib_image_set_has_alpha */
2571 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_set_has_alpha00
2572 static int tolua_imlib2_imlib_image_set_has_alpha00(lua_State* tolua_S)
2574 #ifndef TOLUA_RELEASE
2575 tolua_Error tolua_err;
2577 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2578 !tolua_isnoobj(tolua_S,2,&tolua_err)
2584 char has_alpha = ((char) tolua_tonumber(tolua_S,1,0));
2586 imlib_image_set_has_alpha(has_alpha);
2590 #ifndef TOLUA_RELEASE
2592 tolua_error(tolua_S,"#ferror in function 'imlib_image_set_has_alpha'.",&tolua_err);
2596 #endif //#ifndef TOLUA_DISABLE
2598 /* function: imlib_image_query_pixel */
2599 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_query_pixel00
2600 static int tolua_imlib2_imlib_image_query_pixel00(lua_State* tolua_S)
2602 #ifndef TOLUA_RELEASE
2603 tolua_Error tolua_err;
2605 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2606 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2607 !tolua_isusertype(tolua_S,3,"_imlib_color",0,&tolua_err) ||
2608 !tolua_isnoobj(tolua_S,4,&tolua_err)
2614 int x = ((int) tolua_tonumber(tolua_S,1,0));
2615 int y = ((int) tolua_tonumber(tolua_S,2,0));
2616 struct _imlib_color* color_return = (( struct _imlib_color*) tolua_tousertype(tolua_S,3,0));
2618 imlib_image_query_pixel(x,y,color_return);
2622 #ifndef TOLUA_RELEASE
2624 tolua_error(tolua_S,"#ferror in function 'imlib_image_query_pixel'.",&tolua_err);
2628 #endif //#ifndef TOLUA_DISABLE
2630 /* function: imlib_image_query_pixel_hsva */
2631 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_query_pixel_hsva00
2632 static int tolua_imlib2_imlib_image_query_pixel_hsva00(lua_State* tolua_S)
2634 #ifndef TOLUA_RELEASE
2635 tolua_Error tolua_err;
2637 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2638 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2639 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2640 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
2641 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
2642 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
2643 !tolua_isnoobj(tolua_S,7,&tolua_err)
2649 int x = ((int) tolua_tonumber(tolua_S,1,0));
2650 int y = ((int) tolua_tonumber(tolua_S,2,0));
2651 float hue = ((float) tolua_tonumber(tolua_S,3,0));
2652 float saturation = ((float) tolua_tonumber(tolua_S,4,0));
2653 float value = ((float) tolua_tonumber(tolua_S,5,0));
2654 int alpha = ((int) tolua_tonumber(tolua_S,6,0));
2656 imlib_image_query_pixel_hsva(x,y,&hue,&saturation,&value,&alpha);
2657 tolua_pushnumber(tolua_S,(lua_Number)hue);
2658 tolua_pushnumber(tolua_S,(lua_Number)saturation);
2659 tolua_pushnumber(tolua_S,(lua_Number)value);
2660 tolua_pushnumber(tolua_S,(lua_Number)alpha);
2664 #ifndef TOLUA_RELEASE
2666 tolua_error(tolua_S,"#ferror in function 'imlib_image_query_pixel_hsva'.",&tolua_err);
2670 #endif //#ifndef TOLUA_DISABLE
2672 /* function: imlib_image_query_pixel_hlsa */
2673 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_query_pixel_hlsa00
2674 static int tolua_imlib2_imlib_image_query_pixel_hlsa00(lua_State* tolua_S)
2676 #ifndef TOLUA_RELEASE
2677 tolua_Error tolua_err;
2679 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2680 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2681 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2682 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
2683 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
2684 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
2685 !tolua_isnoobj(tolua_S,7,&tolua_err)
2691 int x = ((int) tolua_tonumber(tolua_S,1,0));
2692 int y = ((int) tolua_tonumber(tolua_S,2,0));
2693 float hue = ((float) tolua_tonumber(tolua_S,3,0));
2694 float lightness = ((float) tolua_tonumber(tolua_S,4,0));
2695 float saturation = ((float) tolua_tonumber(tolua_S,5,0));
2696 int alpha = ((int) tolua_tonumber(tolua_S,6,0));
2698 imlib_image_query_pixel_hlsa(x,y,&hue,&lightness,&saturation,&alpha);
2699 tolua_pushnumber(tolua_S,(lua_Number)hue);
2700 tolua_pushnumber(tolua_S,(lua_Number)lightness);
2701 tolua_pushnumber(tolua_S,(lua_Number)saturation);
2702 tolua_pushnumber(tolua_S,(lua_Number)alpha);
2706 #ifndef TOLUA_RELEASE
2708 tolua_error(tolua_S,"#ferror in function 'imlib_image_query_pixel_hlsa'.",&tolua_err);
2712 #endif //#ifndef TOLUA_DISABLE
2714 /* function: imlib_image_query_pixel_cmya */
2715 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_query_pixel_cmya00
2716 static int tolua_imlib2_imlib_image_query_pixel_cmya00(lua_State* tolua_S)
2718 #ifndef TOLUA_RELEASE
2719 tolua_Error tolua_err;
2721 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2722 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2723 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2724 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
2725 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
2726 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
2727 !tolua_isnoobj(tolua_S,7,&tolua_err)
2733 int x = ((int) tolua_tonumber(tolua_S,1,0));
2734 int y = ((int) tolua_tonumber(tolua_S,2,0));
2735 int cyan = ((int) tolua_tonumber(tolua_S,3,0));
2736 int magenta = ((int) tolua_tonumber(tolua_S,4,0));
2737 int yellow = ((int) tolua_tonumber(tolua_S,5,0));
2738 int alpha = ((int) tolua_tonumber(tolua_S,6,0));
2740 imlib_image_query_pixel_cmya(x,y,&cyan,&magenta,&yellow,&alpha);
2741 tolua_pushnumber(tolua_S,(lua_Number)cyan);
2742 tolua_pushnumber(tolua_S,(lua_Number)magenta);
2743 tolua_pushnumber(tolua_S,(lua_Number)yellow);
2744 tolua_pushnumber(tolua_S,(lua_Number)alpha);
2748 #ifndef TOLUA_RELEASE
2750 tolua_error(tolua_S,"#ferror in function 'imlib_image_query_pixel_cmya'.",&tolua_err);
2754 #endif //#ifndef TOLUA_DISABLE
2756 /* function: imlib_render_pixmaps_for_whole_image */
2757 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_render_pixmaps_for_whole_image00
2758 static int tolua_imlib2_imlib_render_pixmaps_for_whole_image00(lua_State* tolua_S)
2760 #ifndef TOLUA_RELEASE
2761 tolua_Error tolua_err;
2763 !tolua_isusertype(tolua_S,1,"Pixmap",0,&tolua_err) ||
2764 !tolua_isusertype(tolua_S,2,"Pixmap",0,&tolua_err) ||
2765 !tolua_isnoobj(tolua_S,3,&tolua_err)
2771 Pixmap* pixmap_return = ((Pixmap*) tolua_tousertype(tolua_S,1,0));
2772 Pixmap* mask_return = ((Pixmap*) tolua_tousertype(tolua_S,2,0));
2774 imlib_render_pixmaps_for_whole_image(pixmap_return,mask_return);
2778 #ifndef TOLUA_RELEASE
2780 tolua_error(tolua_S,"#ferror in function 'imlib_render_pixmaps_for_whole_image'.",&tolua_err);
2784 #endif //#ifndef TOLUA_DISABLE
2786 /* function: imlib_render_pixmaps_for_whole_image_at_size */
2787 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_render_pixmaps_for_whole_image_at_size00
2788 static int tolua_imlib2_imlib_render_pixmaps_for_whole_image_at_size00(lua_State* tolua_S)
2790 #ifndef TOLUA_RELEASE
2791 tolua_Error tolua_err;
2793 !tolua_isusertype(tolua_S,1,"Pixmap",0,&tolua_err) ||
2794 !tolua_isusertype(tolua_S,2,"Pixmap",0,&tolua_err) ||
2795 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2796 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
2797 !tolua_isnoobj(tolua_S,5,&tolua_err)
2803 Pixmap* pixmap_return = ((Pixmap*) tolua_tousertype(tolua_S,1,0));
2804 Pixmap* mask_return = ((Pixmap*) tolua_tousertype(tolua_S,2,0));
2805 int width = ((int) tolua_tonumber(tolua_S,3,0));
2806 int height = ((int) tolua_tonumber(tolua_S,4,0));
2808 imlib_render_pixmaps_for_whole_image_at_size(pixmap_return,mask_return,width,height);
2812 #ifndef TOLUA_RELEASE
2814 tolua_error(tolua_S,"#ferror in function 'imlib_render_pixmaps_for_whole_image_at_size'.",&tolua_err);
2818 #endif //#ifndef TOLUA_DISABLE
2820 /* function: imlib_free_pixmap_and_mask */
2821 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_free_pixmap_and_mask00
2822 static int tolua_imlib2_imlib_free_pixmap_and_mask00(lua_State* tolua_S)
2824 #ifndef TOLUA_RELEASE
2825 tolua_Error tolua_err;
2827 (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"Pixmap",0,&tolua_err)) ||
2828 !tolua_isnoobj(tolua_S,2,&tolua_err)
2834 Pixmap pixmap = *((Pixmap*) tolua_tousertype(tolua_S,1,0));
2836 imlib_free_pixmap_and_mask(pixmap);
2840 #ifndef TOLUA_RELEASE
2842 tolua_error(tolua_S,"#ferror in function 'imlib_free_pixmap_and_mask'.",&tolua_err);
2846 #endif //#ifndef TOLUA_DISABLE
2848 /* function: imlib_render_image_on_drawable */
2849 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_render_image_on_drawable00
2850 static int tolua_imlib2_imlib_render_image_on_drawable00(lua_State* tolua_S)
2852 #ifndef TOLUA_RELEASE
2853 tolua_Error tolua_err;
2855 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2856 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2857 !tolua_isnoobj(tolua_S,3,&tolua_err)
2863 int x = ((int) tolua_tonumber(tolua_S,1,0));
2864 int y = ((int) tolua_tonumber(tolua_S,2,0));
2866 imlib_render_image_on_drawable(x,y);
2870 #ifndef TOLUA_RELEASE
2872 tolua_error(tolua_S,"#ferror in function 'imlib_render_image_on_drawable'.",&tolua_err);
2876 #endif //#ifndef TOLUA_DISABLE
2878 /* function: imlib_render_image_on_drawable_at_size */
2879 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_render_image_on_drawable_at_size00
2880 static int tolua_imlib2_imlib_render_image_on_drawable_at_size00(lua_State* tolua_S)
2882 #ifndef TOLUA_RELEASE
2883 tolua_Error tolua_err;
2885 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2886 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2887 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2888 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
2889 !tolua_isnoobj(tolua_S,5,&tolua_err)
2895 int x = ((int) tolua_tonumber(tolua_S,1,0));
2896 int y = ((int) tolua_tonumber(tolua_S,2,0));
2897 int width = ((int) tolua_tonumber(tolua_S,3,0));
2898 int height = ((int) tolua_tonumber(tolua_S,4,0));
2900 imlib_render_image_on_drawable_at_size(x,y,width,height);
2904 #ifndef TOLUA_RELEASE
2906 tolua_error(tolua_S,"#ferror in function 'imlib_render_image_on_drawable_at_size'.",&tolua_err);
2910 #endif //#ifndef TOLUA_DISABLE
2912 /* function: imlib_render_image_part_on_drawable_at_size */
2913 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_render_image_part_on_drawable_at_size00
2914 static int tolua_imlib2_imlib_render_image_part_on_drawable_at_size00(lua_State* tolua_S)
2916 #ifndef TOLUA_RELEASE
2917 tolua_Error tolua_err;
2919 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2920 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2921 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2922 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
2923 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
2924 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
2925 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
2926 !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
2927 !tolua_isnoobj(tolua_S,9,&tolua_err)
2933 int source_x = ((int) tolua_tonumber(tolua_S,1,0));
2934 int source_y = ((int) tolua_tonumber(tolua_S,2,0));
2935 int source_width = ((int) tolua_tonumber(tolua_S,3,0));
2936 int source_height = ((int) tolua_tonumber(tolua_S,4,0));
2937 int x = ((int) tolua_tonumber(tolua_S,5,0));
2938 int y = ((int) tolua_tonumber(tolua_S,6,0));
2939 int width = ((int) tolua_tonumber(tolua_S,7,0));
2940 int height = ((int) tolua_tonumber(tolua_S,8,0));
2942 imlib_render_image_part_on_drawable_at_size(source_x,source_y,source_width,source_height,x,y,width,height);
2946 #ifndef TOLUA_RELEASE
2948 tolua_error(tolua_S,"#ferror in function 'imlib_render_image_part_on_drawable_at_size'.",&tolua_err);
2952 #endif //#ifndef TOLUA_DISABLE
2954 /* function: imlib_render_get_pixel_color */
2955 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_render_get_pixel_color00
2956 static int tolua_imlib2_imlib_render_get_pixel_color00(lua_State* tolua_S)
2958 #ifndef TOLUA_RELEASE
2959 tolua_Error tolua_err;
2961 !tolua_isnoobj(tolua_S,1,&tolua_err)
2968 unsigned int tolua_ret = (unsigned int) imlib_render_get_pixel_color();
2969 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
2973 #ifndef TOLUA_RELEASE
2975 tolua_error(tolua_S,"#ferror in function 'imlib_render_get_pixel_color'.",&tolua_err);
2979 #endif //#ifndef TOLUA_DISABLE
2981 /* function: imlib_blend_image_onto_image */
2982 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_blend_image_onto_image00
2983 static int tolua_imlib2_imlib_blend_image_onto_image00(lua_State* tolua_S)
2985 #ifndef TOLUA_RELEASE
2986 tolua_Error tolua_err;
2988 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
2989 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2990 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2991 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
2992 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
2993 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
2994 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
2995 !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
2996 !tolua_isnumber(tolua_S,9,0,&tolua_err) ||
2997 !tolua_isnumber(tolua_S,10,0,&tolua_err) ||
2998 !tolua_isnoobj(tolua_S,11,&tolua_err)
3004 _userdata source_image = (( _userdata) tolua_touserdata(tolua_S,1,0));
3005 char merge_alpha = ((char) tolua_tonumber(tolua_S,2,0));
3006 int source_x = ((int) tolua_tonumber(tolua_S,3,0));
3007 int source_y = ((int) tolua_tonumber(tolua_S,4,0));
3008 int source_width = ((int) tolua_tonumber(tolua_S,5,0));
3009 int source_height = ((int) tolua_tonumber(tolua_S,6,0));
3010 int destination_x = ((int) tolua_tonumber(tolua_S,7,0));
3011 int destination_y = ((int) tolua_tonumber(tolua_S,8,0));
3012 int destination_width = ((int) tolua_tonumber(tolua_S,9,0));
3013 int destination_height = ((int) tolua_tonumber(tolua_S,10,0));
3015 imlib_blend_image_onto_image(source_image,merge_alpha,source_x,source_y,source_width,source_height,destination_x,destination_y,destination_width,destination_height);
3019 #ifndef TOLUA_RELEASE
3021 tolua_error(tolua_S,"#ferror in function 'imlib_blend_image_onto_image'.",&tolua_err);
3025 #endif //#ifndef TOLUA_DISABLE
3027 /* function: imlib_create_image */
3028 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_image00
3029 static int tolua_imlib2_imlib_create_image00(lua_State* tolua_S)
3031 #ifndef TOLUA_RELEASE
3032 tolua_Error tolua_err;
3034 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
3035 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3036 !tolua_isnoobj(tolua_S,3,&tolua_err)
3042 int width = ((int) tolua_tonumber(tolua_S,1,0));
3043 int height = ((int) tolua_tonumber(tolua_S,2,0));
3045 _userdata tolua_ret = ( _userdata) imlib_create_image(width,height);
3046 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3050 #ifndef TOLUA_RELEASE
3052 tolua_error(tolua_S,"#ferror in function 'imlib_create_image'.",&tolua_err);
3056 #endif //#ifndef TOLUA_DISABLE
3058 /* function: imlib_create_image_using_data */
3059 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_image_using_data00
3060 static int tolua_imlib2_imlib_create_image_using_data00(lua_State* tolua_S)
3062 #ifndef TOLUA_RELEASE
3063 tolua_Error tolua_err;
3065 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
3066 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3067 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3068 !tolua_isnoobj(tolua_S,4,&tolua_err)
3074 int width = ((int) tolua_tonumber(tolua_S,1,0));
3075 int height = ((int) tolua_tonumber(tolua_S,2,0));
3076 unsigned int data = ((unsigned int) tolua_tonumber(tolua_S,3,0));
3078 _userdata tolua_ret = ( _userdata) imlib_create_image_using_data(width,height,&data);
3079 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3080 tolua_pushnumber(tolua_S,(lua_Number)data);
3084 #ifndef TOLUA_RELEASE
3086 tolua_error(tolua_S,"#ferror in function 'imlib_create_image_using_data'.",&tolua_err);
3090 #endif //#ifndef TOLUA_DISABLE
3092 /* function: imlib_create_image_using_copied_data */
3093 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_image_using_copied_data00
3094 static int tolua_imlib2_imlib_create_image_using_copied_data00(lua_State* tolua_S)
3096 #ifndef TOLUA_RELEASE
3097 tolua_Error tolua_err;
3099 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
3100 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3101 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3102 !tolua_isnoobj(tolua_S,4,&tolua_err)
3108 int width = ((int) tolua_tonumber(tolua_S,1,0));
3109 int height = ((int) tolua_tonumber(tolua_S,2,0));
3110 unsigned int data = ((unsigned int) tolua_tonumber(tolua_S,3,0));
3112 _userdata tolua_ret = ( _userdata) imlib_create_image_using_copied_data(width,height,&data);
3113 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3114 tolua_pushnumber(tolua_S,(lua_Number)data);
3118 #ifndef TOLUA_RELEASE
3120 tolua_error(tolua_S,"#ferror in function 'imlib_create_image_using_copied_data'.",&tolua_err);
3124 #endif //#ifndef TOLUA_DISABLE
3126 /* function: imlib_create_image_from_drawable */
3127 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_image_from_drawable00
3128 static int tolua_imlib2_imlib_create_image_from_drawable00(lua_State* tolua_S)
3130 #ifndef TOLUA_RELEASE
3131 tolua_Error tolua_err;
3133 (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"Pixmap",0,&tolua_err)) ||
3134 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3135 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3136 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
3137 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
3138 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
3139 !tolua_isnoobj(tolua_S,7,&tolua_err)
3145 Pixmap mask = *((Pixmap*) tolua_tousertype(tolua_S,1,0));
3146 int x = ((int) tolua_tonumber(tolua_S,2,0));
3147 int y = ((int) tolua_tonumber(tolua_S,3,0));
3148 int width = ((int) tolua_tonumber(tolua_S,4,0));
3149 int height = ((int) tolua_tonumber(tolua_S,5,0));
3150 char need_to_grab_x = ((char) tolua_tonumber(tolua_S,6,0));
3152 _userdata tolua_ret = ( _userdata) imlib_create_image_from_drawable(mask,x,y,width,height,need_to_grab_x);
3153 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3157 #ifndef TOLUA_RELEASE
3159 tolua_error(tolua_S,"#ferror in function 'imlib_create_image_from_drawable'.",&tolua_err);
3163 #endif //#ifndef TOLUA_DISABLE
3165 /* function: imlib_create_image_from_ximage */
3166 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_image_from_ximage00
3167 static int tolua_imlib2_imlib_create_image_from_ximage00(lua_State* tolua_S)
3169 #ifndef TOLUA_RELEASE
3170 tolua_Error tolua_err;
3172 !tolua_isusertype(tolua_S,1,"XImage",0,&tolua_err) ||
3173 !tolua_isusertype(tolua_S,2,"XImage",0,&tolua_err) ||
3174 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3175 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
3176 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
3177 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
3178 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
3179 !tolua_isnoobj(tolua_S,8,&tolua_err)
3185 XImage* image = ((XImage*) tolua_tousertype(tolua_S,1,0));
3186 XImage* mask = ((XImage*) tolua_tousertype(tolua_S,2,0));
3187 int x = ((int) tolua_tonumber(tolua_S,3,0));
3188 int y = ((int) tolua_tonumber(tolua_S,4,0));
3189 int width = ((int) tolua_tonumber(tolua_S,5,0));
3190 int height = ((int) tolua_tonumber(tolua_S,6,0));
3191 char need_to_grab_x = ((char) tolua_tonumber(tolua_S,7,0));
3193 _userdata tolua_ret = ( _userdata) imlib_create_image_from_ximage(image,mask,x,y,width,height,need_to_grab_x);
3194 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3198 #ifndef TOLUA_RELEASE
3200 tolua_error(tolua_S,"#ferror in function 'imlib_create_image_from_ximage'.",&tolua_err);
3204 #endif //#ifndef TOLUA_DISABLE
3206 /* function: imlib_create_scaled_image_from_drawable */
3207 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_scaled_image_from_drawable00
3208 static int tolua_imlib2_imlib_create_scaled_image_from_drawable00(lua_State* tolua_S)
3210 #ifndef TOLUA_RELEASE
3211 tolua_Error tolua_err;
3213 (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"Pixmap",0,&tolua_err)) ||
3214 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3215 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3216 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
3217 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
3218 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
3219 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
3220 !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
3221 !tolua_isnumber(tolua_S,9,0,&tolua_err) ||
3222 !tolua_isnoobj(tolua_S,10,&tolua_err)
3228 Pixmap mask = *((Pixmap*) tolua_tousertype(tolua_S,1,0));
3229 int source_x = ((int) tolua_tonumber(tolua_S,2,0));
3230 int source_y = ((int) tolua_tonumber(tolua_S,3,0));
3231 int source_width = ((int) tolua_tonumber(tolua_S,4,0));
3232 int source_height = ((int) tolua_tonumber(tolua_S,5,0));
3233 int destination_width = ((int) tolua_tonumber(tolua_S,6,0));
3234 int destination_height = ((int) tolua_tonumber(tolua_S,7,0));
3235 char need_to_grab_x = ((char) tolua_tonumber(tolua_S,8,0));
3236 char get_mask_from_shape = ((char) tolua_tonumber(tolua_S,9,0));
3238 _userdata tolua_ret = ( _userdata) imlib_create_scaled_image_from_drawable(mask,source_x,source_y,source_width,source_height,destination_width,destination_height,need_to_grab_x,get_mask_from_shape);
3239 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3243 #ifndef TOLUA_RELEASE
3245 tolua_error(tolua_S,"#ferror in function 'imlib_create_scaled_image_from_drawable'.",&tolua_err);
3249 #endif //#ifndef TOLUA_DISABLE
3251 /* function: imlib_copy_drawable_to_image */
3252 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_copy_drawable_to_image00
3253 static int tolua_imlib2_imlib_copy_drawable_to_image00(lua_State* tolua_S)
3255 #ifndef TOLUA_RELEASE
3256 tolua_Error tolua_err;
3258 (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"Pixmap",0,&tolua_err)) ||
3259 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3260 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3261 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
3262 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
3263 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
3264 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
3265 !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
3266 !tolua_isnoobj(tolua_S,9,&tolua_err)
3272 Pixmap mask = *((Pixmap*) tolua_tousertype(tolua_S,1,0));
3273 int x = ((int) tolua_tonumber(tolua_S,2,0));
3274 int y = ((int) tolua_tonumber(tolua_S,3,0));
3275 int width = ((int) tolua_tonumber(tolua_S,4,0));
3276 int height = ((int) tolua_tonumber(tolua_S,5,0));
3277 int destination_x = ((int) tolua_tonumber(tolua_S,6,0));
3278 int destination_y = ((int) tolua_tonumber(tolua_S,7,0));
3279 char need_to_grab_x = ((char) tolua_tonumber(tolua_S,8,0));
3281 char tolua_ret = (char) imlib_copy_drawable_to_image(mask,x,y,width,height,destination_x,destination_y,need_to_grab_x);
3282 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
3286 #ifndef TOLUA_RELEASE
3288 tolua_error(tolua_S,"#ferror in function 'imlib_copy_drawable_to_image'.",&tolua_err);
3292 #endif //#ifndef TOLUA_DISABLE
3294 /* function: imlib_clone_image */
3295 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_clone_image00
3296 static int tolua_imlib2_imlib_clone_image00(lua_State* tolua_S)
3298 #ifndef TOLUA_RELEASE
3299 tolua_Error tolua_err;
3301 !tolua_isnoobj(tolua_S,1,&tolua_err)
3308 _userdata tolua_ret = ( _userdata) imlib_clone_image();
3309 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3313 #ifndef TOLUA_RELEASE
3315 tolua_error(tolua_S,"#ferror in function 'imlib_clone_image'.",&tolua_err);
3319 #endif //#ifndef TOLUA_DISABLE
3321 /* function: imlib_create_cropped_image */
3322 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_cropped_image00
3323 static int tolua_imlib2_imlib_create_cropped_image00(lua_State* tolua_S)
3325 #ifndef TOLUA_RELEASE
3326 tolua_Error tolua_err;
3328 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
3329 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3330 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3331 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
3332 !tolua_isnoobj(tolua_S,5,&tolua_err)
3338 int x = ((int) tolua_tonumber(tolua_S,1,0));
3339 int y = ((int) tolua_tonumber(tolua_S,2,0));
3340 int width = ((int) tolua_tonumber(tolua_S,3,0));
3341 int height = ((int) tolua_tonumber(tolua_S,4,0));
3343 _userdata tolua_ret = ( _userdata) imlib_create_cropped_image(x,y,width,height);
3344 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3348 #ifndef TOLUA_RELEASE
3350 tolua_error(tolua_S,"#ferror in function 'imlib_create_cropped_image'.",&tolua_err);
3354 #endif //#ifndef TOLUA_DISABLE
3356 /* function: imlib_create_cropped_scaled_image */
3357 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_cropped_scaled_image00
3358 static int tolua_imlib2_imlib_create_cropped_scaled_image00(lua_State* tolua_S)
3360 #ifndef TOLUA_RELEASE
3361 tolua_Error tolua_err;
3363 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
3364 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3365 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3366 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
3367 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
3368 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
3369 !tolua_isnoobj(tolua_S,7,&tolua_err)
3375 int source_x = ((int) tolua_tonumber(tolua_S,1,0));
3376 int source_y = ((int) tolua_tonumber(tolua_S,2,0));
3377 int source_width = ((int) tolua_tonumber(tolua_S,3,0));
3378 int source_height = ((int) tolua_tonumber(tolua_S,4,0));
3379 int destination_width = ((int) tolua_tonumber(tolua_S,5,0));
3380 int destination_height = ((int) tolua_tonumber(tolua_S,6,0));
3382 _userdata tolua_ret = ( _userdata) imlib_create_cropped_scaled_image(source_x,source_y,source_width,source_height,destination_width,destination_height);
3383 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3387 #ifndef TOLUA_RELEASE
3389 tolua_error(tolua_S,"#ferror in function 'imlib_create_cropped_scaled_image'.",&tolua_err);
3393 #endif //#ifndef TOLUA_DISABLE
3395 /* function: imlib_updates_clone */
3396 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_updates_clone00
3397 static int tolua_imlib2_imlib_updates_clone00(lua_State* tolua_S)
3399 #ifndef TOLUA_RELEASE
3400 tolua_Error tolua_err;
3402 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
3403 !tolua_isnoobj(tolua_S,2,&tolua_err)
3409 _userdata updates = (( _userdata) tolua_touserdata(tolua_S,1,0));
3411 _userdata tolua_ret = ( _userdata) imlib_updates_clone(updates);
3412 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3416 #ifndef TOLUA_RELEASE
3418 tolua_error(tolua_S,"#ferror in function 'imlib_updates_clone'.",&tolua_err);
3422 #endif //#ifndef TOLUA_DISABLE
3424 /* function: imlib_update_append_rect */
3425 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_update_append_rect00
3426 static int tolua_imlib2_imlib_update_append_rect00(lua_State* tolua_S)
3428 #ifndef TOLUA_RELEASE
3429 tolua_Error tolua_err;
3431 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
3432 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3433 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3434 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
3435 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
3436 !tolua_isnoobj(tolua_S,6,&tolua_err)
3442 _userdata updates = (( _userdata) tolua_touserdata(tolua_S,1,0));
3443 int x = ((int) tolua_tonumber(tolua_S,2,0));
3444 int y = ((int) tolua_tonumber(tolua_S,3,0));
3445 int w = ((int) tolua_tonumber(tolua_S,4,0));
3446 int h = ((int) tolua_tonumber(tolua_S,5,0));
3448 _userdata tolua_ret = ( _userdata) imlib_update_append_rect(updates,x,y,w,h);
3449 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3453 #ifndef TOLUA_RELEASE
3455 tolua_error(tolua_S,"#ferror in function 'imlib_update_append_rect'.",&tolua_err);
3459 #endif //#ifndef TOLUA_DISABLE
3461 /* function: imlib_updates_merge */
3462 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_updates_merge00
3463 static int tolua_imlib2_imlib_updates_merge00(lua_State* tolua_S)
3465 #ifndef TOLUA_RELEASE
3466 tolua_Error tolua_err;
3468 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
3469 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3470 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3471 !tolua_isnoobj(tolua_S,4,&tolua_err)
3477 _userdata updates = (( _userdata) tolua_touserdata(tolua_S,1,0));
3478 int w = ((int) tolua_tonumber(tolua_S,2,0));
3479 int h = ((int) tolua_tonumber(tolua_S,3,0));
3481 _userdata tolua_ret = ( _userdata) imlib_updates_merge(updates,w,h);
3482 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3486 #ifndef TOLUA_RELEASE
3488 tolua_error(tolua_S,"#ferror in function 'imlib_updates_merge'.",&tolua_err);
3492 #endif //#ifndef TOLUA_DISABLE
3494 /* function: imlib_updates_merge_for_rendering */
3495 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_updates_merge_for_rendering00
3496 static int tolua_imlib2_imlib_updates_merge_for_rendering00(lua_State* tolua_S)
3498 #ifndef TOLUA_RELEASE
3499 tolua_Error tolua_err;
3501 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
3502 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3503 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3504 !tolua_isnoobj(tolua_S,4,&tolua_err)
3510 _userdata updates = (( _userdata) tolua_touserdata(tolua_S,1,0));
3511 int w = ((int) tolua_tonumber(tolua_S,2,0));
3512 int h = ((int) tolua_tonumber(tolua_S,3,0));
3514 _userdata tolua_ret = ( _userdata) imlib_updates_merge_for_rendering(updates,w,h);
3515 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3519 #ifndef TOLUA_RELEASE
3521 tolua_error(tolua_S,"#ferror in function 'imlib_updates_merge_for_rendering'.",&tolua_err);
3525 #endif //#ifndef TOLUA_DISABLE
3527 /* function: imlib_updates_free */
3528 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_updates_free00
3529 static int tolua_imlib2_imlib_updates_free00(lua_State* tolua_S)
3531 #ifndef TOLUA_RELEASE
3532 tolua_Error tolua_err;
3534 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
3535 !tolua_isnoobj(tolua_S,2,&tolua_err)
3541 _userdata updates = (( _userdata) tolua_touserdata(tolua_S,1,0));
3543 imlib_updates_free(updates);
3547 #ifndef TOLUA_RELEASE
3549 tolua_error(tolua_S,"#ferror in function 'imlib_updates_free'.",&tolua_err);
3553 #endif //#ifndef TOLUA_DISABLE
3555 /* function: imlib_updates_get_next */
3556 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_updates_get_next00
3557 static int tolua_imlib2_imlib_updates_get_next00(lua_State* tolua_S)
3559 #ifndef TOLUA_RELEASE
3560 tolua_Error tolua_err;
3562 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
3563 !tolua_isnoobj(tolua_S,2,&tolua_err)
3569 _userdata updates = (( _userdata) tolua_touserdata(tolua_S,1,0));
3571 _userdata tolua_ret = ( _userdata) imlib_updates_get_next(updates);
3572 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3576 #ifndef TOLUA_RELEASE
3578 tolua_error(tolua_S,"#ferror in function 'imlib_updates_get_next'.",&tolua_err);
3582 #endif //#ifndef TOLUA_DISABLE
3584 /* function: imlib_updates_get_coordinates */
3585 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_updates_get_coordinates00
3586 static int tolua_imlib2_imlib_updates_get_coordinates00(lua_State* tolua_S)
3588 #ifndef TOLUA_RELEASE
3589 tolua_Error tolua_err;
3591 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
3592 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3593 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3594 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
3595 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
3596 !tolua_isnoobj(tolua_S,6,&tolua_err)
3602 _userdata updates = (( _userdata) tolua_touserdata(tolua_S,1,0));
3603 int x_return = ((int) tolua_tonumber(tolua_S,2,0));
3604 int y_return = ((int) tolua_tonumber(tolua_S,3,0));
3605 int width_return = ((int) tolua_tonumber(tolua_S,4,0));
3606 int height_return = ((int) tolua_tonumber(tolua_S,5,0));
3608 imlib_updates_get_coordinates(updates,&x_return,&y_return,&width_return,&height_return);
3609 tolua_pushnumber(tolua_S,(lua_Number)x_return);
3610 tolua_pushnumber(tolua_S,(lua_Number)y_return);
3611 tolua_pushnumber(tolua_S,(lua_Number)width_return);
3612 tolua_pushnumber(tolua_S,(lua_Number)height_return);
3616 #ifndef TOLUA_RELEASE
3618 tolua_error(tolua_S,"#ferror in function 'imlib_updates_get_coordinates'.",&tolua_err);
3622 #endif //#ifndef TOLUA_DISABLE
3624 /* function: imlib_updates_set_coordinates */
3625 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_updates_set_coordinates00
3626 static int tolua_imlib2_imlib_updates_set_coordinates00(lua_State* tolua_S)
3628 #ifndef TOLUA_RELEASE
3629 tolua_Error tolua_err;
3631 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
3632 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3633 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3634 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
3635 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
3636 !tolua_isnoobj(tolua_S,6,&tolua_err)
3642 _userdata updates = (( _userdata) tolua_touserdata(tolua_S,1,0));
3643 int x = ((int) tolua_tonumber(tolua_S,2,0));
3644 int y = ((int) tolua_tonumber(tolua_S,3,0));
3645 int width = ((int) tolua_tonumber(tolua_S,4,0));
3646 int height = ((int) tolua_tonumber(tolua_S,5,0));
3648 imlib_updates_set_coordinates(updates,x,y,width,height);
3652 #ifndef TOLUA_RELEASE
3654 tolua_error(tolua_S,"#ferror in function 'imlib_updates_set_coordinates'.",&tolua_err);
3658 #endif //#ifndef TOLUA_DISABLE
3660 /* function: imlib_render_image_updates_on_drawable */
3661 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_render_image_updates_on_drawable00
3662 static int tolua_imlib2_imlib_render_image_updates_on_drawable00(lua_State* tolua_S)
3664 #ifndef TOLUA_RELEASE
3665 tolua_Error tolua_err;
3667 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
3668 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3669 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3670 !tolua_isnoobj(tolua_S,4,&tolua_err)
3676 _userdata updates = (( _userdata) tolua_touserdata(tolua_S,1,0));
3677 int x = ((int) tolua_tonumber(tolua_S,2,0));
3678 int y = ((int) tolua_tonumber(tolua_S,3,0));
3680 imlib_render_image_updates_on_drawable(updates,x,y);
3684 #ifndef TOLUA_RELEASE
3686 tolua_error(tolua_S,"#ferror in function 'imlib_render_image_updates_on_drawable'.",&tolua_err);
3690 #endif //#ifndef TOLUA_DISABLE
3692 /* function: imlib_updates_init */
3693 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_updates_init00
3694 static int tolua_imlib2_imlib_updates_init00(lua_State* tolua_S)
3696 #ifndef TOLUA_RELEASE
3697 tolua_Error tolua_err;
3699 !tolua_isnoobj(tolua_S,1,&tolua_err)
3706 _userdata tolua_ret = ( _userdata) imlib_updates_init();
3707 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3711 #ifndef TOLUA_RELEASE
3713 tolua_error(tolua_S,"#ferror in function 'imlib_updates_init'.",&tolua_err);
3717 #endif //#ifndef TOLUA_DISABLE
3719 /* function: imlib_updates_append_updates */
3720 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_updates_append_updates00
3721 static int tolua_imlib2_imlib_updates_append_updates00(lua_State* tolua_S)
3723 #ifndef TOLUA_RELEASE
3724 tolua_Error tolua_err;
3726 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
3727 !tolua_isuserdata(tolua_S,2,0,&tolua_err) ||
3728 !tolua_isnoobj(tolua_S,3,&tolua_err)
3734 _userdata updates = (( _userdata) tolua_touserdata(tolua_S,1,0));
3735 _userdata appended_updates = (( _userdata) tolua_touserdata(tolua_S,2,0));
3737 _userdata tolua_ret = ( _userdata) imlib_updates_append_updates(updates,appended_updates);
3738 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3742 #ifndef TOLUA_RELEASE
3744 tolua_error(tolua_S,"#ferror in function 'imlib_updates_append_updates'.",&tolua_err);
3748 #endif //#ifndef TOLUA_DISABLE
3750 /* function: imlib_image_flip_horizontal */
3751 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_flip_horizontal00
3752 static int tolua_imlib2_imlib_image_flip_horizontal00(lua_State* tolua_S)
3754 #ifndef TOLUA_RELEASE
3755 tolua_Error tolua_err;
3757 !tolua_isnoobj(tolua_S,1,&tolua_err)
3764 imlib_image_flip_horizontal();
3768 #ifndef TOLUA_RELEASE
3770 tolua_error(tolua_S,"#ferror in function 'imlib_image_flip_horizontal'.",&tolua_err);
3774 #endif //#ifndef TOLUA_DISABLE
3776 /* function: imlib_image_flip_vertical */
3777 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_flip_vertical00
3778 static int tolua_imlib2_imlib_image_flip_vertical00(lua_State* tolua_S)
3780 #ifndef TOLUA_RELEASE
3781 tolua_Error tolua_err;
3783 !tolua_isnoobj(tolua_S,1,&tolua_err)
3790 imlib_image_flip_vertical();
3794 #ifndef TOLUA_RELEASE
3796 tolua_error(tolua_S,"#ferror in function 'imlib_image_flip_vertical'.",&tolua_err);
3800 #endif //#ifndef TOLUA_DISABLE
3802 /* function: imlib_image_flip_diagonal */
3803 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_flip_diagonal00
3804 static int tolua_imlib2_imlib_image_flip_diagonal00(lua_State* tolua_S)
3806 #ifndef TOLUA_RELEASE
3807 tolua_Error tolua_err;
3809 !tolua_isnoobj(tolua_S,1,&tolua_err)
3816 imlib_image_flip_diagonal();
3820 #ifndef TOLUA_RELEASE
3822 tolua_error(tolua_S,"#ferror in function 'imlib_image_flip_diagonal'.",&tolua_err);
3826 #endif //#ifndef TOLUA_DISABLE
3828 /* function: imlib_image_orientate */
3829 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_orientate00
3830 static int tolua_imlib2_imlib_image_orientate00(lua_State* tolua_S)
3832 #ifndef TOLUA_RELEASE
3833 tolua_Error tolua_err;
3835 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
3836 !tolua_isnoobj(tolua_S,2,&tolua_err)
3842 int orientation = ((int) tolua_tonumber(tolua_S,1,0));
3844 imlib_image_orientate(orientation);
3848 #ifndef TOLUA_RELEASE
3850 tolua_error(tolua_S,"#ferror in function 'imlib_image_orientate'.",&tolua_err);
3854 #endif //#ifndef TOLUA_DISABLE
3856 /* function: imlib_image_blur */
3857 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_blur00
3858 static int tolua_imlib2_imlib_image_blur00(lua_State* tolua_S)
3860 #ifndef TOLUA_RELEASE
3861 tolua_Error tolua_err;
3863 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
3864 !tolua_isnoobj(tolua_S,2,&tolua_err)
3870 int radius = ((int) tolua_tonumber(tolua_S,1,0));
3872 imlib_image_blur(radius);
3876 #ifndef TOLUA_RELEASE
3878 tolua_error(tolua_S,"#ferror in function 'imlib_image_blur'.",&tolua_err);
3882 #endif //#ifndef TOLUA_DISABLE
3884 /* function: imlib_image_sharpen */
3885 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_sharpen00
3886 static int tolua_imlib2_imlib_image_sharpen00(lua_State* tolua_S)
3888 #ifndef TOLUA_RELEASE
3889 tolua_Error tolua_err;
3891 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
3892 !tolua_isnoobj(tolua_S,2,&tolua_err)
3898 int radius = ((int) tolua_tonumber(tolua_S,1,0));
3900 imlib_image_sharpen(radius);
3904 #ifndef TOLUA_RELEASE
3906 tolua_error(tolua_S,"#ferror in function 'imlib_image_sharpen'.",&tolua_err);
3910 #endif //#ifndef TOLUA_DISABLE
3912 /* function: imlib_image_tile_horizontal */
3913 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_tile_horizontal00
3914 static int tolua_imlib2_imlib_image_tile_horizontal00(lua_State* tolua_S)
3916 #ifndef TOLUA_RELEASE
3917 tolua_Error tolua_err;
3919 !tolua_isnoobj(tolua_S,1,&tolua_err)
3926 imlib_image_tile_horizontal();
3930 #ifndef TOLUA_RELEASE
3932 tolua_error(tolua_S,"#ferror in function 'imlib_image_tile_horizontal'.",&tolua_err);
3936 #endif //#ifndef TOLUA_DISABLE
3938 /* function: imlib_image_tile_vertical */
3939 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_tile_vertical00
3940 static int tolua_imlib2_imlib_image_tile_vertical00(lua_State* tolua_S)
3942 #ifndef TOLUA_RELEASE
3943 tolua_Error tolua_err;
3945 !tolua_isnoobj(tolua_S,1,&tolua_err)
3952 imlib_image_tile_vertical();
3956 #ifndef TOLUA_RELEASE
3958 tolua_error(tolua_S,"#ferror in function 'imlib_image_tile_vertical'.",&tolua_err);
3962 #endif //#ifndef TOLUA_DISABLE
3964 /* function: imlib_image_tile */
3965 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_tile00
3966 static int tolua_imlib2_imlib_image_tile00(lua_State* tolua_S)
3968 #ifndef TOLUA_RELEASE
3969 tolua_Error tolua_err;
3971 !tolua_isnoobj(tolua_S,1,&tolua_err)
3982 #ifndef TOLUA_RELEASE
3984 tolua_error(tolua_S,"#ferror in function 'imlib_image_tile'.",&tolua_err);
3988 #endif //#ifndef TOLUA_DISABLE
3990 /* function: imlib_load_font */
3991 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_load_font00
3992 static int tolua_imlib2_imlib_load_font00(lua_State* tolua_S)
3994 #ifndef TOLUA_RELEASE
3995 tolua_Error tolua_err;
3997 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
3998 !tolua_isnoobj(tolua_S,2,&tolua_err)
4004 const char* font_name = ((const char*) tolua_tostring(tolua_S,1,0));
4006 _userdata tolua_ret = ( _userdata) imlib_load_font(font_name);
4007 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
4011 #ifndef TOLUA_RELEASE
4013 tolua_error(tolua_S,"#ferror in function 'imlib_load_font'.",&tolua_err);
4017 #endif //#ifndef TOLUA_DISABLE
4019 /* function: imlib_free_font */
4020 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_free_font00
4021 static int tolua_imlib2_imlib_free_font00(lua_State* tolua_S)
4023 #ifndef TOLUA_RELEASE
4024 tolua_Error tolua_err;
4026 !tolua_isnoobj(tolua_S,1,&tolua_err)
4037 #ifndef TOLUA_RELEASE
4039 tolua_error(tolua_S,"#ferror in function 'imlib_free_font'.",&tolua_err);
4043 #endif //#ifndef TOLUA_DISABLE
4045 /* function: imlib_insert_font_into_fallback_chain */
4046 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_insert_font_into_fallback_chain00
4047 static int tolua_imlib2_imlib_insert_font_into_fallback_chain00(lua_State* tolua_S)
4049 #ifndef TOLUA_RELEASE
4050 tolua_Error tolua_err;
4052 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
4053 !tolua_isuserdata(tolua_S,2,0,&tolua_err) ||
4054 !tolua_isnoobj(tolua_S,3,&tolua_err)
4060 _userdata font = (( _userdata) tolua_touserdata(tolua_S,1,0));
4061 _userdata fallback_font = (( _userdata) tolua_touserdata(tolua_S,2,0));
4063 int tolua_ret = (int) imlib_insert_font_into_fallback_chain(font,fallback_font);
4064 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4068 #ifndef TOLUA_RELEASE
4070 tolua_error(tolua_S,"#ferror in function 'imlib_insert_font_into_fallback_chain'.",&tolua_err);
4074 #endif //#ifndef TOLUA_DISABLE
4076 /* function: imlib_remove_font_from_fallback_chain */
4077 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_remove_font_from_fallback_chain00
4078 static int tolua_imlib2_imlib_remove_font_from_fallback_chain00(lua_State* tolua_S)
4080 #ifndef TOLUA_RELEASE
4081 tolua_Error tolua_err;
4083 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
4084 !tolua_isnoobj(tolua_S,2,&tolua_err)
4090 _userdata fallback_font = (( _userdata) tolua_touserdata(tolua_S,1,0));
4092 imlib_remove_font_from_fallback_chain(fallback_font);
4096 #ifndef TOLUA_RELEASE
4098 tolua_error(tolua_S,"#ferror in function 'imlib_remove_font_from_fallback_chain'.",&tolua_err);
4102 #endif //#ifndef TOLUA_DISABLE
4104 /* function: imlib_get_prev_font_in_fallback_chain */
4105 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_prev_font_in_fallback_chain00
4106 static int tolua_imlib2_imlib_get_prev_font_in_fallback_chain00(lua_State* tolua_S)
4108 #ifndef TOLUA_RELEASE
4109 tolua_Error tolua_err;
4111 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
4112 !tolua_isnoobj(tolua_S,2,&tolua_err)
4118 _userdata fn = (( _userdata) tolua_touserdata(tolua_S,1,0));
4120 _userdata tolua_ret = ( _userdata) imlib_get_prev_font_in_fallback_chain(fn);
4121 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
4125 #ifndef TOLUA_RELEASE
4127 tolua_error(tolua_S,"#ferror in function 'imlib_get_prev_font_in_fallback_chain'.",&tolua_err);
4131 #endif //#ifndef TOLUA_DISABLE
4133 /* function: imlib_get_next_font_in_fallback_chain */
4134 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_next_font_in_fallback_chain00
4135 static int tolua_imlib2_imlib_get_next_font_in_fallback_chain00(lua_State* tolua_S)
4137 #ifndef TOLUA_RELEASE
4138 tolua_Error tolua_err;
4140 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
4141 !tolua_isnoobj(tolua_S,2,&tolua_err)
4147 _userdata fn = (( _userdata) tolua_touserdata(tolua_S,1,0));
4149 _userdata tolua_ret = ( _userdata) imlib_get_next_font_in_fallback_chain(fn);
4150 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
4154 #ifndef TOLUA_RELEASE
4156 tolua_error(tolua_S,"#ferror in function 'imlib_get_next_font_in_fallback_chain'.",&tolua_err);
4160 #endif //#ifndef TOLUA_DISABLE
4162 /* function: imlib_text_draw */
4163 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_text_draw00
4164 static int tolua_imlib2_imlib_text_draw00(lua_State* tolua_S)
4166 #ifndef TOLUA_RELEASE
4167 tolua_Error tolua_err;
4169 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
4170 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
4171 !tolua_isstring(tolua_S,3,0,&tolua_err) ||
4172 !tolua_isnoobj(tolua_S,4,&tolua_err)
4178 int x = ((int) tolua_tonumber(tolua_S,1,0));
4179 int y = ((int) tolua_tonumber(tolua_S,2,0));
4180 const char* text = ((const char*) tolua_tostring(tolua_S,3,0));
4182 imlib_text_draw(x,y,text);
4186 #ifndef TOLUA_RELEASE
4188 tolua_error(tolua_S,"#ferror in function 'imlib_text_draw'.",&tolua_err);
4192 #endif //#ifndef TOLUA_DISABLE
4194 /* function: imlib_text_draw_with_return_metrics */
4195 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_text_draw_with_return_metrics00
4196 static int tolua_imlib2_imlib_text_draw_with_return_metrics00(lua_State* tolua_S)
4198 #ifndef TOLUA_RELEASE
4199 tolua_Error tolua_err;
4201 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
4202 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
4203 !tolua_isstring(tolua_S,3,0,&tolua_err) ||
4204 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
4205 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
4206 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
4207 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
4208 !tolua_isnoobj(tolua_S,8,&tolua_err)
4214 int x = ((int) tolua_tonumber(tolua_S,1,0));
4215 int y = ((int) tolua_tonumber(tolua_S,2,0));
4216 const char* text = ((const char*) tolua_tostring(tolua_S,3,0));
4217 int width_return = ((int) tolua_tonumber(tolua_S,4,0));
4218 int height_return = ((int) tolua_tonumber(tolua_S,5,0));
4219 int horizontal_advance_return = ((int) tolua_tonumber(tolua_S,6,0));
4220 int vertical_advance_return = ((int) tolua_tonumber(tolua_S,7,0));
4222 imlib_text_draw_with_return_metrics(x,y,text,&width_return,&height_return,&horizontal_advance_return,&vertical_advance_return);
4223 tolua_pushnumber(tolua_S,(lua_Number)width_return);
4224 tolua_pushnumber(tolua_S,(lua_Number)height_return);
4225 tolua_pushnumber(tolua_S,(lua_Number)horizontal_advance_return);
4226 tolua_pushnumber(tolua_S,(lua_Number)vertical_advance_return);
4230 #ifndef TOLUA_RELEASE
4232 tolua_error(tolua_S,"#ferror in function 'imlib_text_draw_with_return_metrics'.",&tolua_err);
4236 #endif //#ifndef TOLUA_DISABLE
4238 /* function: imlib_get_text_size */
4239 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_text_size00
4240 static int tolua_imlib2_imlib_get_text_size00(lua_State* tolua_S)
4242 #ifndef TOLUA_RELEASE
4243 tolua_Error tolua_err;
4245 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
4246 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
4247 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
4248 !tolua_isnoobj(tolua_S,4,&tolua_err)
4254 const char* text = ((const char*) tolua_tostring(tolua_S,1,0));
4255 int width_return = ((int) tolua_tonumber(tolua_S,2,0));
4256 int height_return = ((int) tolua_tonumber(tolua_S,3,0));
4258 imlib_get_text_size(text,&width_return,&height_return);
4259 tolua_pushnumber(tolua_S,(lua_Number)width_return);
4260 tolua_pushnumber(tolua_S,(lua_Number)height_return);
4264 #ifndef TOLUA_RELEASE
4266 tolua_error(tolua_S,"#ferror in function 'imlib_get_text_size'.",&tolua_err);
4270 #endif //#ifndef TOLUA_DISABLE
4272 /* function: imlib_get_text_advance */
4273 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_text_advance00
4274 static int tolua_imlib2_imlib_get_text_advance00(lua_State* tolua_S)
4276 #ifndef TOLUA_RELEASE
4277 tolua_Error tolua_err;
4279 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
4280 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
4281 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
4282 !tolua_isnoobj(tolua_S,4,&tolua_err)
4288 const char* text = ((const char*) tolua_tostring(tolua_S,1,0));
4289 int horizontal_advance_return = ((int) tolua_tonumber(tolua_S,2,0));
4290 int vertical_advance_return = ((int) tolua_tonumber(tolua_S,3,0));
4292 imlib_get_text_advance(text,&horizontal_advance_return,&vertical_advance_return);
4293 tolua_pushnumber(tolua_S,(lua_Number)horizontal_advance_return);
4294 tolua_pushnumber(tolua_S,(lua_Number)vertical_advance_return);
4298 #ifndef TOLUA_RELEASE
4300 tolua_error(tolua_S,"#ferror in function 'imlib_get_text_advance'.",&tolua_err);
4304 #endif //#ifndef TOLUA_DISABLE
4306 /* function: imlib_get_text_inset */
4307 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_text_inset00
4308 static int tolua_imlib2_imlib_get_text_inset00(lua_State* tolua_S)
4310 #ifndef TOLUA_RELEASE
4311 tolua_Error tolua_err;
4313 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
4314 !tolua_isnoobj(tolua_S,2,&tolua_err)
4320 const char* text = ((const char*) tolua_tostring(tolua_S,1,0));
4322 int tolua_ret = (int) imlib_get_text_inset(text);
4323 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4327 #ifndef TOLUA_RELEASE
4329 tolua_error(tolua_S,"#ferror in function 'imlib_get_text_inset'.",&tolua_err);
4333 #endif //#ifndef TOLUA_DISABLE
4335 /* function: imlib_add_path_to_font_path */
4336 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_add_path_to_font_path00
4337 static int tolua_imlib2_imlib_add_path_to_font_path00(lua_State* tolua_S)
4339 #ifndef TOLUA_RELEASE
4340 tolua_Error tolua_err;
4342 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
4343 !tolua_isnoobj(tolua_S,2,&tolua_err)
4349 const char* path = ((const char*) tolua_tostring(tolua_S,1,0));
4351 imlib_add_path_to_font_path(path);
4355 #ifndef TOLUA_RELEASE
4357 tolua_error(tolua_S,"#ferror in function 'imlib_add_path_to_font_path'.",&tolua_err);
4361 #endif //#ifndef TOLUA_DISABLE
4363 /* function: imlib_remove_path_from_font_path */
4364 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_remove_path_from_font_path00
4365 static int tolua_imlib2_imlib_remove_path_from_font_path00(lua_State* tolua_S)
4367 #ifndef TOLUA_RELEASE
4368 tolua_Error tolua_err;
4370 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
4371 !tolua_isnoobj(tolua_S,2,&tolua_err)
4377 const char* path = ((const char*) tolua_tostring(tolua_S,1,0));
4379 imlib_remove_path_from_font_path(path);
4383 #ifndef TOLUA_RELEASE
4385 tolua_error(tolua_S,"#ferror in function 'imlib_remove_path_from_font_path'.",&tolua_err);
4389 #endif //#ifndef TOLUA_DISABLE
4391 /* function: imlib_list_font_path */
4392 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_list_font_path00
4393 static int tolua_imlib2_imlib_list_font_path00(lua_State* tolua_S)
4395 #ifndef TOLUA_RELEASE
4396 tolua_Error tolua_err;
4398 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
4399 !tolua_isnoobj(tolua_S,2,&tolua_err)
4405 int number_return = ((int) tolua_tonumber(tolua_S,1,0));
4407 char* tolua_ret = (char*) imlib_list_font_path(&number_return);
4408 tolua_pushstring(tolua_S,(const char*)tolua_ret);
4409 tolua_pushnumber(tolua_S,(lua_Number)number_return);
4413 #ifndef TOLUA_RELEASE
4415 tolua_error(tolua_S,"#ferror in function 'imlib_list_font_path'.",&tolua_err);
4419 #endif //#ifndef TOLUA_DISABLE
4421 /* function: imlib_text_get_index_and_location */
4422 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_text_get_index_and_location00
4423 static int tolua_imlib2_imlib_text_get_index_and_location00(lua_State* tolua_S)
4425 #ifndef TOLUA_RELEASE
4426 tolua_Error tolua_err;
4428 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
4429 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
4430 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
4431 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
4432 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
4433 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
4434 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
4435 !tolua_isnoobj(tolua_S,8,&tolua_err)
4441 const char* text = ((const char*) tolua_tostring(tolua_S,1,0));
4442 int x = ((int) tolua_tonumber(tolua_S,2,0));
4443 int y = ((int) tolua_tonumber(tolua_S,3,0));
4444 int char_x_return = ((int) tolua_tonumber(tolua_S,4,0));
4445 int char_y_return = ((int) tolua_tonumber(tolua_S,5,0));
4446 int char_width_return = ((int) tolua_tonumber(tolua_S,6,0));
4447 int char_height_return = ((int) tolua_tonumber(tolua_S,7,0));
4449 int tolua_ret = (int) imlib_text_get_index_and_location(text,x,y,&char_x_return,&char_y_return,&char_width_return,&char_height_return);
4450 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4451 tolua_pushnumber(tolua_S,(lua_Number)char_x_return);
4452 tolua_pushnumber(tolua_S,(lua_Number)char_y_return);
4453 tolua_pushnumber(tolua_S,(lua_Number)char_width_return);
4454 tolua_pushnumber(tolua_S,(lua_Number)char_height_return);
4458 #ifndef TOLUA_RELEASE
4460 tolua_error(tolua_S,"#ferror in function 'imlib_text_get_index_and_location'.",&tolua_err);
4464 #endif //#ifndef TOLUA_DISABLE
4466 /* function: imlib_text_get_location_at_index */
4467 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_text_get_location_at_index00
4468 static int tolua_imlib2_imlib_text_get_location_at_index00(lua_State* tolua_S)
4470 #ifndef TOLUA_RELEASE
4471 tolua_Error tolua_err;
4473 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
4474 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
4475 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
4476 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
4477 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
4478 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
4479 !tolua_isnoobj(tolua_S,7,&tolua_err)
4485 const char* text = ((const char*) tolua_tostring(tolua_S,1,0));
4486 int index = ((int) tolua_tonumber(tolua_S,2,0));
4487 int char_x_return = ((int) tolua_tonumber(tolua_S,3,0));
4488 int char_y_return = ((int) tolua_tonumber(tolua_S,4,0));
4489 int char_width_return = ((int) tolua_tonumber(tolua_S,5,0));
4490 int char_height_return = ((int) tolua_tonumber(tolua_S,6,0));
4492 imlib_text_get_location_at_index(text,index,&char_x_return,&char_y_return,&char_width_return,&char_height_return);
4493 tolua_pushnumber(tolua_S,(lua_Number)char_x_return);
4494 tolua_pushnumber(tolua_S,(lua_Number)char_y_return);
4495 tolua_pushnumber(tolua_S,(lua_Number)char_width_return);
4496 tolua_pushnumber(tolua_S,(lua_Number)char_height_return);
4500 #ifndef TOLUA_RELEASE
4502 tolua_error(tolua_S,"#ferror in function 'imlib_text_get_location_at_index'.",&tolua_err);
4506 #endif //#ifndef TOLUA_DISABLE
4508 /* function: imlib_list_fonts */
4509 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_list_fonts00
4510 static int tolua_imlib2_imlib_list_fonts00(lua_State* tolua_S)
4512 #ifndef TOLUA_RELEASE
4513 tolua_Error tolua_err;
4515 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
4516 !tolua_isnoobj(tolua_S,2,&tolua_err)
4522 int number_return = ((int) tolua_tonumber(tolua_S,1,0));
4524 char* tolua_ret = (char*) imlib_list_fonts(&number_return);
4525 tolua_pushstring(tolua_S,(const char*)tolua_ret);
4526 tolua_pushnumber(tolua_S,(lua_Number)number_return);
4530 #ifndef TOLUA_RELEASE
4532 tolua_error(tolua_S,"#ferror in function 'imlib_list_fonts'.",&tolua_err);
4536 #endif //#ifndef TOLUA_DISABLE
4538 /* function: imlib_free_font_list */
4539 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_free_font_list00
4540 static int tolua_imlib2_imlib_free_font_list00(lua_State* tolua_S)
4542 #ifndef TOLUA_RELEASE
4543 tolua_Error tolua_err;
4545 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
4546 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
4547 !tolua_isnoobj(tolua_S,3,&tolua_err)
4553 char* font_list = ((char*) tolua_tostring(tolua_S,1,0));
4554 int number = ((int) tolua_tonumber(tolua_S,2,0));
4556 imlib_free_font_list(&font_list,number);
4557 tolua_pushstring(tolua_S,(const char*)font_list);
4561 #ifndef TOLUA_RELEASE
4563 tolua_error(tolua_S,"#ferror in function 'imlib_free_font_list'.",&tolua_err);
4567 #endif //#ifndef TOLUA_DISABLE
4569 /* function: imlib_get_font_cache_size */
4570 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_font_cache_size00
4571 static int tolua_imlib2_imlib_get_font_cache_size00(lua_State* tolua_S)
4573 #ifndef TOLUA_RELEASE
4574 tolua_Error tolua_err;
4576 !tolua_isnoobj(tolua_S,1,&tolua_err)
4583 int tolua_ret = (int) imlib_get_font_cache_size();
4584 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4588 #ifndef TOLUA_RELEASE
4590 tolua_error(tolua_S,"#ferror in function 'imlib_get_font_cache_size'.",&tolua_err);
4594 #endif //#ifndef TOLUA_DISABLE
4596 /* function: imlib_set_font_cache_size */
4597 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_set_font_cache_size00
4598 static int tolua_imlib2_imlib_set_font_cache_size00(lua_State* tolua_S)
4600 #ifndef TOLUA_RELEASE
4601 tolua_Error tolua_err;
4603 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
4604 !tolua_isnoobj(tolua_S,2,&tolua_err)
4610 int bytes = ((int) tolua_tonumber(tolua_S,1,0));
4612 imlib_set_font_cache_size(bytes);
4616 #ifndef TOLUA_RELEASE
4618 tolua_error(tolua_S,"#ferror in function 'imlib_set_font_cache_size'.",&tolua_err);
4622 #endif //#ifndef TOLUA_DISABLE
4624 /* function: imlib_flush_font_cache */
4625 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_flush_font_cache00
4626 static int tolua_imlib2_imlib_flush_font_cache00(lua_State* tolua_S)
4628 #ifndef TOLUA_RELEASE
4629 tolua_Error tolua_err;
4631 !tolua_isnoobj(tolua_S,1,&tolua_err)
4638 imlib_flush_font_cache();
4642 #ifndef TOLUA_RELEASE
4644 tolua_error(tolua_S,"#ferror in function 'imlib_flush_font_cache'.",&tolua_err);
4648 #endif //#ifndef TOLUA_DISABLE
4650 /* function: imlib_get_font_ascent */
4651 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_font_ascent00
4652 static int tolua_imlib2_imlib_get_font_ascent00(lua_State* tolua_S)
4654 #ifndef TOLUA_RELEASE
4655 tolua_Error tolua_err;
4657 !tolua_isnoobj(tolua_S,1,&tolua_err)
4664 int tolua_ret = (int) imlib_get_font_ascent();
4665 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4669 #ifndef TOLUA_RELEASE
4671 tolua_error(tolua_S,"#ferror in function 'imlib_get_font_ascent'.",&tolua_err);
4675 #endif //#ifndef TOLUA_DISABLE
4677 /* function: imlib_get_font_descent */
4678 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_font_descent00
4679 static int tolua_imlib2_imlib_get_font_descent00(lua_State* tolua_S)
4681 #ifndef TOLUA_RELEASE
4682 tolua_Error tolua_err;
4684 !tolua_isnoobj(tolua_S,1,&tolua_err)
4691 int tolua_ret = (int) imlib_get_font_descent();
4692 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4696 #ifndef TOLUA_RELEASE
4698 tolua_error(tolua_S,"#ferror in function 'imlib_get_font_descent'.",&tolua_err);
4702 #endif //#ifndef TOLUA_DISABLE
4704 /* function: imlib_get_maximum_font_ascent */
4705 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_maximum_font_ascent00
4706 static int tolua_imlib2_imlib_get_maximum_font_ascent00(lua_State* tolua_S)
4708 #ifndef TOLUA_RELEASE
4709 tolua_Error tolua_err;
4711 !tolua_isnoobj(tolua_S,1,&tolua_err)
4718 int tolua_ret = (int) imlib_get_maximum_font_ascent();
4719 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4723 #ifndef TOLUA_RELEASE
4725 tolua_error(tolua_S,"#ferror in function 'imlib_get_maximum_font_ascent'.",&tolua_err);
4729 #endif //#ifndef TOLUA_DISABLE
4731 /* function: imlib_get_maximum_font_descent */
4732 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_maximum_font_descent00
4733 static int tolua_imlib2_imlib_get_maximum_font_descent00(lua_State* tolua_S)
4735 #ifndef TOLUA_RELEASE
4736 tolua_Error tolua_err;
4738 !tolua_isnoobj(tolua_S,1,&tolua_err)
4745 int tolua_ret = (int) imlib_get_maximum_font_descent();
4746 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4750 #ifndef TOLUA_RELEASE
4752 tolua_error(tolua_S,"#ferror in function 'imlib_get_maximum_font_descent'.",&tolua_err);
4756 #endif //#ifndef TOLUA_DISABLE
4758 /* function: imlib_create_color_modifier */
4759 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_color_modifier00
4760 static int tolua_imlib2_imlib_create_color_modifier00(lua_State* tolua_S)
4762 #ifndef TOLUA_RELEASE
4763 tolua_Error tolua_err;
4765 !tolua_isnoobj(tolua_S,1,&tolua_err)
4772 _userdata tolua_ret = ( _userdata) imlib_create_color_modifier();
4773 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
4777 #ifndef TOLUA_RELEASE
4779 tolua_error(tolua_S,"#ferror in function 'imlib_create_color_modifier'.",&tolua_err);
4783 #endif //#ifndef TOLUA_DISABLE
4785 /* function: imlib_free_color_modifier */
4786 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_free_color_modifier00
4787 static int tolua_imlib2_imlib_free_color_modifier00(lua_State* tolua_S)
4789 #ifndef TOLUA_RELEASE
4790 tolua_Error tolua_err;
4792 !tolua_isnoobj(tolua_S,1,&tolua_err)
4799 imlib_free_color_modifier();
4803 #ifndef TOLUA_RELEASE
4805 tolua_error(tolua_S,"#ferror in function 'imlib_free_color_modifier'.",&tolua_err);
4809 #endif //#ifndef TOLUA_DISABLE
4811 /* function: imlib_modify_color_modifier_gamma */
4812 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_modify_color_modifier_gamma00
4813 static int tolua_imlib2_imlib_modify_color_modifier_gamma00(lua_State* tolua_S)
4815 #ifndef TOLUA_RELEASE
4816 tolua_Error tolua_err;
4818 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
4819 !tolua_isnoobj(tolua_S,2,&tolua_err)
4825 double gamma_value = ((double) tolua_tonumber(tolua_S,1,0));
4827 imlib_modify_color_modifier_gamma(gamma_value);
4831 #ifndef TOLUA_RELEASE
4833 tolua_error(tolua_S,"#ferror in function 'imlib_modify_color_modifier_gamma'.",&tolua_err);
4837 #endif //#ifndef TOLUA_DISABLE
4839 /* function: imlib_modify_color_modifier_brightness */
4840 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_modify_color_modifier_brightness00
4841 static int tolua_imlib2_imlib_modify_color_modifier_brightness00(lua_State* tolua_S)
4843 #ifndef TOLUA_RELEASE
4844 tolua_Error tolua_err;
4846 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
4847 !tolua_isnoobj(tolua_S,2,&tolua_err)
4853 double brightness_value = ((double) tolua_tonumber(tolua_S,1,0));
4855 imlib_modify_color_modifier_brightness(brightness_value);
4859 #ifndef TOLUA_RELEASE
4861 tolua_error(tolua_S,"#ferror in function 'imlib_modify_color_modifier_brightness'.",&tolua_err);
4865 #endif //#ifndef TOLUA_DISABLE
4867 /* function: imlib_modify_color_modifier_contrast */
4868 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_modify_color_modifier_contrast00
4869 static int tolua_imlib2_imlib_modify_color_modifier_contrast00(lua_State* tolua_S)
4871 #ifndef TOLUA_RELEASE
4872 tolua_Error tolua_err;
4874 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
4875 !tolua_isnoobj(tolua_S,2,&tolua_err)
4881 double contrast_value = ((double) tolua_tonumber(tolua_S,1,0));
4883 imlib_modify_color_modifier_contrast(contrast_value);
4887 #ifndef TOLUA_RELEASE
4889 tolua_error(tolua_S,"#ferror in function 'imlib_modify_color_modifier_contrast'.",&tolua_err);
4893 #endif //#ifndef TOLUA_DISABLE
4895 /* function: imlib_set_color_modifier_tables */
4896 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_set_color_modifier_tables00
4897 static int tolua_imlib2_imlib_set_color_modifier_tables00(lua_State* tolua_S)
4899 #ifndef TOLUA_RELEASE
4900 tolua_Error tolua_err;
4902 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
4903 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
4904 !tolua_isstring(tolua_S,3,0,&tolua_err) ||
4905 !tolua_isstring(tolua_S,4,0,&tolua_err) ||
4906 !tolua_isnoobj(tolua_S,5,&tolua_err)
4912 unsigned char* red_table = ((unsigned char*) tolua_tostring(tolua_S,1,0));
4913 unsigned char* green_table = ((unsigned char*) tolua_tostring(tolua_S,2,0));
4914 unsigned char* blue_table = ((unsigned char*) tolua_tostring(tolua_S,3,0));
4915 unsigned char* alpha_table = ((unsigned char*) tolua_tostring(tolua_S,4,0));
4917 imlib_set_color_modifier_tables(red_table,green_table,blue_table,alpha_table);
4921 #ifndef TOLUA_RELEASE
4923 tolua_error(tolua_S,"#ferror in function 'imlib_set_color_modifier_tables'.",&tolua_err);
4927 #endif //#ifndef TOLUA_DISABLE
4929 /* function: imlib_get_color_modifier_tables */
4930 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_color_modifier_tables00
4931 static int tolua_imlib2_imlib_get_color_modifier_tables00(lua_State* tolua_S)
4933 #ifndef TOLUA_RELEASE
4934 tolua_Error tolua_err;
4936 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
4937 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
4938 !tolua_isstring(tolua_S,3,0,&tolua_err) ||
4939 !tolua_isstring(tolua_S,4,0,&tolua_err) ||
4940 !tolua_isnoobj(tolua_S,5,&tolua_err)
4946 unsigned char* red_table = ((unsigned char*) tolua_tostring(tolua_S,1,0));
4947 unsigned char* green_table = ((unsigned char*) tolua_tostring(tolua_S,2,0));
4948 unsigned char* blue_table = ((unsigned char*) tolua_tostring(tolua_S,3,0));
4949 unsigned char* alpha_table = ((unsigned char*) tolua_tostring(tolua_S,4,0));
4951 imlib_get_color_modifier_tables(red_table,green_table,blue_table,alpha_table);
4955 #ifndef TOLUA_RELEASE
4957 tolua_error(tolua_S,"#ferror in function 'imlib_get_color_modifier_tables'.",&tolua_err);
4961 #endif //#ifndef TOLUA_DISABLE
4963 /* function: imlib_reset_color_modifier */
4964 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_reset_color_modifier00
4965 static int tolua_imlib2_imlib_reset_color_modifier00(lua_State* tolua_S)
4967 #ifndef TOLUA_RELEASE
4968 tolua_Error tolua_err;
4970 !tolua_isnoobj(tolua_S,1,&tolua_err)
4977 imlib_reset_color_modifier();
4981 #ifndef TOLUA_RELEASE
4983 tolua_error(tolua_S,"#ferror in function 'imlib_reset_color_modifier'.",&tolua_err);
4987 #endif //#ifndef TOLUA_DISABLE
4989 /* function: imlib_apply_color_modifier */
4990 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_apply_color_modifier00
4991 static int tolua_imlib2_imlib_apply_color_modifier00(lua_State* tolua_S)
4993 #ifndef TOLUA_RELEASE
4994 tolua_Error tolua_err;
4996 !tolua_isnoobj(tolua_S,1,&tolua_err)
5003 imlib_apply_color_modifier();
5007 #ifndef TOLUA_RELEASE
5009 tolua_error(tolua_S,"#ferror in function 'imlib_apply_color_modifier'.",&tolua_err);
5013 #endif //#ifndef TOLUA_DISABLE
5015 /* function: imlib_apply_color_modifier_to_rectangle */
5016 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_apply_color_modifier_to_rectangle00
5017 static int tolua_imlib2_imlib_apply_color_modifier_to_rectangle00(lua_State* tolua_S)
5019 #ifndef TOLUA_RELEASE
5020 tolua_Error tolua_err;
5022 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5023 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5024 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5025 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5026 !tolua_isnoobj(tolua_S,5,&tolua_err)
5032 int x = ((int) tolua_tonumber(tolua_S,1,0));
5033 int y = ((int) tolua_tonumber(tolua_S,2,0));
5034 int width = ((int) tolua_tonumber(tolua_S,3,0));
5035 int height = ((int) tolua_tonumber(tolua_S,4,0));
5037 imlib_apply_color_modifier_to_rectangle(x,y,width,height);
5041 #ifndef TOLUA_RELEASE
5043 tolua_error(tolua_S,"#ferror in function 'imlib_apply_color_modifier_to_rectangle'.",&tolua_err);
5047 #endif //#ifndef TOLUA_DISABLE
5049 /* function: imlib_image_draw_pixel */
5050 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_draw_pixel00
5051 static int tolua_imlib2_imlib_image_draw_pixel00(lua_State* tolua_S)
5053 #ifndef TOLUA_RELEASE
5054 tolua_Error tolua_err;
5056 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5057 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5058 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5059 !tolua_isnoobj(tolua_S,4,&tolua_err)
5065 int x = ((int) tolua_tonumber(tolua_S,1,0));
5066 int y = ((int) tolua_tonumber(tolua_S,2,0));
5067 char make_updates = ((char) tolua_tonumber(tolua_S,3,0));
5069 _userdata tolua_ret = ( _userdata) imlib_image_draw_pixel(x,y,make_updates);
5070 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
5074 #ifndef TOLUA_RELEASE
5076 tolua_error(tolua_S,"#ferror in function 'imlib_image_draw_pixel'.",&tolua_err);
5080 #endif //#ifndef TOLUA_DISABLE
5082 /* function: imlib_image_draw_line */
5083 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_draw_line00
5084 static int tolua_imlib2_imlib_image_draw_line00(lua_State* tolua_S)
5086 #ifndef TOLUA_RELEASE
5087 tolua_Error tolua_err;
5089 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5090 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5091 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5092 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5093 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
5094 !tolua_isnoobj(tolua_S,6,&tolua_err)
5100 int x1 = ((int) tolua_tonumber(tolua_S,1,0));
5101 int y1 = ((int) tolua_tonumber(tolua_S,2,0));
5102 int x2 = ((int) tolua_tonumber(tolua_S,3,0));
5103 int y2 = ((int) tolua_tonumber(tolua_S,4,0));
5104 char make_updates = ((char) tolua_tonumber(tolua_S,5,0));
5106 _userdata tolua_ret = ( _userdata) imlib_image_draw_line(x1,y1,x2,y2,make_updates);
5107 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
5111 #ifndef TOLUA_RELEASE
5113 tolua_error(tolua_S,"#ferror in function 'imlib_image_draw_line'.",&tolua_err);
5117 #endif //#ifndef TOLUA_DISABLE
5119 /* function: imlib_image_draw_rectangle */
5120 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_draw_rectangle00
5121 static int tolua_imlib2_imlib_image_draw_rectangle00(lua_State* tolua_S)
5123 #ifndef TOLUA_RELEASE
5124 tolua_Error tolua_err;
5126 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5127 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5128 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5129 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5130 !tolua_isnoobj(tolua_S,5,&tolua_err)
5136 int x = ((int) tolua_tonumber(tolua_S,1,0));
5137 int y = ((int) tolua_tonumber(tolua_S,2,0));
5138 int width = ((int) tolua_tonumber(tolua_S,3,0));
5139 int height = ((int) tolua_tonumber(tolua_S,4,0));
5141 imlib_image_draw_rectangle(x,y,width,height);
5145 #ifndef TOLUA_RELEASE
5147 tolua_error(tolua_S,"#ferror in function 'imlib_image_draw_rectangle'.",&tolua_err);
5151 #endif //#ifndef TOLUA_DISABLE
5153 /* function: imlib_image_fill_rectangle */
5154 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_fill_rectangle00
5155 static int tolua_imlib2_imlib_image_fill_rectangle00(lua_State* tolua_S)
5157 #ifndef TOLUA_RELEASE
5158 tolua_Error tolua_err;
5160 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5161 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5162 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5163 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5164 !tolua_isnoobj(tolua_S,5,&tolua_err)
5170 int x = ((int) tolua_tonumber(tolua_S,1,0));
5171 int y = ((int) tolua_tonumber(tolua_S,2,0));
5172 int width = ((int) tolua_tonumber(tolua_S,3,0));
5173 int height = ((int) tolua_tonumber(tolua_S,4,0));
5175 imlib_image_fill_rectangle(x,y,width,height);
5179 #ifndef TOLUA_RELEASE
5181 tolua_error(tolua_S,"#ferror in function 'imlib_image_fill_rectangle'.",&tolua_err);
5185 #endif //#ifndef TOLUA_DISABLE
5187 /* function: imlib_image_copy_alpha_to_image */
5188 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_copy_alpha_to_image00
5189 static int tolua_imlib2_imlib_image_copy_alpha_to_image00(lua_State* tolua_S)
5191 #ifndef TOLUA_RELEASE
5192 tolua_Error tolua_err;
5194 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
5195 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5196 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5197 !tolua_isnoobj(tolua_S,4,&tolua_err)
5203 _userdata image_source = (( _userdata) tolua_touserdata(tolua_S,1,0));
5204 int x = ((int) tolua_tonumber(tolua_S,2,0));
5205 int y = ((int) tolua_tonumber(tolua_S,3,0));
5207 imlib_image_copy_alpha_to_image(image_source,x,y);
5211 #ifndef TOLUA_RELEASE
5213 tolua_error(tolua_S,"#ferror in function 'imlib_image_copy_alpha_to_image'.",&tolua_err);
5217 #endif //#ifndef TOLUA_DISABLE
5219 /* function: imlib_image_copy_alpha_rectangle_to_image */
5220 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_copy_alpha_rectangle_to_image00
5221 static int tolua_imlib2_imlib_image_copy_alpha_rectangle_to_image00(lua_State* tolua_S)
5223 #ifndef TOLUA_RELEASE
5224 tolua_Error tolua_err;
5226 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
5227 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5228 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5229 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5230 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
5231 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
5232 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
5233 !tolua_isnoobj(tolua_S,8,&tolua_err)
5239 _userdata image_source = (( _userdata) tolua_touserdata(tolua_S,1,0));
5240 int x = ((int) tolua_tonumber(tolua_S,2,0));
5241 int y = ((int) tolua_tonumber(tolua_S,3,0));
5242 int width = ((int) tolua_tonumber(tolua_S,4,0));
5243 int height = ((int) tolua_tonumber(tolua_S,5,0));
5244 int destination_x = ((int) tolua_tonumber(tolua_S,6,0));
5245 int destination_y = ((int) tolua_tonumber(tolua_S,7,0));
5247 imlib_image_copy_alpha_rectangle_to_image(image_source,x,y,width,height,destination_x,destination_y);
5251 #ifndef TOLUA_RELEASE
5253 tolua_error(tolua_S,"#ferror in function 'imlib_image_copy_alpha_rectangle_to_image'.",&tolua_err);
5257 #endif //#ifndef TOLUA_DISABLE
5259 /* function: imlib_image_scroll_rect */
5260 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_scroll_rect00
5261 static int tolua_imlib2_imlib_image_scroll_rect00(lua_State* tolua_S)
5263 #ifndef TOLUA_RELEASE
5264 tolua_Error tolua_err;
5266 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5267 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5268 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5269 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5270 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
5271 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
5272 !tolua_isnoobj(tolua_S,7,&tolua_err)
5278 int x = ((int) tolua_tonumber(tolua_S,1,0));
5279 int y = ((int) tolua_tonumber(tolua_S,2,0));
5280 int width = ((int) tolua_tonumber(tolua_S,3,0));
5281 int height = ((int) tolua_tonumber(tolua_S,4,0));
5282 int delta_x = ((int) tolua_tonumber(tolua_S,5,0));
5283 int delta_y = ((int) tolua_tonumber(tolua_S,6,0));
5285 imlib_image_scroll_rect(x,y,width,height,delta_x,delta_y);
5289 #ifndef TOLUA_RELEASE
5291 tolua_error(tolua_S,"#ferror in function 'imlib_image_scroll_rect'.",&tolua_err);
5295 #endif //#ifndef TOLUA_DISABLE
5297 /* function: imlib_image_copy_rect */
5298 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_copy_rect00
5299 static int tolua_imlib2_imlib_image_copy_rect00(lua_State* tolua_S)
5301 #ifndef TOLUA_RELEASE
5302 tolua_Error tolua_err;
5304 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5305 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5306 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5307 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5308 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
5309 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
5310 !tolua_isnoobj(tolua_S,7,&tolua_err)
5316 int x = ((int) tolua_tonumber(tolua_S,1,0));
5317 int y = ((int) tolua_tonumber(tolua_S,2,0));
5318 int width = ((int) tolua_tonumber(tolua_S,3,0));
5319 int height = ((int) tolua_tonumber(tolua_S,4,0));
5320 int new_x = ((int) tolua_tonumber(tolua_S,5,0));
5321 int new_y = ((int) tolua_tonumber(tolua_S,6,0));
5323 imlib_image_copy_rect(x,y,width,height,new_x,new_y);
5327 #ifndef TOLUA_RELEASE
5329 tolua_error(tolua_S,"#ferror in function 'imlib_image_copy_rect'.",&tolua_err);
5333 #endif //#ifndef TOLUA_DISABLE
5335 /* function: imlib_polygon_new */
5336 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_polygon_new00
5337 static int tolua_imlib2_imlib_polygon_new00(lua_State* tolua_S)
5339 #ifndef TOLUA_RELEASE
5340 tolua_Error tolua_err;
5342 !tolua_isnoobj(tolua_S,1,&tolua_err)
5349 _userdata tolua_ret = ( _userdata) imlib_polygon_new();
5350 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
5354 #ifndef TOLUA_RELEASE
5356 tolua_error(tolua_S,"#ferror in function 'imlib_polygon_new'.",&tolua_err);
5360 #endif //#ifndef TOLUA_DISABLE
5362 /* function: imlib_polygon_free */
5363 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_polygon_free00
5364 static int tolua_imlib2_imlib_polygon_free00(lua_State* tolua_S)
5366 #ifndef TOLUA_RELEASE
5367 tolua_Error tolua_err;
5369 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
5370 !tolua_isnoobj(tolua_S,2,&tolua_err)
5376 _userdata poly = (( _userdata) tolua_touserdata(tolua_S,1,0));
5378 imlib_polygon_free(poly);
5382 #ifndef TOLUA_RELEASE
5384 tolua_error(tolua_S,"#ferror in function 'imlib_polygon_free'.",&tolua_err);
5388 #endif //#ifndef TOLUA_DISABLE
5390 /* function: imlib_polygon_add_point */
5391 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_polygon_add_point00
5392 static int tolua_imlib2_imlib_polygon_add_point00(lua_State* tolua_S)
5394 #ifndef TOLUA_RELEASE
5395 tolua_Error tolua_err;
5397 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
5398 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5399 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5400 !tolua_isnoobj(tolua_S,4,&tolua_err)
5406 _userdata poly = (( _userdata) tolua_touserdata(tolua_S,1,0));
5407 int x = ((int) tolua_tonumber(tolua_S,2,0));
5408 int y = ((int) tolua_tonumber(tolua_S,3,0));
5410 imlib_polygon_add_point(poly,x,y);
5414 #ifndef TOLUA_RELEASE
5416 tolua_error(tolua_S,"#ferror in function 'imlib_polygon_add_point'.",&tolua_err);
5420 #endif //#ifndef TOLUA_DISABLE
5422 /* function: imlib_image_draw_polygon */
5423 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_draw_polygon00
5424 static int tolua_imlib2_imlib_image_draw_polygon00(lua_State* tolua_S)
5426 #ifndef TOLUA_RELEASE
5427 tolua_Error tolua_err;
5429 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
5430 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5431 !tolua_isnoobj(tolua_S,3,&tolua_err)
5437 _userdata poly = (( _userdata) tolua_touserdata(tolua_S,1,0));
5438 unsigned char closed = ((unsigned char) tolua_tonumber(tolua_S,2,0));
5440 imlib_image_draw_polygon(poly,closed);
5444 #ifndef TOLUA_RELEASE
5446 tolua_error(tolua_S,"#ferror in function 'imlib_image_draw_polygon'.",&tolua_err);
5450 #endif //#ifndef TOLUA_DISABLE
5452 /* function: imlib_image_fill_polygon */
5453 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_fill_polygon00
5454 static int tolua_imlib2_imlib_image_fill_polygon00(lua_State* tolua_S)
5456 #ifndef TOLUA_RELEASE
5457 tolua_Error tolua_err;
5459 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
5460 !tolua_isnoobj(tolua_S,2,&tolua_err)
5466 _userdata poly = (( _userdata) tolua_touserdata(tolua_S,1,0));
5468 imlib_image_fill_polygon(poly);
5472 #ifndef TOLUA_RELEASE
5474 tolua_error(tolua_S,"#ferror in function 'imlib_image_fill_polygon'.",&tolua_err);
5478 #endif //#ifndef TOLUA_DISABLE
5480 /* function: imlib_polygon_get_bounds */
5481 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_polygon_get_bounds00
5482 static int tolua_imlib2_imlib_polygon_get_bounds00(lua_State* tolua_S)
5484 #ifndef TOLUA_RELEASE
5485 tolua_Error tolua_err;
5487 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
5488 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5489 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5490 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5491 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
5492 !tolua_isnoobj(tolua_S,6,&tolua_err)
5498 _userdata poly = (( _userdata) tolua_touserdata(tolua_S,1,0));
5499 int px1 = ((int) tolua_tonumber(tolua_S,2,0));
5500 int py1 = ((int) tolua_tonumber(tolua_S,3,0));
5501 int px2 = ((int) tolua_tonumber(tolua_S,4,0));
5502 int py2 = ((int) tolua_tonumber(tolua_S,5,0));
5504 imlib_polygon_get_bounds(poly,&px1,&py1,&px2,&py2);
5505 tolua_pushnumber(tolua_S,(lua_Number)px1);
5506 tolua_pushnumber(tolua_S,(lua_Number)py1);
5507 tolua_pushnumber(tolua_S,(lua_Number)px2);
5508 tolua_pushnumber(tolua_S,(lua_Number)py2);
5512 #ifndef TOLUA_RELEASE
5514 tolua_error(tolua_S,"#ferror in function 'imlib_polygon_get_bounds'.",&tolua_err);
5518 #endif //#ifndef TOLUA_DISABLE
5520 /* function: imlib_polygon_contains_point */
5521 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_polygon_contains_point00
5522 static int tolua_imlib2_imlib_polygon_contains_point00(lua_State* tolua_S)
5524 #ifndef TOLUA_RELEASE
5525 tolua_Error tolua_err;
5527 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
5528 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5529 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5530 !tolua_isnoobj(tolua_S,4,&tolua_err)
5536 _userdata poly = (( _userdata) tolua_touserdata(tolua_S,1,0));
5537 int x = ((int) tolua_tonumber(tolua_S,2,0));
5538 int y = ((int) tolua_tonumber(tolua_S,3,0));
5540 unsigned char tolua_ret = (unsigned char) imlib_polygon_contains_point(poly,x,y);
5541 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
5545 #ifndef TOLUA_RELEASE
5547 tolua_error(tolua_S,"#ferror in function 'imlib_polygon_contains_point'.",&tolua_err);
5551 #endif //#ifndef TOLUA_DISABLE
5553 /* function: imlib_image_draw_ellipse */
5554 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_draw_ellipse00
5555 static int tolua_imlib2_imlib_image_draw_ellipse00(lua_State* tolua_S)
5557 #ifndef TOLUA_RELEASE
5558 tolua_Error tolua_err;
5560 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5561 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5562 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5563 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5564 !tolua_isnoobj(tolua_S,5,&tolua_err)
5570 int xc = ((int) tolua_tonumber(tolua_S,1,0));
5571 int yc = ((int) tolua_tonumber(tolua_S,2,0));
5572 int a = ((int) tolua_tonumber(tolua_S,3,0));
5573 int b = ((int) tolua_tonumber(tolua_S,4,0));
5575 imlib_image_draw_ellipse(xc,yc,a,b);
5579 #ifndef TOLUA_RELEASE
5581 tolua_error(tolua_S,"#ferror in function 'imlib_image_draw_ellipse'.",&tolua_err);
5585 #endif //#ifndef TOLUA_DISABLE
5587 /* function: imlib_image_fill_ellipse */
5588 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_fill_ellipse00
5589 static int tolua_imlib2_imlib_image_fill_ellipse00(lua_State* tolua_S)
5591 #ifndef TOLUA_RELEASE
5592 tolua_Error tolua_err;
5594 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5595 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5596 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5597 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5598 !tolua_isnoobj(tolua_S,5,&tolua_err)
5604 int xc = ((int) tolua_tonumber(tolua_S,1,0));
5605 int yc = ((int) tolua_tonumber(tolua_S,2,0));
5606 int a = ((int) tolua_tonumber(tolua_S,3,0));
5607 int b = ((int) tolua_tonumber(tolua_S,4,0));
5609 imlib_image_fill_ellipse(xc,yc,a,b);
5613 #ifndef TOLUA_RELEASE
5615 tolua_error(tolua_S,"#ferror in function 'imlib_image_fill_ellipse'.",&tolua_err);
5619 #endif //#ifndef TOLUA_DISABLE
5621 /* function: imlib_create_color_range */
5622 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_color_range00
5623 static int tolua_imlib2_imlib_create_color_range00(lua_State* tolua_S)
5625 #ifndef TOLUA_RELEASE
5626 tolua_Error tolua_err;
5628 !tolua_isnoobj(tolua_S,1,&tolua_err)
5635 _userdata tolua_ret = ( _userdata) imlib_create_color_range();
5636 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
5640 #ifndef TOLUA_RELEASE
5642 tolua_error(tolua_S,"#ferror in function 'imlib_create_color_range'.",&tolua_err);
5646 #endif //#ifndef TOLUA_DISABLE
5648 /* function: imlib_free_color_range */
5649 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_free_color_range00
5650 static int tolua_imlib2_imlib_free_color_range00(lua_State* tolua_S)
5652 #ifndef TOLUA_RELEASE
5653 tolua_Error tolua_err;
5655 !tolua_isnoobj(tolua_S,1,&tolua_err)
5662 imlib_free_color_range();
5666 #ifndef TOLUA_RELEASE
5668 tolua_error(tolua_S,"#ferror in function 'imlib_free_color_range'.",&tolua_err);
5672 #endif //#ifndef TOLUA_DISABLE
5674 /* function: imlib_add_color_to_color_range */
5675 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_add_color_to_color_range00
5676 static int tolua_imlib2_imlib_add_color_to_color_range00(lua_State* tolua_S)
5678 #ifndef TOLUA_RELEASE
5679 tolua_Error tolua_err;
5681 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5682 !tolua_isnoobj(tolua_S,2,&tolua_err)
5688 int distance_away = ((int) tolua_tonumber(tolua_S,1,0));
5690 imlib_add_color_to_color_range(distance_away);
5694 #ifndef TOLUA_RELEASE
5696 tolua_error(tolua_S,"#ferror in function 'imlib_add_color_to_color_range'.",&tolua_err);
5700 #endif //#ifndef TOLUA_DISABLE
5702 /* function: imlib_image_fill_color_range_rectangle */
5703 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_fill_color_range_rectangle00
5704 static int tolua_imlib2_imlib_image_fill_color_range_rectangle00(lua_State* tolua_S)
5706 #ifndef TOLUA_RELEASE
5707 tolua_Error tolua_err;
5709 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5710 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5711 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5712 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5713 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
5714 !tolua_isnoobj(tolua_S,6,&tolua_err)
5720 int x = ((int) tolua_tonumber(tolua_S,1,0));
5721 int y = ((int) tolua_tonumber(tolua_S,2,0));
5722 int width = ((int) tolua_tonumber(tolua_S,3,0));
5723 int height = ((int) tolua_tonumber(tolua_S,4,0));
5724 double angle = ((double) tolua_tonumber(tolua_S,5,0));
5726 imlib_image_fill_color_range_rectangle(x,y,width,height,angle);
5730 #ifndef TOLUA_RELEASE
5732 tolua_error(tolua_S,"#ferror in function 'imlib_image_fill_color_range_rectangle'.",&tolua_err);
5736 #endif //#ifndef TOLUA_DISABLE
5738 /* function: imlib_image_fill_hsva_color_range_rectangle */
5739 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_fill_hsva_color_range_rectangle00
5740 static int tolua_imlib2_imlib_image_fill_hsva_color_range_rectangle00(lua_State* tolua_S)
5742 #ifndef TOLUA_RELEASE
5743 tolua_Error tolua_err;
5745 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5746 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5747 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5748 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5749 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
5750 !tolua_isnoobj(tolua_S,6,&tolua_err)
5756 int x = ((int) tolua_tonumber(tolua_S,1,0));
5757 int y = ((int) tolua_tonumber(tolua_S,2,0));
5758 int width = ((int) tolua_tonumber(tolua_S,3,0));
5759 int height = ((int) tolua_tonumber(tolua_S,4,0));
5760 double angle = ((double) tolua_tonumber(tolua_S,5,0));
5762 imlib_image_fill_hsva_color_range_rectangle(x,y,width,height,angle);
5766 #ifndef TOLUA_RELEASE
5768 tolua_error(tolua_S,"#ferror in function 'imlib_image_fill_hsva_color_range_rectangle'.",&tolua_err);
5772 #endif //#ifndef TOLUA_DISABLE
5774 /* function: imlib_image_attach_data_value */
5775 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_attach_data_value00
5776 static int tolua_imlib2_imlib_image_attach_data_value00(lua_State* tolua_S)
5778 #ifndef TOLUA_RELEASE
5779 tolua_Error tolua_err;
5781 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
5782 !tolua_isuserdata(tolua_S,2,0,&tolua_err) ||
5783 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5784 (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"Imlib_Data_Destructor_Function",0,&tolua_err)) ||
5785 !tolua_isnoobj(tolua_S,5,&tolua_err)
5791 const char* key = ((const char*) tolua_tostring(tolua_S,1,0));
5792 void* data = ((void*) tolua_touserdata(tolua_S,2,0));
5793 int value = ((int) tolua_tonumber(tolua_S,3,0));
5794 Imlib_Data_Destructor_Function destructor_function = *((Imlib_Data_Destructor_Function*) tolua_tousertype(tolua_S,4,0));
5796 imlib_image_attach_data_value(key,data,value,destructor_function);
5800 #ifndef TOLUA_RELEASE
5802 tolua_error(tolua_S,"#ferror in function 'imlib_image_attach_data_value'.",&tolua_err);
5806 #endif //#ifndef TOLUA_DISABLE
5808 /* function: imlib_image_get_attached_data */
5809 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_get_attached_data00
5810 static int tolua_imlib2_imlib_image_get_attached_data00(lua_State* tolua_S)
5812 #ifndef TOLUA_RELEASE
5813 tolua_Error tolua_err;
5815 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
5816 !tolua_isnoobj(tolua_S,2,&tolua_err)
5822 const char* key = ((const char*) tolua_tostring(tolua_S,1,0));
5824 void* tolua_ret = (void*) imlib_image_get_attached_data(key);
5825 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
5829 #ifndef TOLUA_RELEASE
5831 tolua_error(tolua_S,"#ferror in function 'imlib_image_get_attached_data'.",&tolua_err);
5835 #endif //#ifndef TOLUA_DISABLE
5837 /* function: imlib_image_get_attached_value */
5838 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_get_attached_value00
5839 static int tolua_imlib2_imlib_image_get_attached_value00(lua_State* tolua_S)
5841 #ifndef TOLUA_RELEASE
5842 tolua_Error tolua_err;
5844 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
5845 !tolua_isnoobj(tolua_S,2,&tolua_err)
5851 const char* key = ((const char*) tolua_tostring(tolua_S,1,0));
5853 int tolua_ret = (int) imlib_image_get_attached_value(key);
5854 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
5858 #ifndef TOLUA_RELEASE
5860 tolua_error(tolua_S,"#ferror in function 'imlib_image_get_attached_value'.",&tolua_err);
5864 #endif //#ifndef TOLUA_DISABLE
5866 /* function: imlib_image_remove_attached_data_value */
5867 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_remove_attached_data_value00
5868 static int tolua_imlib2_imlib_image_remove_attached_data_value00(lua_State* tolua_S)
5870 #ifndef TOLUA_RELEASE
5871 tolua_Error tolua_err;
5873 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
5874 !tolua_isnoobj(tolua_S,2,&tolua_err)
5880 const char* key = ((const char*) tolua_tostring(tolua_S,1,0));
5882 imlib_image_remove_attached_data_value(key);
5886 #ifndef TOLUA_RELEASE
5888 tolua_error(tolua_S,"#ferror in function 'imlib_image_remove_attached_data_value'.",&tolua_err);
5892 #endif //#ifndef TOLUA_DISABLE
5894 /* function: imlib_image_remove_and_free_attached_data_value */
5895 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_remove_and_free_attached_data_value00
5896 static int tolua_imlib2_imlib_image_remove_and_free_attached_data_value00(lua_State* tolua_S)
5898 #ifndef TOLUA_RELEASE
5899 tolua_Error tolua_err;
5901 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
5902 !tolua_isnoobj(tolua_S,2,&tolua_err)
5908 const char* key = ((const char*) tolua_tostring(tolua_S,1,0));
5910 imlib_image_remove_and_free_attached_data_value(key);
5914 #ifndef TOLUA_RELEASE
5916 tolua_error(tolua_S,"#ferror in function 'imlib_image_remove_and_free_attached_data_value'.",&tolua_err);
5920 #endif //#ifndef TOLUA_DISABLE
5922 /* function: imlib_save_image */
5923 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_save_image00
5924 static int tolua_imlib2_imlib_save_image00(lua_State* tolua_S)
5926 #ifndef TOLUA_RELEASE
5927 tolua_Error tolua_err;
5929 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
5930 !tolua_isnoobj(tolua_S,2,&tolua_err)
5936 const char* filename = ((const char*) tolua_tostring(tolua_S,1,0));
5938 imlib_save_image(filename);
5942 #ifndef TOLUA_RELEASE
5944 tolua_error(tolua_S,"#ferror in function 'imlib_save_image'.",&tolua_err);
5948 #endif //#ifndef TOLUA_DISABLE
5950 /* function: imlib_save_image_with_error_return */
5951 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_save_image_with_error_return00
5952 static int tolua_imlib2_imlib_save_image_with_error_return00(lua_State* tolua_S)
5954 #ifndef TOLUA_RELEASE
5955 tolua_Error tolua_err;
5957 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
5958 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5959 !tolua_isnoobj(tolua_S,3,&tolua_err)
5965 const char* filename = ((const char*) tolua_tostring(tolua_S,1,0));
5966 Imlib_Load_Error error_return = ((Imlib_Load_Error) (int) tolua_tonumber(tolua_S,2,0));
5968 imlib_save_image_with_error_return(filename,&error_return);
5969 tolua_pushnumber(tolua_S,(lua_Number)error_return);
5973 #ifndef TOLUA_RELEASE
5975 tolua_error(tolua_S,"#ferror in function 'imlib_save_image_with_error_return'.",&tolua_err);
5979 #endif //#ifndef TOLUA_DISABLE
5981 /* function: imlib_create_rotated_image */
5982 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_rotated_image00
5983 static int tolua_imlib2_imlib_create_rotated_image00(lua_State* tolua_S)
5985 #ifndef TOLUA_RELEASE
5986 tolua_Error tolua_err;
5988 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5989 !tolua_isnoobj(tolua_S,2,&tolua_err)
5995 double angle = ((double) tolua_tonumber(tolua_S,1,0));
5997 _userdata tolua_ret = ( _userdata) imlib_create_rotated_image(angle);
5998 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
6002 #ifndef TOLUA_RELEASE
6004 tolua_error(tolua_S,"#ferror in function 'imlib_create_rotated_image'.",&tolua_err);
6008 #endif //#ifndef TOLUA_DISABLE
6010 /* function: imlib_rotate_image_from_buffer */
6011 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_rotate_image_from_buffer00
6012 static int tolua_imlib2_imlib_rotate_image_from_buffer00(lua_State* tolua_S)
6014 #ifndef TOLUA_RELEASE
6015 tolua_Error tolua_err;
6017 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6018 !tolua_isuserdata(tolua_S,2,0,&tolua_err) ||
6019 !tolua_isnoobj(tolua_S,3,&tolua_err)
6025 double angle = ((double) tolua_tonumber(tolua_S,1,0));
6026 _userdata source_image = (( _userdata) tolua_touserdata(tolua_S,2,0));
6028 imlib_rotate_image_from_buffer(angle,source_image);
6032 #ifndef TOLUA_RELEASE
6034 tolua_error(tolua_S,"#ferror in function 'imlib_rotate_image_from_buffer'.",&tolua_err);
6038 #endif //#ifndef TOLUA_DISABLE
6040 /* function: imlib_blend_image_onto_image_at_angle */
6041 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_blend_image_onto_image_at_angle00
6042 static int tolua_imlib2_imlib_blend_image_onto_image_at_angle00(lua_State* tolua_S)
6044 #ifndef TOLUA_RELEASE
6045 tolua_Error tolua_err;
6047 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
6048 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6049 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6050 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6051 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
6052 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
6053 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
6054 !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
6055 !tolua_isnumber(tolua_S,9,0,&tolua_err) ||
6056 !tolua_isnumber(tolua_S,10,0,&tolua_err) ||
6057 !tolua_isnoobj(tolua_S,11,&tolua_err)
6063 _userdata source_image = (( _userdata) tolua_touserdata(tolua_S,1,0));
6064 char merge_alpha = ((char) tolua_tonumber(tolua_S,2,0));
6065 int source_x = ((int) tolua_tonumber(tolua_S,3,0));
6066 int source_y = ((int) tolua_tonumber(tolua_S,4,0));
6067 int source_width = ((int) tolua_tonumber(tolua_S,5,0));
6068 int source_height = ((int) tolua_tonumber(tolua_S,6,0));
6069 int destination_x = ((int) tolua_tonumber(tolua_S,7,0));
6070 int destination_y = ((int) tolua_tonumber(tolua_S,8,0));
6071 int angle_x = ((int) tolua_tonumber(tolua_S,9,0));
6072 int angle_y = ((int) tolua_tonumber(tolua_S,10,0));
6074 imlib_blend_image_onto_image_at_angle(source_image,merge_alpha,source_x,source_y,source_width,source_height,destination_x,destination_y,angle_x,angle_y);
6078 #ifndef TOLUA_RELEASE
6080 tolua_error(tolua_S,"#ferror in function 'imlib_blend_image_onto_image_at_angle'.",&tolua_err);
6084 #endif //#ifndef TOLUA_DISABLE
6086 /* function: imlib_blend_image_onto_image_skewed */
6087 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_blend_image_onto_image_skewed00
6088 static int tolua_imlib2_imlib_blend_image_onto_image_skewed00(lua_State* tolua_S)
6090 #ifndef TOLUA_RELEASE
6091 tolua_Error tolua_err;
6093 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
6094 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6095 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6096 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6097 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
6098 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
6099 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
6100 !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
6101 !tolua_isnumber(tolua_S,9,0,&tolua_err) ||
6102 !tolua_isnumber(tolua_S,10,0,&tolua_err) ||
6103 !tolua_isnumber(tolua_S,11,0,&tolua_err) ||
6104 !tolua_isnumber(tolua_S,12,0,&tolua_err) ||
6105 !tolua_isnoobj(tolua_S,13,&tolua_err)
6111 _userdata source_image = (( _userdata) tolua_touserdata(tolua_S,1,0));
6112 char merge_alpha = ((char) tolua_tonumber(tolua_S,2,0));
6113 int source_x = ((int) tolua_tonumber(tolua_S,3,0));
6114 int source_y = ((int) tolua_tonumber(tolua_S,4,0));
6115 int source_width = ((int) tolua_tonumber(tolua_S,5,0));
6116 int source_height = ((int) tolua_tonumber(tolua_S,6,0));
6117 int destination_x = ((int) tolua_tonumber(tolua_S,7,0));
6118 int destination_y = ((int) tolua_tonumber(tolua_S,8,0));
6119 int h_angle_x = ((int) tolua_tonumber(tolua_S,9,0));
6120 int h_angle_y = ((int) tolua_tonumber(tolua_S,10,0));
6121 int v_angle_x = ((int) tolua_tonumber(tolua_S,11,0));
6122 int v_angle_y = ((int) tolua_tonumber(tolua_S,12,0));
6124 imlib_blend_image_onto_image_skewed(source_image,merge_alpha,source_x,source_y,source_width,source_height,destination_x,destination_y,h_angle_x,h_angle_y,v_angle_x,v_angle_y);
6128 #ifndef TOLUA_RELEASE
6130 tolua_error(tolua_S,"#ferror in function 'imlib_blend_image_onto_image_skewed'.",&tolua_err);
6134 #endif //#ifndef TOLUA_DISABLE
6136 /* function: imlib_render_image_on_drawable_skewed */
6137 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_render_image_on_drawable_skewed00
6138 static int tolua_imlib2_imlib_render_image_on_drawable_skewed00(lua_State* tolua_S)
6140 #ifndef TOLUA_RELEASE
6141 tolua_Error tolua_err;
6143 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6144 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6145 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6146 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6147 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
6148 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
6149 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
6150 !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
6151 !tolua_isnumber(tolua_S,9,0,&tolua_err) ||
6152 !tolua_isnumber(tolua_S,10,0,&tolua_err) ||
6153 !tolua_isnoobj(tolua_S,11,&tolua_err)
6159 int source_x = ((int) tolua_tonumber(tolua_S,1,0));
6160 int source_y = ((int) tolua_tonumber(tolua_S,2,0));
6161 int source_width = ((int) tolua_tonumber(tolua_S,3,0));
6162 int source_height = ((int) tolua_tonumber(tolua_S,4,0));
6163 int destination_x = ((int) tolua_tonumber(tolua_S,5,0));
6164 int destination_y = ((int) tolua_tonumber(tolua_S,6,0));
6165 int h_angle_x = ((int) tolua_tonumber(tolua_S,7,0));
6166 int h_angle_y = ((int) tolua_tonumber(tolua_S,8,0));
6167 int v_angle_x = ((int) tolua_tonumber(tolua_S,9,0));
6168 int v_angle_y = ((int) tolua_tonumber(tolua_S,10,0));
6170 imlib_render_image_on_drawable_skewed(source_x,source_y,source_width,source_height,destination_x,destination_y,h_angle_x,h_angle_y,v_angle_x,v_angle_y);
6174 #ifndef TOLUA_RELEASE
6176 tolua_error(tolua_S,"#ferror in function 'imlib_render_image_on_drawable_skewed'.",&tolua_err);
6180 #endif //#ifndef TOLUA_DISABLE
6182 /* function: imlib_render_image_on_drawable_at_angle */
6183 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_render_image_on_drawable_at_angle00
6184 static int tolua_imlib2_imlib_render_image_on_drawable_at_angle00(lua_State* tolua_S)
6186 #ifndef TOLUA_RELEASE
6187 tolua_Error tolua_err;
6189 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6190 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6191 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6192 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6193 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
6194 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
6195 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
6196 !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
6197 !tolua_isnoobj(tolua_S,9,&tolua_err)
6203 int source_x = ((int) tolua_tonumber(tolua_S,1,0));
6204 int source_y = ((int) tolua_tonumber(tolua_S,2,0));
6205 int source_width = ((int) tolua_tonumber(tolua_S,3,0));
6206 int source_height = ((int) tolua_tonumber(tolua_S,4,0));
6207 int destination_x = ((int) tolua_tonumber(tolua_S,5,0));
6208 int destination_y = ((int) tolua_tonumber(tolua_S,6,0));
6209 int angle_x = ((int) tolua_tonumber(tolua_S,7,0));
6210 int angle_y = ((int) tolua_tonumber(tolua_S,8,0));
6212 imlib_render_image_on_drawable_at_angle(source_x,source_y,source_width,source_height,destination_x,destination_y,angle_x,angle_y);
6216 #ifndef TOLUA_RELEASE
6218 tolua_error(tolua_S,"#ferror in function 'imlib_render_image_on_drawable_at_angle'.",&tolua_err);
6222 #endif //#ifndef TOLUA_DISABLE
6224 /* function: imlib_image_filter */
6225 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_filter00
6226 static int tolua_imlib2_imlib_image_filter00(lua_State* tolua_S)
6228 #ifndef TOLUA_RELEASE
6229 tolua_Error tolua_err;
6231 !tolua_isnoobj(tolua_S,1,&tolua_err)
6238 imlib_image_filter();
6242 #ifndef TOLUA_RELEASE
6244 tolua_error(tolua_S,"#ferror in function 'imlib_image_filter'.",&tolua_err);
6248 #endif //#ifndef TOLUA_DISABLE
6250 /* function: imlib_create_filter */
6251 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_filter00
6252 static int tolua_imlib2_imlib_create_filter00(lua_State* tolua_S)
6254 #ifndef TOLUA_RELEASE
6255 tolua_Error tolua_err;
6257 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6258 !tolua_isnoobj(tolua_S,2,&tolua_err)
6264 int initsize = ((int) tolua_tonumber(tolua_S,1,0));
6266 _userdata tolua_ret = ( _userdata) imlib_create_filter(initsize);
6267 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
6271 #ifndef TOLUA_RELEASE
6273 tolua_error(tolua_S,"#ferror in function 'imlib_create_filter'.",&tolua_err);
6277 #endif //#ifndef TOLUA_DISABLE
6279 /* function: imlib_context_set_filter */
6280 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_filter00
6281 static int tolua_imlib2_imlib_context_set_filter00(lua_State* tolua_S)
6283 #ifndef TOLUA_RELEASE
6284 tolua_Error tolua_err;
6286 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
6287 !tolua_isnoobj(tolua_S,2,&tolua_err)
6293 _userdata filter = (( _userdata) tolua_touserdata(tolua_S,1,0));
6295 imlib_context_set_filter(filter);
6299 #ifndef TOLUA_RELEASE
6301 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_filter'.",&tolua_err);
6305 #endif //#ifndef TOLUA_DISABLE
6307 /* function: imlib_context_get_filter */
6308 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_filter00
6309 static int tolua_imlib2_imlib_context_get_filter00(lua_State* tolua_S)
6311 #ifndef TOLUA_RELEASE
6312 tolua_Error tolua_err;
6314 !tolua_isnoobj(tolua_S,1,&tolua_err)
6321 _userdata tolua_ret = ( _userdata) imlib_context_get_filter();
6322 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
6326 #ifndef TOLUA_RELEASE
6328 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_filter'.",&tolua_err);
6332 #endif //#ifndef TOLUA_DISABLE
6334 /* function: imlib_free_filter */
6335 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_free_filter00
6336 static int tolua_imlib2_imlib_free_filter00(lua_State* tolua_S)
6338 #ifndef TOLUA_RELEASE
6339 tolua_Error tolua_err;
6341 !tolua_isnoobj(tolua_S,1,&tolua_err)
6348 imlib_free_filter();
6352 #ifndef TOLUA_RELEASE
6354 tolua_error(tolua_S,"#ferror in function 'imlib_free_filter'.",&tolua_err);
6358 #endif //#ifndef TOLUA_DISABLE
6360 /* function: imlib_filter_set */
6361 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_filter_set00
6362 static int tolua_imlib2_imlib_filter_set00(lua_State* tolua_S)
6364 #ifndef TOLUA_RELEASE
6365 tolua_Error tolua_err;
6367 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6368 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6369 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6370 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6371 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
6372 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
6373 !tolua_isnoobj(tolua_S,7,&tolua_err)
6379 int xoff = ((int) tolua_tonumber(tolua_S,1,0));
6380 int yoff = ((int) tolua_tonumber(tolua_S,2,0));
6381 int a = ((int) tolua_tonumber(tolua_S,3,0));
6382 int r = ((int) tolua_tonumber(tolua_S,4,0));
6383 int g = ((int) tolua_tonumber(tolua_S,5,0));
6384 int b = ((int) tolua_tonumber(tolua_S,6,0));
6386 imlib_filter_set(xoff,yoff,a,r,g,b);
6390 #ifndef TOLUA_RELEASE
6392 tolua_error(tolua_S,"#ferror in function 'imlib_filter_set'.",&tolua_err);
6396 #endif //#ifndef TOLUA_DISABLE
6398 /* function: imlib_filter_set_alpha */
6399 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_filter_set_alpha00
6400 static int tolua_imlib2_imlib_filter_set_alpha00(lua_State* tolua_S)
6402 #ifndef TOLUA_RELEASE
6403 tolua_Error tolua_err;
6405 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6406 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6407 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6408 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6409 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
6410 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
6411 !tolua_isnoobj(tolua_S,7,&tolua_err)
6417 int xoff = ((int) tolua_tonumber(tolua_S,1,0));
6418 int yoff = ((int) tolua_tonumber(tolua_S,2,0));
6419 int a = ((int) tolua_tonumber(tolua_S,3,0));
6420 int r = ((int) tolua_tonumber(tolua_S,4,0));
6421 int g = ((int) tolua_tonumber(tolua_S,5,0));
6422 int b = ((int) tolua_tonumber(tolua_S,6,0));
6424 imlib_filter_set_alpha(xoff,yoff,a,r,g,b);
6428 #ifndef TOLUA_RELEASE
6430 tolua_error(tolua_S,"#ferror in function 'imlib_filter_set_alpha'.",&tolua_err);
6434 #endif //#ifndef TOLUA_DISABLE
6436 /* function: imlib_filter_set_red */
6437 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_filter_set_red00
6438 static int tolua_imlib2_imlib_filter_set_red00(lua_State* tolua_S)
6440 #ifndef TOLUA_RELEASE
6441 tolua_Error tolua_err;
6443 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6444 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6445 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6446 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6447 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
6448 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
6449 !tolua_isnoobj(tolua_S,7,&tolua_err)
6455 int xoff = ((int) tolua_tonumber(tolua_S,1,0));
6456 int yoff = ((int) tolua_tonumber(tolua_S,2,0));
6457 int a = ((int) tolua_tonumber(tolua_S,3,0));
6458 int r = ((int) tolua_tonumber(tolua_S,4,0));
6459 int g = ((int) tolua_tonumber(tolua_S,5,0));
6460 int b = ((int) tolua_tonumber(tolua_S,6,0));
6462 imlib_filter_set_red(xoff,yoff,a,r,g,b);
6466 #ifndef TOLUA_RELEASE
6468 tolua_error(tolua_S,"#ferror in function 'imlib_filter_set_red'.",&tolua_err);
6472 #endif //#ifndef TOLUA_DISABLE
6474 /* function: imlib_filter_set_green */
6475 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_filter_set_green00
6476 static int tolua_imlib2_imlib_filter_set_green00(lua_State* tolua_S)
6478 #ifndef TOLUA_RELEASE
6479 tolua_Error tolua_err;
6481 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6482 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6483 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6484 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6485 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
6486 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
6487 !tolua_isnoobj(tolua_S,7,&tolua_err)
6493 int xoff = ((int) tolua_tonumber(tolua_S,1,0));
6494 int yoff = ((int) tolua_tonumber(tolua_S,2,0));
6495 int a = ((int) tolua_tonumber(tolua_S,3,0));
6496 int r = ((int) tolua_tonumber(tolua_S,4,0));
6497 int g = ((int) tolua_tonumber(tolua_S,5,0));
6498 int b = ((int) tolua_tonumber(tolua_S,6,0));
6500 imlib_filter_set_green(xoff,yoff,a,r,g,b);
6504 #ifndef TOLUA_RELEASE
6506 tolua_error(tolua_S,"#ferror in function 'imlib_filter_set_green'.",&tolua_err);
6510 #endif //#ifndef TOLUA_DISABLE
6512 /* function: imlib_filter_set_blue */
6513 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_filter_set_blue00
6514 static int tolua_imlib2_imlib_filter_set_blue00(lua_State* tolua_S)
6516 #ifndef TOLUA_RELEASE
6517 tolua_Error tolua_err;
6519 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6520 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6521 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6522 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6523 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
6524 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
6525 !tolua_isnoobj(tolua_S,7,&tolua_err)
6531 int xoff = ((int) tolua_tonumber(tolua_S,1,0));
6532 int yoff = ((int) tolua_tonumber(tolua_S,2,0));
6533 int a = ((int) tolua_tonumber(tolua_S,3,0));
6534 int r = ((int) tolua_tonumber(tolua_S,4,0));
6535 int g = ((int) tolua_tonumber(tolua_S,5,0));
6536 int b = ((int) tolua_tonumber(tolua_S,6,0));
6538 imlib_filter_set_blue(xoff,yoff,a,r,g,b);
6542 #ifndef TOLUA_RELEASE
6544 tolua_error(tolua_S,"#ferror in function 'imlib_filter_set_blue'.",&tolua_err);
6548 #endif //#ifndef TOLUA_DISABLE
6550 /* function: imlib_filter_constants */
6551 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_filter_constants00
6552 static int tolua_imlib2_imlib_filter_constants00(lua_State* tolua_S)
6554 #ifndef TOLUA_RELEASE
6555 tolua_Error tolua_err;
6557 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6558 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6559 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6560 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6561 !tolua_isnoobj(tolua_S,5,&tolua_err)
6567 int a = ((int) tolua_tonumber(tolua_S,1,0));
6568 int r = ((int) tolua_tonumber(tolua_S,2,0));
6569 int g = ((int) tolua_tonumber(tolua_S,3,0));
6570 int b = ((int) tolua_tonumber(tolua_S,4,0));
6572 imlib_filter_constants(a,r,g,b);
6576 #ifndef TOLUA_RELEASE
6578 tolua_error(tolua_S,"#ferror in function 'imlib_filter_constants'.",&tolua_err);
6582 #endif //#ifndef TOLUA_DISABLE
6584 /* function: imlib_filter_divisors */
6585 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_filter_divisors00
6586 static int tolua_imlib2_imlib_filter_divisors00(lua_State* tolua_S)
6588 #ifndef TOLUA_RELEASE
6589 tolua_Error tolua_err;
6591 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6592 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6593 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6594 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6595 !tolua_isnoobj(tolua_S,5,&tolua_err)
6601 int a = ((int) tolua_tonumber(tolua_S,1,0));
6602 int r = ((int) tolua_tonumber(tolua_S,2,0));
6603 int g = ((int) tolua_tonumber(tolua_S,3,0));
6604 int b = ((int) tolua_tonumber(tolua_S,4,0));
6606 imlib_filter_divisors(a,r,g,b);
6610 #ifndef TOLUA_RELEASE
6612 tolua_error(tolua_S,"#ferror in function 'imlib_filter_divisors'.",&tolua_err);
6616 #endif //#ifndef TOLUA_DISABLE
6618 /* function: imlib_image_clear */
6619 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_clear00
6620 static int tolua_imlib2_imlib_image_clear00(lua_State* tolua_S)
6622 #ifndef TOLUA_RELEASE
6623 tolua_Error tolua_err;
6625 !tolua_isnoobj(tolua_S,1,&tolua_err)
6632 imlib_image_clear();
6636 #ifndef TOLUA_RELEASE
6638 tolua_error(tolua_S,"#ferror in function 'imlib_image_clear'.",&tolua_err);
6642 #endif //#ifndef TOLUA_DISABLE
6644 /* function: imlib_image_clear_color */
6645 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_clear_color00
6646 static int tolua_imlib2_imlib_image_clear_color00(lua_State* tolua_S)
6648 #ifndef TOLUA_RELEASE
6649 tolua_Error tolua_err;
6651 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6652 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6653 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6654 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6655 !tolua_isnoobj(tolua_S,5,&tolua_err)
6661 int r = ((int) tolua_tonumber(tolua_S,1,0));
6662 int g = ((int) tolua_tonumber(tolua_S,2,0));
6663 int b = ((int) tolua_tonumber(tolua_S,3,0));
6664 int a = ((int) tolua_tonumber(tolua_S,4,0));
6666 imlib_image_clear_color(r,g,b,a);
6670 #ifndef TOLUA_RELEASE
6672 tolua_error(tolua_S,"#ferror in function 'imlib_image_clear_color'.",&tolua_err);
6676 #endif //#ifndef TOLUA_DISABLE
6679 TOLUA_API int tolua_imlib2_open (lua_State* tolua_S)
6681 tolua_open(tolua_S);
6682 tolua_reg_types(tolua_S);
6683 tolua_module(tolua_S,NULL,0);
6684 tolua_beginmodule(tolua_S,NULL);
6685 tolua_constant(tolua_S,"IMLIB_OP_COPY",IMLIB_OP_COPY);
6686 tolua_constant(tolua_S,"IMLIB_OP_ADD",IMLIB_OP_ADD);
6687 tolua_constant(tolua_S,"IMLIB_OP_SUBTRACT",IMLIB_OP_SUBTRACT);
6688 tolua_constant(tolua_S,"IMLIB_OP_RESHADE",IMLIB_OP_RESHADE);
6689 tolua_constant(tolua_S,"IMLIB_TEXT_TO_RIGHT",IMLIB_TEXT_TO_RIGHT);
6690 tolua_constant(tolua_S,"IMLIB_TEXT_TO_LEFT",IMLIB_TEXT_TO_LEFT);
6691 tolua_constant(tolua_S,"IMLIB_TEXT_TO_DOWN",IMLIB_TEXT_TO_DOWN);
6692 tolua_constant(tolua_S,"IMLIB_TEXT_TO_UP",IMLIB_TEXT_TO_UP);
6693 tolua_constant(tolua_S,"IMLIB_TEXT_TO_ANGLE",IMLIB_TEXT_TO_ANGLE);
6694 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_NONE",IMLIB_LOAD_ERROR_NONE);
6695 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_FILE_DOES_NOT_EXIST",IMLIB_LOAD_ERROR_FILE_DOES_NOT_EXIST);
6696 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_FILE_IS_DIRECTORY",IMLIB_LOAD_ERROR_FILE_IS_DIRECTORY);
6697 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_PERMISSION_DENIED_TO_READ",IMLIB_LOAD_ERROR_PERMISSION_DENIED_TO_READ);
6698 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_NO_LOADER_FOR_FILE_FORMAT",IMLIB_LOAD_ERROR_NO_LOADER_FOR_FILE_FORMAT);
6699 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_PATH_TOO_LONG",IMLIB_LOAD_ERROR_PATH_TOO_LONG);
6700 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_PATH_COMPONENT_NON_EXISTANT",IMLIB_LOAD_ERROR_PATH_COMPONENT_NON_EXISTANT);
6701 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_PATH_COMPONENT_NOT_DIRECTORY",IMLIB_LOAD_ERROR_PATH_COMPONENT_NOT_DIRECTORY);
6702 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_PATH_POINTS_OUTSIDE_ADDRESS_SPACE",IMLIB_LOAD_ERROR_PATH_POINTS_OUTSIDE_ADDRESS_SPACE);
6703 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_TOO_MANY_SYMBOLIC_LINKS",IMLIB_LOAD_ERROR_TOO_MANY_SYMBOLIC_LINKS);
6704 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_OUT_OF_MEMORY",IMLIB_LOAD_ERROR_OUT_OF_MEMORY);
6705 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_OUT_OF_FILE_DESCRIPTORS",IMLIB_LOAD_ERROR_OUT_OF_FILE_DESCRIPTORS);
6706 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_PERMISSION_DENIED_TO_WRITE",IMLIB_LOAD_ERROR_PERMISSION_DENIED_TO_WRITE);
6707 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_OUT_OF_DISK_SPACE",IMLIB_LOAD_ERROR_OUT_OF_DISK_SPACE);
6708 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_UNKNOWN",IMLIB_LOAD_ERROR_UNKNOWN);
6709 tolua_constant(tolua_S,"IMLIB_TTF_ENCODING_ISO_8859_1",IMLIB_TTF_ENCODING_ISO_8859_1);
6710 tolua_constant(tolua_S,"IMLIB_TTF_ENCODING_ISO_8859_2",IMLIB_TTF_ENCODING_ISO_8859_2);
6711 tolua_constant(tolua_S,"IMLIB_TTF_ENCODING_ISO_8859_3",IMLIB_TTF_ENCODING_ISO_8859_3);
6712 tolua_constant(tolua_S,"IMLIB_TTF_ENCODING_ISO_8859_4",IMLIB_TTF_ENCODING_ISO_8859_4);
6713 tolua_constant(tolua_S,"IMLIB_TTF_ENCODING_ISO_8859_5",IMLIB_TTF_ENCODING_ISO_8859_5);
6714 tolua_function(tolua_S,"imlib_context_new",tolua_imlib2_imlib_context_new00);
6715 tolua_function(tolua_S,"imlib_context_free",tolua_imlib2_imlib_context_free00);
6716 tolua_function(tolua_S,"imlib_context_push",tolua_imlib2_imlib_context_push00);
6717 tolua_function(tolua_S,"imlib_context_pop",tolua_imlib2_imlib_context_pop00);
6718 tolua_function(tolua_S,"imlib_context_get",tolua_imlib2_imlib_context_get00);
6719 tolua_function(tolua_S,"imlib_context_set_display",tolua_imlib2_imlib_context_set_display00);
6720 tolua_function(tolua_S,"imlib_context_disconnect_display",tolua_imlib2_imlib_context_disconnect_display00);
6721 tolua_function(tolua_S,"imlib_context_set_visual",tolua_imlib2_imlib_context_set_visual00);
6722 tolua_function(tolua_S,"imlib_context_set_colormap",tolua_imlib2_imlib_context_set_colormap00);
6723 tolua_function(tolua_S,"imlib_context_set_drawable",tolua_imlib2_imlib_context_set_drawable00);
6724 tolua_function(tolua_S,"imlib_context_set_mask",tolua_imlib2_imlib_context_set_mask00);
6725 tolua_function(tolua_S,"imlib_context_set_dither_mask",tolua_imlib2_imlib_context_set_dither_mask00);
6726 tolua_function(tolua_S,"imlib_context_set_mask_alpha_threshold",tolua_imlib2_imlib_context_set_mask_alpha_threshold00);
6727 tolua_function(tolua_S,"imlib_context_set_anti_alias",tolua_imlib2_imlib_context_set_anti_alias00);
6728 tolua_function(tolua_S,"imlib_context_set_dither",tolua_imlib2_imlib_context_set_dither00);
6729 tolua_function(tolua_S,"imlib_context_set_blend",tolua_imlib2_imlib_context_set_blend00);
6730 tolua_function(tolua_S,"imlib_context_set_color_modifier",tolua_imlib2_imlib_context_set_color_modifier00);
6731 tolua_function(tolua_S,"imlib_context_set_operation",tolua_imlib2_imlib_context_set_operation00);
6732 tolua_function(tolua_S,"imlib_context_set_font",tolua_imlib2_imlib_context_set_font00);
6733 tolua_function(tolua_S,"imlib_context_set_direction",tolua_imlib2_imlib_context_set_direction00);
6734 tolua_function(tolua_S,"imlib_context_set_angle",tolua_imlib2_imlib_context_set_angle00);
6735 tolua_function(tolua_S,"imlib_context_set_color",tolua_imlib2_imlib_context_set_color00);
6736 tolua_function(tolua_S,"imlib_context_set_color_hsva",tolua_imlib2_imlib_context_set_color_hsva00);
6737 tolua_function(tolua_S,"imlib_context_set_color_hlsa",tolua_imlib2_imlib_context_set_color_hlsa00);
6738 tolua_function(tolua_S,"imlib_context_set_color_cmya",tolua_imlib2_imlib_context_set_color_cmya00);
6739 tolua_function(tolua_S,"imlib_context_set_color_range",tolua_imlib2_imlib_context_set_color_range00);
6740 tolua_function(tolua_S,"imlib_context_set_progress_function",tolua_imlib2_imlib_context_set_progress_function00);
6741 tolua_function(tolua_S,"imlib_context_set_progress_granularity",tolua_imlib2_imlib_context_set_progress_granularity00);
6742 tolua_function(tolua_S,"imlib_context_set_image",tolua_imlib2_imlib_context_set_image00);
6743 tolua_function(tolua_S,"imlib_context_set_cliprect",tolua_imlib2_imlib_context_set_cliprect00);
6744 tolua_function(tolua_S,"imlib_context_set_TTF_encoding",tolua_imlib2_imlib_context_set_TTF_encoding00);
6745 tolua_function(tolua_S,"imlib_context_get_display",tolua_imlib2_imlib_context_get_display00);
6746 tolua_function(tolua_S,"imlib_context_get_visual",tolua_imlib2_imlib_context_get_visual00);
6747 tolua_function(tolua_S,"imlib_context_get_colormap",tolua_imlib2_imlib_context_get_colormap00);
6748 tolua_function(tolua_S,"imlib_context_get_drawable",tolua_imlib2_imlib_context_get_drawable00);
6749 tolua_function(tolua_S,"imlib_context_get_mask",tolua_imlib2_imlib_context_get_mask00);
6750 tolua_function(tolua_S,"imlib_context_get_dither_mask",tolua_imlib2_imlib_context_get_dither_mask00);
6751 tolua_function(tolua_S,"imlib_context_get_anti_alias",tolua_imlib2_imlib_context_get_anti_alias00);
6752 tolua_function(tolua_S,"imlib_context_get_mask_alpha_threshold",tolua_imlib2_imlib_context_get_mask_alpha_threshold00);
6753 tolua_function(tolua_S,"imlib_context_get_dither",tolua_imlib2_imlib_context_get_dither00);
6754 tolua_function(tolua_S,"imlib_context_get_blend",tolua_imlib2_imlib_context_get_blend00);
6755 tolua_function(tolua_S,"imlib_context_get_color_modifier",tolua_imlib2_imlib_context_get_color_modifier00);
6756 tolua_function(tolua_S,"imlib_context_get_operation",tolua_imlib2_imlib_context_get_operation00);
6757 tolua_function(tolua_S,"imlib_context_get_font",tolua_imlib2_imlib_context_get_font00);
6758 tolua_function(tolua_S,"imlib_context_get_angle",tolua_imlib2_imlib_context_get_angle00);
6759 tolua_function(tolua_S,"imlib_context_get_direction",tolua_imlib2_imlib_context_get_direction00);
6760 tolua_function(tolua_S,"imlib_context_get_color",tolua_imlib2_imlib_context_get_color00);
6761 tolua_function(tolua_S,"imlib_context_get_color_hsva",tolua_imlib2_imlib_context_get_color_hsva00);
6762 tolua_function(tolua_S,"imlib_context_get_color_hlsa",tolua_imlib2_imlib_context_get_color_hlsa00);
6763 tolua_function(tolua_S,"imlib_context_get_color_cmya",tolua_imlib2_imlib_context_get_color_cmya00);
6764 tolua_function(tolua_S,"imlib_context_get_imlib_color",tolua_imlib2_imlib_context_get_imlib_color00);
6765 tolua_function(tolua_S,"imlib_context_get_color_range",tolua_imlib2_imlib_context_get_color_range00);
6766 tolua_function(tolua_S,"imlib_context_get_progress_function",tolua_imlib2_imlib_context_get_progress_function00);
6767 tolua_function(tolua_S,"imlib_context_get_progress_granularity",tolua_imlib2_imlib_context_get_progress_granularity00);
6768 tolua_function(tolua_S,"imlib_context_get_image",tolua_imlib2_imlib_context_get_image00);
6769 tolua_function(tolua_S,"imlib_context_get_cliprect",tolua_imlib2_imlib_context_get_cliprect00);
6770 tolua_function(tolua_S,"imlib_context_get_TTF_encoding",tolua_imlib2_imlib_context_get_TTF_encoding00);
6771 tolua_function(tolua_S,"imlib_get_cache_size",tolua_imlib2_imlib_get_cache_size00);
6772 tolua_function(tolua_S,"imlib_set_cache_size",tolua_imlib2_imlib_set_cache_size00);
6773 tolua_function(tolua_S,"imlib_get_color_usage",tolua_imlib2_imlib_get_color_usage00);
6774 tolua_function(tolua_S,"imlib_set_color_usage",tolua_imlib2_imlib_set_color_usage00);
6775 tolua_function(tolua_S,"imlib_flush_loaders",tolua_imlib2_imlib_flush_loaders00);
6776 tolua_function(tolua_S,"imlib_get_visual_depth",tolua_imlib2_imlib_get_visual_depth00);
6777 tolua_function(tolua_S,"imlib_get_best_visual",tolua_imlib2_imlib_get_best_visual00);
6778 tolua_function(tolua_S,"imlib_load_image",tolua_imlib2_imlib_load_image00);
6779 tolua_function(tolua_S,"imlib_load_image_immediately",tolua_imlib2_imlib_load_image_immediately00);
6780 tolua_function(tolua_S,"imlib_load_image_without_cache",tolua_imlib2_imlib_load_image_without_cache00);
6781 tolua_function(tolua_S,"imlib_load_image_immediately_without_cache",tolua_imlib2_imlib_load_image_immediately_without_cache00);
6782 tolua_function(tolua_S,"imlib_load_image_with_error_return",tolua_imlib2_imlib_load_image_with_error_return00);
6783 tolua_function(tolua_S,"imlib_free_image",tolua_imlib2_imlib_free_image00);
6784 tolua_function(tolua_S,"imlib_free_image_and_decache",tolua_imlib2_imlib_free_image_and_decache00);
6785 tolua_function(tolua_S,"imlib_image_get_width",tolua_imlib2_imlib_image_get_width00);
6786 tolua_function(tolua_S,"imlib_image_get_height",tolua_imlib2_imlib_image_get_height00);
6787 tolua_function(tolua_S,"imlib_image_get_filename",tolua_imlib2_imlib_image_get_filename00);
6788 tolua_function(tolua_S,"imlib_image_get_data",tolua_imlib2_imlib_image_get_data00);
6789 tolua_function(tolua_S,"imlib_image_get_data_for_reading_only",tolua_imlib2_imlib_image_get_data_for_reading_only00);
6790 tolua_function(tolua_S,"imlib_image_put_back_data",tolua_imlib2_imlib_image_put_back_data00);
6791 tolua_function(tolua_S,"imlib_image_has_alpha",tolua_imlib2_imlib_image_has_alpha00);
6792 tolua_function(tolua_S,"imlib_image_set_changes_on_disk",tolua_imlib2_imlib_image_set_changes_on_disk00);
6793 tolua_function(tolua_S,"imlib_image_get_border",tolua_imlib2_imlib_image_get_border00);
6794 tolua_function(tolua_S,"imlib_image_set_border",tolua_imlib2_imlib_image_set_border00);
6795 tolua_function(tolua_S,"imlib_image_set_format",tolua_imlib2_imlib_image_set_format00);
6796 tolua_function(tolua_S,"imlib_image_set_irrelevant_format",tolua_imlib2_imlib_image_set_irrelevant_format00);
6797 tolua_function(tolua_S,"imlib_image_set_irrelevant_border",tolua_imlib2_imlib_image_set_irrelevant_border00);
6798 tolua_function(tolua_S,"imlib_image_set_irrelevant_alpha",tolua_imlib2_imlib_image_set_irrelevant_alpha00);
6799 tolua_function(tolua_S,"imlib_image_format",tolua_imlib2_imlib_image_format00);
6800 tolua_function(tolua_S,"imlib_image_set_has_alpha",tolua_imlib2_imlib_image_set_has_alpha00);
6801 tolua_function(tolua_S,"imlib_image_query_pixel",tolua_imlib2_imlib_image_query_pixel00);
6802 tolua_function(tolua_S,"imlib_image_query_pixel_hsva",tolua_imlib2_imlib_image_query_pixel_hsva00);
6803 tolua_function(tolua_S,"imlib_image_query_pixel_hlsa",tolua_imlib2_imlib_image_query_pixel_hlsa00);
6804 tolua_function(tolua_S,"imlib_image_query_pixel_cmya",tolua_imlib2_imlib_image_query_pixel_cmya00);
6805 tolua_function(tolua_S,"imlib_render_pixmaps_for_whole_image",tolua_imlib2_imlib_render_pixmaps_for_whole_image00);
6806 tolua_function(tolua_S,"imlib_render_pixmaps_for_whole_image_at_size",tolua_imlib2_imlib_render_pixmaps_for_whole_image_at_size00);
6807 tolua_function(tolua_S,"imlib_free_pixmap_and_mask",tolua_imlib2_imlib_free_pixmap_and_mask00);
6808 tolua_function(tolua_S,"imlib_render_image_on_drawable",tolua_imlib2_imlib_render_image_on_drawable00);
6809 tolua_function(tolua_S,"imlib_render_image_on_drawable_at_size",tolua_imlib2_imlib_render_image_on_drawable_at_size00);
6810 tolua_function(tolua_S,"imlib_render_image_part_on_drawable_at_size",tolua_imlib2_imlib_render_image_part_on_drawable_at_size00);
6811 tolua_function(tolua_S,"imlib_render_get_pixel_color",tolua_imlib2_imlib_render_get_pixel_color00);
6812 tolua_function(tolua_S,"imlib_blend_image_onto_image",tolua_imlib2_imlib_blend_image_onto_image00);
6813 tolua_function(tolua_S,"imlib_create_image",tolua_imlib2_imlib_create_image00);
6814 tolua_function(tolua_S,"imlib_create_image_using_data",tolua_imlib2_imlib_create_image_using_data00);
6815 tolua_function(tolua_S,"imlib_create_image_using_copied_data",tolua_imlib2_imlib_create_image_using_copied_data00);
6816 tolua_function(tolua_S,"imlib_create_image_from_drawable",tolua_imlib2_imlib_create_image_from_drawable00);
6817 tolua_function(tolua_S,"imlib_create_image_from_ximage",tolua_imlib2_imlib_create_image_from_ximage00);
6818 tolua_function(tolua_S,"imlib_create_scaled_image_from_drawable",tolua_imlib2_imlib_create_scaled_image_from_drawable00);
6819 tolua_function(tolua_S,"imlib_copy_drawable_to_image",tolua_imlib2_imlib_copy_drawable_to_image00);
6820 tolua_function(tolua_S,"imlib_clone_image",tolua_imlib2_imlib_clone_image00);
6821 tolua_function(tolua_S,"imlib_create_cropped_image",tolua_imlib2_imlib_create_cropped_image00);
6822 tolua_function(tolua_S,"imlib_create_cropped_scaled_image",tolua_imlib2_imlib_create_cropped_scaled_image00);
6823 tolua_function(tolua_S,"imlib_updates_clone",tolua_imlib2_imlib_updates_clone00);
6824 tolua_function(tolua_S,"imlib_update_append_rect",tolua_imlib2_imlib_update_append_rect00);
6825 tolua_function(tolua_S,"imlib_updates_merge",tolua_imlib2_imlib_updates_merge00);
6826 tolua_function(tolua_S,"imlib_updates_merge_for_rendering",tolua_imlib2_imlib_updates_merge_for_rendering00);
6827 tolua_function(tolua_S,"imlib_updates_free",tolua_imlib2_imlib_updates_free00);
6828 tolua_function(tolua_S,"imlib_updates_get_next",tolua_imlib2_imlib_updates_get_next00);
6829 tolua_function(tolua_S,"imlib_updates_get_coordinates",tolua_imlib2_imlib_updates_get_coordinates00);
6830 tolua_function(tolua_S,"imlib_updates_set_coordinates",tolua_imlib2_imlib_updates_set_coordinates00);
6831 tolua_function(tolua_S,"imlib_render_image_updates_on_drawable",tolua_imlib2_imlib_render_image_updates_on_drawable00);
6832 tolua_function(tolua_S,"imlib_updates_init",tolua_imlib2_imlib_updates_init00);
6833 tolua_function(tolua_S,"imlib_updates_append_updates",tolua_imlib2_imlib_updates_append_updates00);
6834 tolua_function(tolua_S,"imlib_image_flip_horizontal",tolua_imlib2_imlib_image_flip_horizontal00);
6835 tolua_function(tolua_S,"imlib_image_flip_vertical",tolua_imlib2_imlib_image_flip_vertical00);
6836 tolua_function(tolua_S,"imlib_image_flip_diagonal",tolua_imlib2_imlib_image_flip_diagonal00);
6837 tolua_function(tolua_S,"imlib_image_orientate",tolua_imlib2_imlib_image_orientate00);
6838 tolua_function(tolua_S,"imlib_image_blur",tolua_imlib2_imlib_image_blur00);
6839 tolua_function(tolua_S,"imlib_image_sharpen",tolua_imlib2_imlib_image_sharpen00);
6840 tolua_function(tolua_S,"imlib_image_tile_horizontal",tolua_imlib2_imlib_image_tile_horizontal00);
6841 tolua_function(tolua_S,"imlib_image_tile_vertical",tolua_imlib2_imlib_image_tile_vertical00);
6842 tolua_function(tolua_S,"imlib_image_tile",tolua_imlib2_imlib_image_tile00);
6843 tolua_function(tolua_S,"imlib_load_font",tolua_imlib2_imlib_load_font00);
6844 tolua_function(tolua_S,"imlib_free_font",tolua_imlib2_imlib_free_font00);
6845 tolua_function(tolua_S,"imlib_insert_font_into_fallback_chain",tolua_imlib2_imlib_insert_font_into_fallback_chain00);
6846 tolua_function(tolua_S,"imlib_remove_font_from_fallback_chain",tolua_imlib2_imlib_remove_font_from_fallback_chain00);
6847 tolua_function(tolua_S,"imlib_get_prev_font_in_fallback_chain",tolua_imlib2_imlib_get_prev_font_in_fallback_chain00);
6848 tolua_function(tolua_S,"imlib_get_next_font_in_fallback_chain",tolua_imlib2_imlib_get_next_font_in_fallback_chain00);
6849 tolua_function(tolua_S,"imlib_text_draw",tolua_imlib2_imlib_text_draw00);
6850 tolua_function(tolua_S,"imlib_text_draw_with_return_metrics",tolua_imlib2_imlib_text_draw_with_return_metrics00);
6851 tolua_function(tolua_S,"imlib_get_text_size",tolua_imlib2_imlib_get_text_size00);
6852 tolua_function(tolua_S,"imlib_get_text_advance",tolua_imlib2_imlib_get_text_advance00);
6853 tolua_function(tolua_S,"imlib_get_text_inset",tolua_imlib2_imlib_get_text_inset00);
6854 tolua_function(tolua_S,"imlib_add_path_to_font_path",tolua_imlib2_imlib_add_path_to_font_path00);
6855 tolua_function(tolua_S,"imlib_remove_path_from_font_path",tolua_imlib2_imlib_remove_path_from_font_path00);
6856 tolua_function(tolua_S,"imlib_list_font_path",tolua_imlib2_imlib_list_font_path00);
6857 tolua_function(tolua_S,"imlib_text_get_index_and_location",tolua_imlib2_imlib_text_get_index_and_location00);
6858 tolua_function(tolua_S,"imlib_text_get_location_at_index",tolua_imlib2_imlib_text_get_location_at_index00);
6859 tolua_function(tolua_S,"imlib_list_fonts",tolua_imlib2_imlib_list_fonts00);
6860 tolua_function(tolua_S,"imlib_free_font_list",tolua_imlib2_imlib_free_font_list00);
6861 tolua_function(tolua_S,"imlib_get_font_cache_size",tolua_imlib2_imlib_get_font_cache_size00);
6862 tolua_function(tolua_S,"imlib_set_font_cache_size",tolua_imlib2_imlib_set_font_cache_size00);
6863 tolua_function(tolua_S,"imlib_flush_font_cache",tolua_imlib2_imlib_flush_font_cache00);
6864 tolua_function(tolua_S,"imlib_get_font_ascent",tolua_imlib2_imlib_get_font_ascent00);
6865 tolua_function(tolua_S,"imlib_get_font_descent",tolua_imlib2_imlib_get_font_descent00);
6866 tolua_function(tolua_S,"imlib_get_maximum_font_ascent",tolua_imlib2_imlib_get_maximum_font_ascent00);
6867 tolua_function(tolua_S,"imlib_get_maximum_font_descent",tolua_imlib2_imlib_get_maximum_font_descent00);
6868 tolua_function(tolua_S,"imlib_create_color_modifier",tolua_imlib2_imlib_create_color_modifier00);
6869 tolua_function(tolua_S,"imlib_free_color_modifier",tolua_imlib2_imlib_free_color_modifier00);
6870 tolua_function(tolua_S,"imlib_modify_color_modifier_gamma",tolua_imlib2_imlib_modify_color_modifier_gamma00);
6871 tolua_function(tolua_S,"imlib_modify_color_modifier_brightness",tolua_imlib2_imlib_modify_color_modifier_brightness00);
6872 tolua_function(tolua_S,"imlib_modify_color_modifier_contrast",tolua_imlib2_imlib_modify_color_modifier_contrast00);
6873 tolua_function(tolua_S,"imlib_set_color_modifier_tables",tolua_imlib2_imlib_set_color_modifier_tables00);
6874 tolua_function(tolua_S,"imlib_get_color_modifier_tables",tolua_imlib2_imlib_get_color_modifier_tables00);
6875 tolua_function(tolua_S,"imlib_reset_color_modifier",tolua_imlib2_imlib_reset_color_modifier00);
6876 tolua_function(tolua_S,"imlib_apply_color_modifier",tolua_imlib2_imlib_apply_color_modifier00);
6877 tolua_function(tolua_S,"imlib_apply_color_modifier_to_rectangle",tolua_imlib2_imlib_apply_color_modifier_to_rectangle00);
6878 tolua_function(tolua_S,"imlib_image_draw_pixel",tolua_imlib2_imlib_image_draw_pixel00);
6879 tolua_function(tolua_S,"imlib_image_draw_line",tolua_imlib2_imlib_image_draw_line00);
6880 tolua_function(tolua_S,"imlib_image_draw_rectangle",tolua_imlib2_imlib_image_draw_rectangle00);
6881 tolua_function(tolua_S,"imlib_image_fill_rectangle",tolua_imlib2_imlib_image_fill_rectangle00);
6882 tolua_function(tolua_S,"imlib_image_copy_alpha_to_image",tolua_imlib2_imlib_image_copy_alpha_to_image00);
6883 tolua_function(tolua_S,"imlib_image_copy_alpha_rectangle_to_image",tolua_imlib2_imlib_image_copy_alpha_rectangle_to_image00);
6884 tolua_function(tolua_S,"imlib_image_scroll_rect",tolua_imlib2_imlib_image_scroll_rect00);
6885 tolua_function(tolua_S,"imlib_image_copy_rect",tolua_imlib2_imlib_image_copy_rect00);
6886 tolua_function(tolua_S,"imlib_polygon_new",tolua_imlib2_imlib_polygon_new00);
6887 tolua_function(tolua_S,"imlib_polygon_free",tolua_imlib2_imlib_polygon_free00);
6888 tolua_function(tolua_S,"imlib_polygon_add_point",tolua_imlib2_imlib_polygon_add_point00);
6889 tolua_function(tolua_S,"imlib_image_draw_polygon",tolua_imlib2_imlib_image_draw_polygon00);
6890 tolua_function(tolua_S,"imlib_image_fill_polygon",tolua_imlib2_imlib_image_fill_polygon00);
6891 tolua_function(tolua_S,"imlib_polygon_get_bounds",tolua_imlib2_imlib_polygon_get_bounds00);
6892 tolua_function(tolua_S,"imlib_polygon_contains_point",tolua_imlib2_imlib_polygon_contains_point00);
6893 tolua_function(tolua_S,"imlib_image_draw_ellipse",tolua_imlib2_imlib_image_draw_ellipse00);
6894 tolua_function(tolua_S,"imlib_image_fill_ellipse",tolua_imlib2_imlib_image_fill_ellipse00);
6895 tolua_function(tolua_S,"imlib_create_color_range",tolua_imlib2_imlib_create_color_range00);
6896 tolua_function(tolua_S,"imlib_free_color_range",tolua_imlib2_imlib_free_color_range00);
6897 tolua_function(tolua_S,"imlib_add_color_to_color_range",tolua_imlib2_imlib_add_color_to_color_range00);
6898 tolua_function(tolua_S,"imlib_image_fill_color_range_rectangle",tolua_imlib2_imlib_image_fill_color_range_rectangle00);
6899 tolua_function(tolua_S,"imlib_image_fill_hsva_color_range_rectangle",tolua_imlib2_imlib_image_fill_hsva_color_range_rectangle00);
6900 tolua_function(tolua_S,"imlib_image_attach_data_value",tolua_imlib2_imlib_image_attach_data_value00);
6901 tolua_function(tolua_S,"imlib_image_get_attached_data",tolua_imlib2_imlib_image_get_attached_data00);
6902 tolua_function(tolua_S,"imlib_image_get_attached_value",tolua_imlib2_imlib_image_get_attached_value00);
6903 tolua_function(tolua_S,"imlib_image_remove_attached_data_value",tolua_imlib2_imlib_image_remove_attached_data_value00);
6904 tolua_function(tolua_S,"imlib_image_remove_and_free_attached_data_value",tolua_imlib2_imlib_image_remove_and_free_attached_data_value00);
6905 tolua_function(tolua_S,"imlib_save_image",tolua_imlib2_imlib_save_image00);
6906 tolua_function(tolua_S,"imlib_save_image_with_error_return",tolua_imlib2_imlib_save_image_with_error_return00);
6907 tolua_function(tolua_S,"imlib_create_rotated_image",tolua_imlib2_imlib_create_rotated_image00);
6908 tolua_function(tolua_S,"imlib_rotate_image_from_buffer",tolua_imlib2_imlib_rotate_image_from_buffer00);
6909 tolua_function(tolua_S,"imlib_blend_image_onto_image_at_angle",tolua_imlib2_imlib_blend_image_onto_image_at_angle00);
6910 tolua_function(tolua_S,"imlib_blend_image_onto_image_skewed",tolua_imlib2_imlib_blend_image_onto_image_skewed00);
6911 tolua_function(tolua_S,"imlib_render_image_on_drawable_skewed",tolua_imlib2_imlib_render_image_on_drawable_skewed00);
6912 tolua_function(tolua_S,"imlib_render_image_on_drawable_at_angle",tolua_imlib2_imlib_render_image_on_drawable_at_angle00);
6913 tolua_function(tolua_S,"imlib_image_filter",tolua_imlib2_imlib_image_filter00);
6914 tolua_function(tolua_S,"imlib_create_filter",tolua_imlib2_imlib_create_filter00);
6915 tolua_function(tolua_S,"imlib_context_set_filter",tolua_imlib2_imlib_context_set_filter00);
6916 tolua_function(tolua_S,"imlib_context_get_filter",tolua_imlib2_imlib_context_get_filter00);
6917 tolua_function(tolua_S,"imlib_free_filter",tolua_imlib2_imlib_free_filter00);
6918 tolua_function(tolua_S,"imlib_filter_set",tolua_imlib2_imlib_filter_set00);
6919 tolua_function(tolua_S,"imlib_filter_set_alpha",tolua_imlib2_imlib_filter_set_alpha00);
6920 tolua_function(tolua_S,"imlib_filter_set_red",tolua_imlib2_imlib_filter_set_red00);
6921 tolua_function(tolua_S,"imlib_filter_set_green",tolua_imlib2_imlib_filter_set_green00);
6922 tolua_function(tolua_S,"imlib_filter_set_blue",tolua_imlib2_imlib_filter_set_blue00);
6923 tolua_function(tolua_S,"imlib_filter_constants",tolua_imlib2_imlib_filter_constants00);
6924 tolua_function(tolua_S,"imlib_filter_divisors",tolua_imlib2_imlib_filter_divisors00);
6925 tolua_function(tolua_S,"imlib_image_clear",tolua_imlib2_imlib_image_clear00);
6926 tolua_function(tolua_S,"imlib_image_clear_color",tolua_imlib2_imlib_image_clear_color00);
6927 tolua_endmodule(tolua_S);
6932 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
6933 TOLUA_API int luaopen_imlib2 (lua_State* tolua_S) {
6934 return tolua_imlib2_open(tolua_S);