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*
19 #define TOLUA_DISABLE_tolua_imlib2_imlib_get_next_font_in_fallback_chain00
20 #define TOLUA_DISABLE_tolua_imlib2_imlib_insert_font_into_fallback_chain00
21 #define TOLUA_DISABLE_tolua_imlib2_imlib_remove_font_from_fallback_chain00
22 #define TOLUA_DISABLE_tolua_imlib2_imlib_get_prev_font_in_fallback_chain00
23 /* function to release collected object via destructor */
26 static int tolua_collect_Pixmap (lua_State* tolua_S)
28 Pixmap* self = (Pixmap*) tolua_tousertype(tolua_S,1,0);
33 static int tolua_collect_Colormap (lua_State* tolua_S)
35 Colormap* self = (Colormap*) tolua_tousertype(tolua_S,1,0);
40 static int tolua_collect_Drawable (lua_State* tolua_S)
42 Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
47 static int tolua_collect_Imlib_Progress_Function (lua_State* tolua_S)
49 Imlib_Progress_Function* self = (Imlib_Progress_Function*) tolua_tousertype(tolua_S,1,0);
56 /* function to register type */
57 static void tolua_reg_types (lua_State* tolua_S)
59 tolua_usertype(tolua_S,"Visual");
60 tolua_usertype(tolua_S,"Imlib_Data_Destructor_Function");
61 tolua_usertype(tolua_S,"Imlib_Progress_Function");
62 tolua_usertype(tolua_S,"Pixmap");
63 tolua_usertype(tolua_S,"Colormap");
64 tolua_usertype(tolua_S,"Drawable");
65 tolua_usertype(tolua_S,"Display");
66 tolua_usertype(tolua_S,"XImage");
67 tolua_usertype(tolua_S,"_imlib_border");
68 tolua_usertype(tolua_S,"_imlib_color");
71 /* function: imlib_context_new */
72 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_new00
73 static int tolua_imlib2_imlib_context_new00(lua_State* tolua_S)
76 tolua_Error tolua_err;
78 !tolua_isnoobj(tolua_S,1,&tolua_err)
85 _userdata tolua_ret = ( _userdata) imlib_context_new();
86 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
92 tolua_error(tolua_S,"#ferror in function 'imlib_context_new'.",&tolua_err);
96 #endif //#ifndef TOLUA_DISABLE
98 /* function: imlib_context_free */
99 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_free00
100 static int tolua_imlib2_imlib_context_free00(lua_State* tolua_S)
102 #ifndef TOLUA_RELEASE
103 tolua_Error tolua_err;
105 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
106 !tolua_isnoobj(tolua_S,2,&tolua_err)
112 _userdata context = (( _userdata) tolua_touserdata(tolua_S,1,0));
114 imlib_context_free(context);
118 #ifndef TOLUA_RELEASE
120 tolua_error(tolua_S,"#ferror in function 'imlib_context_free'.",&tolua_err);
124 #endif //#ifndef TOLUA_DISABLE
126 /* function: imlib_context_push */
127 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_push00
128 static int tolua_imlib2_imlib_context_push00(lua_State* tolua_S)
130 #ifndef TOLUA_RELEASE
131 tolua_Error tolua_err;
133 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
134 !tolua_isnoobj(tolua_S,2,&tolua_err)
140 _userdata context = (( _userdata) tolua_touserdata(tolua_S,1,0));
142 imlib_context_push(context);
146 #ifndef TOLUA_RELEASE
148 tolua_error(tolua_S,"#ferror in function 'imlib_context_push'.",&tolua_err);
152 #endif //#ifndef TOLUA_DISABLE
154 /* function: imlib_context_pop */
155 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_pop00
156 static int tolua_imlib2_imlib_context_pop00(lua_State* tolua_S)
158 #ifndef TOLUA_RELEASE
159 tolua_Error tolua_err;
161 !tolua_isnoobj(tolua_S,1,&tolua_err)
172 #ifndef TOLUA_RELEASE
174 tolua_error(tolua_S,"#ferror in function 'imlib_context_pop'.",&tolua_err);
178 #endif //#ifndef TOLUA_DISABLE
180 /* function: imlib_context_get */
181 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get00
182 static int tolua_imlib2_imlib_context_get00(lua_State* tolua_S)
184 #ifndef TOLUA_RELEASE
185 tolua_Error tolua_err;
187 !tolua_isnoobj(tolua_S,1,&tolua_err)
194 _userdata tolua_ret = ( _userdata) imlib_context_get();
195 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
199 #ifndef TOLUA_RELEASE
201 tolua_error(tolua_S,"#ferror in function 'imlib_context_get'.",&tolua_err);
205 #endif //#ifndef TOLUA_DISABLE
207 /* function: imlib_context_set_display */
208 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_display00
209 static int tolua_imlib2_imlib_context_set_display00(lua_State* tolua_S)
211 #ifndef TOLUA_RELEASE
212 tolua_Error tolua_err;
214 !tolua_isusertype(tolua_S,1,"Display",0,&tolua_err) ||
215 !tolua_isnoobj(tolua_S,2,&tolua_err)
221 Display* display = ((Display*) tolua_tousertype(tolua_S,1,0));
223 imlib_context_set_display(display);
227 #ifndef TOLUA_RELEASE
229 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_display'.",&tolua_err);
233 #endif //#ifndef TOLUA_DISABLE
235 /* function: imlib_context_disconnect_display */
236 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_disconnect_display00
237 static int tolua_imlib2_imlib_context_disconnect_display00(lua_State* tolua_S)
239 #ifndef TOLUA_RELEASE
240 tolua_Error tolua_err;
242 !tolua_isnoobj(tolua_S,1,&tolua_err)
249 imlib_context_disconnect_display();
253 #ifndef TOLUA_RELEASE
255 tolua_error(tolua_S,"#ferror in function 'imlib_context_disconnect_display'.",&tolua_err);
259 #endif //#ifndef TOLUA_DISABLE
261 /* function: imlib_context_set_visual */
262 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_visual00
263 static int tolua_imlib2_imlib_context_set_visual00(lua_State* tolua_S)
265 #ifndef TOLUA_RELEASE
266 tolua_Error tolua_err;
268 !tolua_isusertype(tolua_S,1,"Visual",0,&tolua_err) ||
269 !tolua_isnoobj(tolua_S,2,&tolua_err)
275 Visual* visual = ((Visual*) tolua_tousertype(tolua_S,1,0));
277 imlib_context_set_visual(visual);
281 #ifndef TOLUA_RELEASE
283 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_visual'.",&tolua_err);
287 #endif //#ifndef TOLUA_DISABLE
289 /* function: imlib_context_set_colormap */
290 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_colormap00
291 static int tolua_imlib2_imlib_context_set_colormap00(lua_State* tolua_S)
293 #ifndef TOLUA_RELEASE
294 tolua_Error tolua_err;
296 (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"Colormap",0,&tolua_err)) ||
297 !tolua_isnoobj(tolua_S,2,&tolua_err)
303 Colormap colormap = *((Colormap*) tolua_tousertype(tolua_S,1,0));
305 imlib_context_set_colormap(colormap);
309 #ifndef TOLUA_RELEASE
311 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_colormap'.",&tolua_err);
315 #endif //#ifndef TOLUA_DISABLE
317 /* function: imlib_context_set_drawable */
318 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_drawable00
319 static int tolua_imlib2_imlib_context_set_drawable00(lua_State* tolua_S)
321 #ifndef TOLUA_RELEASE
322 tolua_Error tolua_err;
324 (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err)) ||
325 !tolua_isnoobj(tolua_S,2,&tolua_err)
331 Drawable drawable = *((Drawable*) tolua_tousertype(tolua_S,1,0));
333 imlib_context_set_drawable(drawable);
337 #ifndef TOLUA_RELEASE
339 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_drawable'.",&tolua_err);
343 #endif //#ifndef TOLUA_DISABLE
345 /* function: imlib_context_set_mask */
346 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_mask00
347 static int tolua_imlib2_imlib_context_set_mask00(lua_State* tolua_S)
349 #ifndef TOLUA_RELEASE
350 tolua_Error tolua_err;
352 (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"Pixmap",0,&tolua_err)) ||
353 !tolua_isnoobj(tolua_S,2,&tolua_err)
359 Pixmap mask = *((Pixmap*) tolua_tousertype(tolua_S,1,0));
361 imlib_context_set_mask(mask);
365 #ifndef TOLUA_RELEASE
367 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_mask'.",&tolua_err);
371 #endif //#ifndef TOLUA_DISABLE
373 /* function: imlib_context_set_dither_mask */
374 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_dither_mask00
375 static int tolua_imlib2_imlib_context_set_dither_mask00(lua_State* tolua_S)
377 #ifndef TOLUA_RELEASE
378 tolua_Error tolua_err;
380 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
381 !tolua_isnoobj(tolua_S,2,&tolua_err)
387 char dither_mask = ((char) tolua_tonumber(tolua_S,1,0));
389 imlib_context_set_dither_mask(dither_mask);
393 #ifndef TOLUA_RELEASE
395 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_dither_mask'.",&tolua_err);
399 #endif //#ifndef TOLUA_DISABLE
401 /* function: imlib_context_set_mask_alpha_threshold */
402 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_mask_alpha_threshold00
403 static int tolua_imlib2_imlib_context_set_mask_alpha_threshold00(lua_State* tolua_S)
405 #ifndef TOLUA_RELEASE
406 tolua_Error tolua_err;
408 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
409 !tolua_isnoobj(tolua_S,2,&tolua_err)
415 int mask_alpha_threshold = ((int) tolua_tonumber(tolua_S,1,0));
417 imlib_context_set_mask_alpha_threshold(mask_alpha_threshold);
421 #ifndef TOLUA_RELEASE
423 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_mask_alpha_threshold'.",&tolua_err);
427 #endif //#ifndef TOLUA_DISABLE
429 /* function: imlib_context_set_anti_alias */
430 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_anti_alias00
431 static int tolua_imlib2_imlib_context_set_anti_alias00(lua_State* tolua_S)
433 #ifndef TOLUA_RELEASE
434 tolua_Error tolua_err;
436 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
437 !tolua_isnoobj(tolua_S,2,&tolua_err)
443 char anti_alias = ((char) tolua_tonumber(tolua_S,1,0));
445 imlib_context_set_anti_alias(anti_alias);
449 #ifndef TOLUA_RELEASE
451 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_anti_alias'.",&tolua_err);
455 #endif //#ifndef TOLUA_DISABLE
457 /* function: imlib_context_set_dither */
458 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_dither00
459 static int tolua_imlib2_imlib_context_set_dither00(lua_State* tolua_S)
461 #ifndef TOLUA_RELEASE
462 tolua_Error tolua_err;
464 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
465 !tolua_isnoobj(tolua_S,2,&tolua_err)
471 char dither = ((char) tolua_tonumber(tolua_S,1,0));
473 imlib_context_set_dither(dither);
477 #ifndef TOLUA_RELEASE
479 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_dither'.",&tolua_err);
483 #endif //#ifndef TOLUA_DISABLE
485 /* function: imlib_context_set_blend */
486 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_blend00
487 static int tolua_imlib2_imlib_context_set_blend00(lua_State* tolua_S)
489 #ifndef TOLUA_RELEASE
490 tolua_Error tolua_err;
492 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
493 !tolua_isnoobj(tolua_S,2,&tolua_err)
499 char blend = ((char) tolua_tonumber(tolua_S,1,0));
501 imlib_context_set_blend(blend);
505 #ifndef TOLUA_RELEASE
507 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_blend'.",&tolua_err);
511 #endif //#ifndef TOLUA_DISABLE
513 /* function: imlib_context_set_color_modifier */
514 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_color_modifier00
515 static int tolua_imlib2_imlib_context_set_color_modifier00(lua_State* tolua_S)
517 #ifndef TOLUA_RELEASE
518 tolua_Error tolua_err;
520 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
521 !tolua_isnoobj(tolua_S,2,&tolua_err)
527 _userdata color_modifier = (( _userdata) tolua_touserdata(tolua_S,1,0));
529 imlib_context_set_color_modifier(color_modifier);
533 #ifndef TOLUA_RELEASE
535 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_color_modifier'.",&tolua_err);
539 #endif //#ifndef TOLUA_DISABLE
541 /* function: imlib_context_set_operation */
542 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_operation00
543 static int tolua_imlib2_imlib_context_set_operation00(lua_State* tolua_S)
545 #ifndef TOLUA_RELEASE
546 tolua_Error tolua_err;
548 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
549 !tolua_isnoobj(tolua_S,2,&tolua_err)
555 Imlib_Operation operation = ((Imlib_Operation) (int) tolua_tonumber(tolua_S,1,0));
557 imlib_context_set_operation(operation);
561 #ifndef TOLUA_RELEASE
563 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_operation'.",&tolua_err);
567 #endif //#ifndef TOLUA_DISABLE
569 /* function: imlib_context_set_font */
570 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_font00
571 static int tolua_imlib2_imlib_context_set_font00(lua_State* tolua_S)
573 #ifndef TOLUA_RELEASE
574 tolua_Error tolua_err;
576 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
577 !tolua_isnoobj(tolua_S,2,&tolua_err)
583 _userdata font = (( _userdata) tolua_touserdata(tolua_S,1,0));
585 imlib_context_set_font(font);
589 #ifndef TOLUA_RELEASE
591 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_font'.",&tolua_err);
595 #endif //#ifndef TOLUA_DISABLE
597 /* function: imlib_context_set_direction */
598 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_direction00
599 static int tolua_imlib2_imlib_context_set_direction00(lua_State* tolua_S)
601 #ifndef TOLUA_RELEASE
602 tolua_Error tolua_err;
604 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
605 !tolua_isnoobj(tolua_S,2,&tolua_err)
611 Imlib_Text_Direction direction = ((Imlib_Text_Direction) (int) tolua_tonumber(tolua_S,1,0));
613 imlib_context_set_direction(direction);
617 #ifndef TOLUA_RELEASE
619 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_direction'.",&tolua_err);
623 #endif //#ifndef TOLUA_DISABLE
625 /* function: imlib_context_set_angle */
626 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_angle00
627 static int tolua_imlib2_imlib_context_set_angle00(lua_State* tolua_S)
629 #ifndef TOLUA_RELEASE
630 tolua_Error tolua_err;
632 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
633 !tolua_isnoobj(tolua_S,2,&tolua_err)
639 double angle = ((double) tolua_tonumber(tolua_S,1,0));
641 imlib_context_set_angle(angle);
645 #ifndef TOLUA_RELEASE
647 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_angle'.",&tolua_err);
651 #endif //#ifndef TOLUA_DISABLE
653 /* function: imlib_context_set_color */
654 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_color00
655 static int tolua_imlib2_imlib_context_set_color00(lua_State* tolua_S)
657 #ifndef TOLUA_RELEASE
658 tolua_Error tolua_err;
660 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
661 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
662 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
663 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
664 !tolua_isnoobj(tolua_S,5,&tolua_err)
670 int red = ((int) tolua_tonumber(tolua_S,1,0));
671 int green = ((int) tolua_tonumber(tolua_S,2,0));
672 int blue = ((int) tolua_tonumber(tolua_S,3,0));
673 int alpha = ((int) tolua_tonumber(tolua_S,4,0));
675 imlib_context_set_color(red,green,blue,alpha);
679 #ifndef TOLUA_RELEASE
681 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_color'.",&tolua_err);
685 #endif //#ifndef TOLUA_DISABLE
687 /* function: imlib_context_set_color_hsva */
688 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_color_hsva00
689 static int tolua_imlib2_imlib_context_set_color_hsva00(lua_State* tolua_S)
691 #ifndef TOLUA_RELEASE
692 tolua_Error tolua_err;
694 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
695 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
696 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
697 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
698 !tolua_isnoobj(tolua_S,5,&tolua_err)
704 float hue = ((float) tolua_tonumber(tolua_S,1,0));
705 float saturation = ((float) tolua_tonumber(tolua_S,2,0));
706 float value = ((float) tolua_tonumber(tolua_S,3,0));
707 int alpha = ((int) tolua_tonumber(tolua_S,4,0));
709 imlib_context_set_color_hsva(hue,saturation,value,alpha);
713 #ifndef TOLUA_RELEASE
715 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_color_hsva'.",&tolua_err);
719 #endif //#ifndef TOLUA_DISABLE
721 /* function: imlib_context_set_color_hlsa */
722 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_color_hlsa00
723 static int tolua_imlib2_imlib_context_set_color_hlsa00(lua_State* tolua_S)
725 #ifndef TOLUA_RELEASE
726 tolua_Error tolua_err;
728 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
729 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
730 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
731 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
732 !tolua_isnoobj(tolua_S,5,&tolua_err)
738 float hue = ((float) tolua_tonumber(tolua_S,1,0));
739 float lightness = ((float) tolua_tonumber(tolua_S,2,0));
740 float saturation = ((float) tolua_tonumber(tolua_S,3,0));
741 int alpha = ((int) tolua_tonumber(tolua_S,4,0));
743 imlib_context_set_color_hlsa(hue,lightness,saturation,alpha);
747 #ifndef TOLUA_RELEASE
749 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_color_hlsa'.",&tolua_err);
753 #endif //#ifndef TOLUA_DISABLE
755 /* function: imlib_context_set_color_cmya */
756 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_color_cmya00
757 static int tolua_imlib2_imlib_context_set_color_cmya00(lua_State* tolua_S)
759 #ifndef TOLUA_RELEASE
760 tolua_Error tolua_err;
762 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
763 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
764 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
765 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
766 !tolua_isnoobj(tolua_S,5,&tolua_err)
772 int cyan = ((int) tolua_tonumber(tolua_S,1,0));
773 int magenta = ((int) tolua_tonumber(tolua_S,2,0));
774 int yellow = ((int) tolua_tonumber(tolua_S,3,0));
775 int alpha = ((int) tolua_tonumber(tolua_S,4,0));
777 imlib_context_set_color_cmya(cyan,magenta,yellow,alpha);
781 #ifndef TOLUA_RELEASE
783 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_color_cmya'.",&tolua_err);
787 #endif //#ifndef TOLUA_DISABLE
789 /* function: imlib_context_set_color_range */
790 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_color_range00
791 static int tolua_imlib2_imlib_context_set_color_range00(lua_State* tolua_S)
793 #ifndef TOLUA_RELEASE
794 tolua_Error tolua_err;
796 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
797 !tolua_isnoobj(tolua_S,2,&tolua_err)
803 _userdata color_range = (( _userdata) tolua_touserdata(tolua_S,1,0));
805 imlib_context_set_color_range(color_range);
809 #ifndef TOLUA_RELEASE
811 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_color_range'.",&tolua_err);
815 #endif //#ifndef TOLUA_DISABLE
817 /* function: imlib_context_set_progress_function */
818 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_progress_function00
819 static int tolua_imlib2_imlib_context_set_progress_function00(lua_State* tolua_S)
821 #ifndef TOLUA_RELEASE
822 tolua_Error tolua_err;
824 (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"Imlib_Progress_Function",0,&tolua_err)) ||
825 !tolua_isnoobj(tolua_S,2,&tolua_err)
831 Imlib_Progress_Function progress_function = *((Imlib_Progress_Function*) tolua_tousertype(tolua_S,1,0));
833 imlib_context_set_progress_function(progress_function);
837 #ifndef TOLUA_RELEASE
839 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_progress_function'.",&tolua_err);
843 #endif //#ifndef TOLUA_DISABLE
845 /* function: imlib_context_set_progress_granularity */
846 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_progress_granularity00
847 static int tolua_imlib2_imlib_context_set_progress_granularity00(lua_State* tolua_S)
849 #ifndef TOLUA_RELEASE
850 tolua_Error tolua_err;
852 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
853 !tolua_isnoobj(tolua_S,2,&tolua_err)
859 char progress_granularity = ((char) tolua_tonumber(tolua_S,1,0));
861 imlib_context_set_progress_granularity(progress_granularity);
865 #ifndef TOLUA_RELEASE
867 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_progress_granularity'.",&tolua_err);
871 #endif //#ifndef TOLUA_DISABLE
873 /* function: imlib_context_set_image */
874 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_image00
875 static int tolua_imlib2_imlib_context_set_image00(lua_State* tolua_S)
877 #ifndef TOLUA_RELEASE
878 tolua_Error tolua_err;
880 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
881 !tolua_isnoobj(tolua_S,2,&tolua_err)
887 _userdata image = (( _userdata) tolua_touserdata(tolua_S,1,0));
889 imlib_context_set_image(image);
893 #ifndef TOLUA_RELEASE
895 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_image'.",&tolua_err);
899 #endif //#ifndef TOLUA_DISABLE
901 /* function: imlib_context_set_cliprect */
902 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_cliprect00
903 static int tolua_imlib2_imlib_context_set_cliprect00(lua_State* tolua_S)
905 #ifndef TOLUA_RELEASE
906 tolua_Error tolua_err;
908 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
909 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
910 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
911 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
912 !tolua_isnoobj(tolua_S,5,&tolua_err)
918 int x = ((int) tolua_tonumber(tolua_S,1,0));
919 int y = ((int) tolua_tonumber(tolua_S,2,0));
920 int w = ((int) tolua_tonumber(tolua_S,3,0));
921 int h = ((int) tolua_tonumber(tolua_S,4,0));
923 imlib_context_set_cliprect(x,y,w,h);
927 #ifndef TOLUA_RELEASE
929 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_cliprect'.",&tolua_err);
933 #endif //#ifndef TOLUA_DISABLE
935 /* function: imlib_context_set_TTF_encoding */
936 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_TTF_encoding00
937 static int tolua_imlib2_imlib_context_set_TTF_encoding00(lua_State* tolua_S)
939 #ifndef TOLUA_RELEASE
940 tolua_Error tolua_err;
942 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
943 !tolua_isnoobj(tolua_S,2,&tolua_err)
949 Imlib_TTF_Encoding encoding = ((Imlib_TTF_Encoding) (int) tolua_tonumber(tolua_S,1,0));
951 imlib_context_set_TTF_encoding(encoding);
955 #ifndef TOLUA_RELEASE
957 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_TTF_encoding'.",&tolua_err);
961 #endif //#ifndef TOLUA_DISABLE
963 /* function: imlib_context_get_display */
964 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_display00
965 static int tolua_imlib2_imlib_context_get_display00(lua_State* tolua_S)
967 #ifndef TOLUA_RELEASE
968 tolua_Error tolua_err;
970 !tolua_isnoobj(tolua_S,1,&tolua_err)
977 Display* tolua_ret = (Display*) imlib_context_get_display();
978 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Display");
982 #ifndef TOLUA_RELEASE
984 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_display'.",&tolua_err);
988 #endif //#ifndef TOLUA_DISABLE
990 /* function: imlib_context_get_visual */
991 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_visual00
992 static int tolua_imlib2_imlib_context_get_visual00(lua_State* tolua_S)
994 #ifndef TOLUA_RELEASE
995 tolua_Error tolua_err;
997 !tolua_isnoobj(tolua_S,1,&tolua_err)
1004 Visual* tolua_ret = (Visual*) imlib_context_get_visual();
1005 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Visual");
1009 #ifndef TOLUA_RELEASE
1011 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_visual'.",&tolua_err);
1015 #endif //#ifndef TOLUA_DISABLE
1017 /* function: imlib_context_get_colormap */
1018 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_colormap00
1019 static int tolua_imlib2_imlib_context_get_colormap00(lua_State* tolua_S)
1021 #ifndef TOLUA_RELEASE
1022 tolua_Error tolua_err;
1024 !tolua_isnoobj(tolua_S,1,&tolua_err)
1031 Colormap tolua_ret = (Colormap) imlib_context_get_colormap();
1034 void* tolua_obj = Mtolua_new((Colormap)(tolua_ret));
1035 tolua_pushusertype(tolua_S,tolua_obj,"Colormap");
1036 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1038 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Colormap));
1039 tolua_pushusertype(tolua_S,tolua_obj,"Colormap");
1040 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1046 #ifndef TOLUA_RELEASE
1048 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_colormap'.",&tolua_err);
1052 #endif //#ifndef TOLUA_DISABLE
1054 /* function: imlib_context_get_drawable */
1055 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_drawable00
1056 static int tolua_imlib2_imlib_context_get_drawable00(lua_State* tolua_S)
1058 #ifndef TOLUA_RELEASE
1059 tolua_Error tolua_err;
1061 !tolua_isnoobj(tolua_S,1,&tolua_err)
1068 Drawable tolua_ret = (Drawable) imlib_context_get_drawable();
1071 void* tolua_obj = Mtolua_new((Drawable)(tolua_ret));
1072 tolua_pushusertype(tolua_S,tolua_obj,"Drawable");
1073 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1075 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Drawable));
1076 tolua_pushusertype(tolua_S,tolua_obj,"Drawable");
1077 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1083 #ifndef TOLUA_RELEASE
1085 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_drawable'.",&tolua_err);
1089 #endif //#ifndef TOLUA_DISABLE
1091 /* function: imlib_context_get_mask */
1092 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_mask00
1093 static int tolua_imlib2_imlib_context_get_mask00(lua_State* tolua_S)
1095 #ifndef TOLUA_RELEASE
1096 tolua_Error tolua_err;
1098 !tolua_isnoobj(tolua_S,1,&tolua_err)
1105 Pixmap tolua_ret = (Pixmap) imlib_context_get_mask();
1108 void* tolua_obj = Mtolua_new((Pixmap)(tolua_ret));
1109 tolua_pushusertype(tolua_S,tolua_obj,"Pixmap");
1110 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1112 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Pixmap));
1113 tolua_pushusertype(tolua_S,tolua_obj,"Pixmap");
1114 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1120 #ifndef TOLUA_RELEASE
1122 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_mask'.",&tolua_err);
1126 #endif //#ifndef TOLUA_DISABLE
1128 /* function: imlib_context_get_dither_mask */
1129 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_dither_mask00
1130 static int tolua_imlib2_imlib_context_get_dither_mask00(lua_State* tolua_S)
1132 #ifndef TOLUA_RELEASE
1133 tolua_Error tolua_err;
1135 !tolua_isnoobj(tolua_S,1,&tolua_err)
1142 char tolua_ret = (char) imlib_context_get_dither_mask();
1143 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1147 #ifndef TOLUA_RELEASE
1149 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_dither_mask'.",&tolua_err);
1153 #endif //#ifndef TOLUA_DISABLE
1155 /* function: imlib_context_get_anti_alias */
1156 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_anti_alias00
1157 static int tolua_imlib2_imlib_context_get_anti_alias00(lua_State* tolua_S)
1159 #ifndef TOLUA_RELEASE
1160 tolua_Error tolua_err;
1162 !tolua_isnoobj(tolua_S,1,&tolua_err)
1169 char tolua_ret = (char) imlib_context_get_anti_alias();
1170 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1174 #ifndef TOLUA_RELEASE
1176 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_anti_alias'.",&tolua_err);
1180 #endif //#ifndef TOLUA_DISABLE
1182 /* function: imlib_context_get_mask_alpha_threshold */
1183 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_mask_alpha_threshold00
1184 static int tolua_imlib2_imlib_context_get_mask_alpha_threshold00(lua_State* tolua_S)
1186 #ifndef TOLUA_RELEASE
1187 tolua_Error tolua_err;
1189 !tolua_isnoobj(tolua_S,1,&tolua_err)
1196 int tolua_ret = (int) imlib_context_get_mask_alpha_threshold();
1197 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1201 #ifndef TOLUA_RELEASE
1203 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_mask_alpha_threshold'.",&tolua_err);
1207 #endif //#ifndef TOLUA_DISABLE
1209 /* function: imlib_context_get_dither */
1210 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_dither00
1211 static int tolua_imlib2_imlib_context_get_dither00(lua_State* tolua_S)
1213 #ifndef TOLUA_RELEASE
1214 tolua_Error tolua_err;
1216 !tolua_isnoobj(tolua_S,1,&tolua_err)
1223 char tolua_ret = (char) imlib_context_get_dither();
1224 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1228 #ifndef TOLUA_RELEASE
1230 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_dither'.",&tolua_err);
1234 #endif //#ifndef TOLUA_DISABLE
1236 /* function: imlib_context_get_blend */
1237 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_blend00
1238 static int tolua_imlib2_imlib_context_get_blend00(lua_State* tolua_S)
1240 #ifndef TOLUA_RELEASE
1241 tolua_Error tolua_err;
1243 !tolua_isnoobj(tolua_S,1,&tolua_err)
1250 char tolua_ret = (char) imlib_context_get_blend();
1251 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1255 #ifndef TOLUA_RELEASE
1257 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_blend'.",&tolua_err);
1261 #endif //#ifndef TOLUA_DISABLE
1263 /* function: imlib_context_get_color_modifier */
1264 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_color_modifier00
1265 static int tolua_imlib2_imlib_context_get_color_modifier00(lua_State* tolua_S)
1267 #ifndef TOLUA_RELEASE
1268 tolua_Error tolua_err;
1270 !tolua_isnoobj(tolua_S,1,&tolua_err)
1277 _userdata tolua_ret = ( _userdata) imlib_context_get_color_modifier();
1278 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
1282 #ifndef TOLUA_RELEASE
1284 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_color_modifier'.",&tolua_err);
1288 #endif //#ifndef TOLUA_DISABLE
1290 /* function: imlib_context_get_operation */
1291 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_operation00
1292 static int tolua_imlib2_imlib_context_get_operation00(lua_State* tolua_S)
1294 #ifndef TOLUA_RELEASE
1295 tolua_Error tolua_err;
1297 !tolua_isnoobj(tolua_S,1,&tolua_err)
1304 Imlib_Operation tolua_ret = (Imlib_Operation) imlib_context_get_operation();
1305 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1309 #ifndef TOLUA_RELEASE
1311 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_operation'.",&tolua_err);
1315 #endif //#ifndef TOLUA_DISABLE
1317 /* function: imlib_context_get_font */
1318 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_font00
1319 static int tolua_imlib2_imlib_context_get_font00(lua_State* tolua_S)
1321 #ifndef TOLUA_RELEASE
1322 tolua_Error tolua_err;
1324 !tolua_isnoobj(tolua_S,1,&tolua_err)
1331 _userdata tolua_ret = ( _userdata) imlib_context_get_font();
1332 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
1336 #ifndef TOLUA_RELEASE
1338 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_font'.",&tolua_err);
1342 #endif //#ifndef TOLUA_DISABLE
1344 /* function: imlib_context_get_angle */
1345 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_angle00
1346 static int tolua_imlib2_imlib_context_get_angle00(lua_State* tolua_S)
1348 #ifndef TOLUA_RELEASE
1349 tolua_Error tolua_err;
1351 !tolua_isnoobj(tolua_S,1,&tolua_err)
1358 double tolua_ret = (double) imlib_context_get_angle();
1359 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1363 #ifndef TOLUA_RELEASE
1365 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_angle'.",&tolua_err);
1369 #endif //#ifndef TOLUA_DISABLE
1371 /* function: imlib_context_get_direction */
1372 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_direction00
1373 static int tolua_imlib2_imlib_context_get_direction00(lua_State* tolua_S)
1375 #ifndef TOLUA_RELEASE
1376 tolua_Error tolua_err;
1378 !tolua_isnoobj(tolua_S,1,&tolua_err)
1385 Imlib_Text_Direction tolua_ret = (Imlib_Text_Direction) imlib_context_get_direction();
1386 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1390 #ifndef TOLUA_RELEASE
1392 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_direction'.",&tolua_err);
1396 #endif //#ifndef TOLUA_DISABLE
1398 /* function: imlib_context_get_color */
1399 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_color00
1400 static int tolua_imlib2_imlib_context_get_color00(lua_State* tolua_S)
1402 #ifndef TOLUA_RELEASE
1403 tolua_Error tolua_err;
1405 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
1406 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1407 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1408 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
1409 !tolua_isnoobj(tolua_S,5,&tolua_err)
1415 int red = ((int) tolua_tonumber(tolua_S,1,0));
1416 int green = ((int) tolua_tonumber(tolua_S,2,0));
1417 int blue = ((int) tolua_tonumber(tolua_S,3,0));
1418 int alpha = ((int) tolua_tonumber(tolua_S,4,0));
1420 imlib_context_get_color(&red,&green,&blue,&alpha);
1421 tolua_pushnumber(tolua_S,(lua_Number)red);
1422 tolua_pushnumber(tolua_S,(lua_Number)green);
1423 tolua_pushnumber(tolua_S,(lua_Number)blue);
1424 tolua_pushnumber(tolua_S,(lua_Number)alpha);
1428 #ifndef TOLUA_RELEASE
1430 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_color'.",&tolua_err);
1434 #endif //#ifndef TOLUA_DISABLE
1436 /* function: imlib_context_get_color_hsva */
1437 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_color_hsva00
1438 static int tolua_imlib2_imlib_context_get_color_hsva00(lua_State* tolua_S)
1440 #ifndef TOLUA_RELEASE
1441 tolua_Error tolua_err;
1443 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
1444 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1445 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1446 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
1447 !tolua_isnoobj(tolua_S,5,&tolua_err)
1453 float hue = ((float) tolua_tonumber(tolua_S,1,0));
1454 float saturation = ((float) tolua_tonumber(tolua_S,2,0));
1455 float value = ((float) tolua_tonumber(tolua_S,3,0));
1456 int alpha = ((int) tolua_tonumber(tolua_S,4,0));
1458 imlib_context_get_color_hsva(&hue,&saturation,&value,&alpha);
1459 tolua_pushnumber(tolua_S,(lua_Number)hue);
1460 tolua_pushnumber(tolua_S,(lua_Number)saturation);
1461 tolua_pushnumber(tolua_S,(lua_Number)value);
1462 tolua_pushnumber(tolua_S,(lua_Number)alpha);
1466 #ifndef TOLUA_RELEASE
1468 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_color_hsva'.",&tolua_err);
1472 #endif //#ifndef TOLUA_DISABLE
1474 /* function: imlib_context_get_color_hlsa */
1475 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_color_hlsa00
1476 static int tolua_imlib2_imlib_context_get_color_hlsa00(lua_State* tolua_S)
1478 #ifndef TOLUA_RELEASE
1479 tolua_Error tolua_err;
1481 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
1482 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1483 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1484 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
1485 !tolua_isnoobj(tolua_S,5,&tolua_err)
1491 float hue = ((float) tolua_tonumber(tolua_S,1,0));
1492 float lightness = ((float) tolua_tonumber(tolua_S,2,0));
1493 float saturation = ((float) tolua_tonumber(tolua_S,3,0));
1494 int alpha = ((int) tolua_tonumber(tolua_S,4,0));
1496 imlib_context_get_color_hlsa(&hue,&lightness,&saturation,&alpha);
1497 tolua_pushnumber(tolua_S,(lua_Number)hue);
1498 tolua_pushnumber(tolua_S,(lua_Number)lightness);
1499 tolua_pushnumber(tolua_S,(lua_Number)saturation);
1500 tolua_pushnumber(tolua_S,(lua_Number)alpha);
1504 #ifndef TOLUA_RELEASE
1506 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_color_hlsa'.",&tolua_err);
1510 #endif //#ifndef TOLUA_DISABLE
1512 /* function: imlib_context_get_color_cmya */
1513 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_color_cmya00
1514 static int tolua_imlib2_imlib_context_get_color_cmya00(lua_State* tolua_S)
1516 #ifndef TOLUA_RELEASE
1517 tolua_Error tolua_err;
1519 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
1520 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1521 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1522 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
1523 !tolua_isnoobj(tolua_S,5,&tolua_err)
1529 int cyan = ((int) tolua_tonumber(tolua_S,1,0));
1530 int magenta = ((int) tolua_tonumber(tolua_S,2,0));
1531 int yellow = ((int) tolua_tonumber(tolua_S,3,0));
1532 int alpha = ((int) tolua_tonumber(tolua_S,4,0));
1534 imlib_context_get_color_cmya(&cyan,&magenta,&yellow,&alpha);
1535 tolua_pushnumber(tolua_S,(lua_Number)cyan);
1536 tolua_pushnumber(tolua_S,(lua_Number)magenta);
1537 tolua_pushnumber(tolua_S,(lua_Number)yellow);
1538 tolua_pushnumber(tolua_S,(lua_Number)alpha);
1542 #ifndef TOLUA_RELEASE
1544 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_color_cmya'.",&tolua_err);
1548 #endif //#ifndef TOLUA_DISABLE
1550 /* function: imlib_context_get_imlib_color */
1551 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_imlib_color00
1552 static int tolua_imlib2_imlib_context_get_imlib_color00(lua_State* tolua_S)
1554 #ifndef TOLUA_RELEASE
1555 tolua_Error tolua_err;
1557 !tolua_isnoobj(tolua_S,1,&tolua_err)
1564 struct _imlib_color* tolua_ret = ( struct _imlib_color*) imlib_context_get_imlib_color();
1565 tolua_pushusertype(tolua_S,(void*)tolua_ret,"_imlib_color");
1569 #ifndef TOLUA_RELEASE
1571 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_imlib_color'.",&tolua_err);
1575 #endif //#ifndef TOLUA_DISABLE
1577 /* function: imlib_context_get_color_range */
1578 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_color_range00
1579 static int tolua_imlib2_imlib_context_get_color_range00(lua_State* tolua_S)
1581 #ifndef TOLUA_RELEASE
1582 tolua_Error tolua_err;
1584 !tolua_isnoobj(tolua_S,1,&tolua_err)
1591 _userdata tolua_ret = ( _userdata) imlib_context_get_color_range();
1592 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
1596 #ifndef TOLUA_RELEASE
1598 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_color_range'.",&tolua_err);
1602 #endif //#ifndef TOLUA_DISABLE
1604 /* function: imlib_context_get_progress_function */
1605 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_progress_function00
1606 static int tolua_imlib2_imlib_context_get_progress_function00(lua_State* tolua_S)
1608 #ifndef TOLUA_RELEASE
1609 tolua_Error tolua_err;
1611 !tolua_isnoobj(tolua_S,1,&tolua_err)
1618 Imlib_Progress_Function tolua_ret = (Imlib_Progress_Function) imlib_context_get_progress_function();
1621 void* tolua_obj = Mtolua_new((Imlib_Progress_Function)(tolua_ret));
1622 tolua_pushusertype(tolua_S,tolua_obj,"Imlib_Progress_Function");
1623 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1625 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Imlib_Progress_Function));
1626 tolua_pushusertype(tolua_S,tolua_obj,"Imlib_Progress_Function");
1627 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1633 #ifndef TOLUA_RELEASE
1635 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_progress_function'.",&tolua_err);
1639 #endif //#ifndef TOLUA_DISABLE
1641 /* function: imlib_context_get_progress_granularity */
1642 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_progress_granularity00
1643 static int tolua_imlib2_imlib_context_get_progress_granularity00(lua_State* tolua_S)
1645 #ifndef TOLUA_RELEASE
1646 tolua_Error tolua_err;
1648 !tolua_isnoobj(tolua_S,1,&tolua_err)
1655 char tolua_ret = (char) imlib_context_get_progress_granularity();
1656 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1660 #ifndef TOLUA_RELEASE
1662 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_progress_granularity'.",&tolua_err);
1666 #endif //#ifndef TOLUA_DISABLE
1668 /* function: imlib_context_get_image */
1669 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_image00
1670 static int tolua_imlib2_imlib_context_get_image00(lua_State* tolua_S)
1672 #ifndef TOLUA_RELEASE
1673 tolua_Error tolua_err;
1675 !tolua_isnoobj(tolua_S,1,&tolua_err)
1682 _userdata tolua_ret = ( _userdata) imlib_context_get_image();
1683 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
1687 #ifndef TOLUA_RELEASE
1689 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_image'.",&tolua_err);
1693 #endif //#ifndef TOLUA_DISABLE
1695 /* function: imlib_context_get_cliprect */
1696 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_cliprect00
1697 static int tolua_imlib2_imlib_context_get_cliprect00(lua_State* tolua_S)
1699 #ifndef TOLUA_RELEASE
1700 tolua_Error tolua_err;
1702 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
1703 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1704 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1705 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
1706 !tolua_isnoobj(tolua_S,5,&tolua_err)
1712 int x = ((int) tolua_tonumber(tolua_S,1,0));
1713 int y = ((int) tolua_tonumber(tolua_S,2,0));
1714 int w = ((int) tolua_tonumber(tolua_S,3,0));
1715 int h = ((int) tolua_tonumber(tolua_S,4,0));
1717 imlib_context_get_cliprect(&x,&y,&w,&h);
1718 tolua_pushnumber(tolua_S,(lua_Number)x);
1719 tolua_pushnumber(tolua_S,(lua_Number)y);
1720 tolua_pushnumber(tolua_S,(lua_Number)w);
1721 tolua_pushnumber(tolua_S,(lua_Number)h);
1725 #ifndef TOLUA_RELEASE
1727 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_cliprect'.",&tolua_err);
1731 #endif //#ifndef TOLUA_DISABLE
1733 /* function: imlib_context_get_TTF_encoding */
1734 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_TTF_encoding00
1735 static int tolua_imlib2_imlib_context_get_TTF_encoding00(lua_State* tolua_S)
1737 #ifndef TOLUA_RELEASE
1738 tolua_Error tolua_err;
1740 !tolua_isnoobj(tolua_S,1,&tolua_err)
1747 Imlib_TTF_Encoding tolua_ret = (Imlib_TTF_Encoding) imlib_context_get_TTF_encoding();
1748 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1752 #ifndef TOLUA_RELEASE
1754 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_TTF_encoding'.",&tolua_err);
1758 #endif //#ifndef TOLUA_DISABLE
1760 /* function: imlib_get_cache_size */
1761 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_cache_size00
1762 static int tolua_imlib2_imlib_get_cache_size00(lua_State* tolua_S)
1764 #ifndef TOLUA_RELEASE
1765 tolua_Error tolua_err;
1767 !tolua_isnoobj(tolua_S,1,&tolua_err)
1774 int tolua_ret = (int) imlib_get_cache_size();
1775 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1779 #ifndef TOLUA_RELEASE
1781 tolua_error(tolua_S,"#ferror in function 'imlib_get_cache_size'.",&tolua_err);
1785 #endif //#ifndef TOLUA_DISABLE
1787 /* function: imlib_set_cache_size */
1788 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_set_cache_size00
1789 static int tolua_imlib2_imlib_set_cache_size00(lua_State* tolua_S)
1791 #ifndef TOLUA_RELEASE
1792 tolua_Error tolua_err;
1794 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
1795 !tolua_isnoobj(tolua_S,2,&tolua_err)
1801 int bytes = ((int) tolua_tonumber(tolua_S,1,0));
1803 imlib_set_cache_size(bytes);
1807 #ifndef TOLUA_RELEASE
1809 tolua_error(tolua_S,"#ferror in function 'imlib_set_cache_size'.",&tolua_err);
1813 #endif //#ifndef TOLUA_DISABLE
1815 /* function: imlib_get_color_usage */
1816 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_color_usage00
1817 static int tolua_imlib2_imlib_get_color_usage00(lua_State* tolua_S)
1819 #ifndef TOLUA_RELEASE
1820 tolua_Error tolua_err;
1822 !tolua_isnoobj(tolua_S,1,&tolua_err)
1829 int tolua_ret = (int) imlib_get_color_usage();
1830 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1834 #ifndef TOLUA_RELEASE
1836 tolua_error(tolua_S,"#ferror in function 'imlib_get_color_usage'.",&tolua_err);
1840 #endif //#ifndef TOLUA_DISABLE
1842 /* function: imlib_set_color_usage */
1843 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_set_color_usage00
1844 static int tolua_imlib2_imlib_set_color_usage00(lua_State* tolua_S)
1846 #ifndef TOLUA_RELEASE
1847 tolua_Error tolua_err;
1849 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
1850 !tolua_isnoobj(tolua_S,2,&tolua_err)
1856 int max = ((int) tolua_tonumber(tolua_S,1,0));
1858 imlib_set_color_usage(max);
1862 #ifndef TOLUA_RELEASE
1864 tolua_error(tolua_S,"#ferror in function 'imlib_set_color_usage'.",&tolua_err);
1868 #endif //#ifndef TOLUA_DISABLE
1870 /* function: imlib_flush_loaders */
1871 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_flush_loaders00
1872 static int tolua_imlib2_imlib_flush_loaders00(lua_State* tolua_S)
1874 #ifndef TOLUA_RELEASE
1875 tolua_Error tolua_err;
1877 !tolua_isnoobj(tolua_S,1,&tolua_err)
1884 imlib_flush_loaders();
1888 #ifndef TOLUA_RELEASE
1890 tolua_error(tolua_S,"#ferror in function 'imlib_flush_loaders'.",&tolua_err);
1894 #endif //#ifndef TOLUA_DISABLE
1896 /* function: imlib_get_visual_depth */
1897 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_visual_depth00
1898 static int tolua_imlib2_imlib_get_visual_depth00(lua_State* tolua_S)
1900 #ifndef TOLUA_RELEASE
1901 tolua_Error tolua_err;
1903 !tolua_isusertype(tolua_S,1,"Display",0,&tolua_err) ||
1904 !tolua_isusertype(tolua_S,2,"Visual",0,&tolua_err) ||
1905 !tolua_isnoobj(tolua_S,3,&tolua_err)
1911 Display* display = ((Display*) tolua_tousertype(tolua_S,1,0));
1912 Visual* visual = ((Visual*) tolua_tousertype(tolua_S,2,0));
1914 int tolua_ret = (int) imlib_get_visual_depth(display,visual);
1915 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1919 #ifndef TOLUA_RELEASE
1921 tolua_error(tolua_S,"#ferror in function 'imlib_get_visual_depth'.",&tolua_err);
1925 #endif //#ifndef TOLUA_DISABLE
1927 /* function: imlib_get_best_visual */
1928 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_best_visual00
1929 static int tolua_imlib2_imlib_get_best_visual00(lua_State* tolua_S)
1931 #ifndef TOLUA_RELEASE
1932 tolua_Error tolua_err;
1934 !tolua_isusertype(tolua_S,1,"Display",0,&tolua_err) ||
1935 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1936 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
1937 !tolua_isnoobj(tolua_S,4,&tolua_err)
1943 Display* display = ((Display*) tolua_tousertype(tolua_S,1,0));
1944 int screen = ((int) tolua_tonumber(tolua_S,2,0));
1945 int depth_return = ((int) tolua_tonumber(tolua_S,3,0));
1947 Visual* tolua_ret = (Visual*) imlib_get_best_visual(display,screen,&depth_return);
1948 tolua_pushusertype(tolua_S,(void*)tolua_ret,"Visual");
1949 tolua_pushnumber(tolua_S,(lua_Number)depth_return);
1953 #ifndef TOLUA_RELEASE
1955 tolua_error(tolua_S,"#ferror in function 'imlib_get_best_visual'.",&tolua_err);
1959 #endif //#ifndef TOLUA_DISABLE
1961 /* function: imlib_load_image */
1962 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_load_image00
1963 static int tolua_imlib2_imlib_load_image00(lua_State* tolua_S)
1965 #ifndef TOLUA_RELEASE
1966 tolua_Error tolua_err;
1968 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
1969 !tolua_isnoobj(tolua_S,2,&tolua_err)
1975 const char* file = ((const char*) tolua_tostring(tolua_S,1,0));
1977 _userdata tolua_ret = ( _userdata) imlib_load_image(file);
1978 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
1982 #ifndef TOLUA_RELEASE
1984 tolua_error(tolua_S,"#ferror in function 'imlib_load_image'.",&tolua_err);
1988 #endif //#ifndef TOLUA_DISABLE
1990 /* function: imlib_load_image_immediately */
1991 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_load_image_immediately00
1992 static int tolua_imlib2_imlib_load_image_immediately00(lua_State* tolua_S)
1994 #ifndef TOLUA_RELEASE
1995 tolua_Error tolua_err;
1997 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
1998 !tolua_isnoobj(tolua_S,2,&tolua_err)
2004 const char* file = ((const char*) tolua_tostring(tolua_S,1,0));
2006 _userdata tolua_ret = ( _userdata) imlib_load_image_immediately(file);
2007 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
2011 #ifndef TOLUA_RELEASE
2013 tolua_error(tolua_S,"#ferror in function 'imlib_load_image_immediately'.",&tolua_err);
2017 #endif //#ifndef TOLUA_DISABLE
2019 /* function: imlib_load_image_without_cache */
2020 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_load_image_without_cache00
2021 static int tolua_imlib2_imlib_load_image_without_cache00(lua_State* tolua_S)
2023 #ifndef TOLUA_RELEASE
2024 tolua_Error tolua_err;
2026 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
2027 !tolua_isnoobj(tolua_S,2,&tolua_err)
2033 const char* file = ((const char*) tolua_tostring(tolua_S,1,0));
2035 _userdata tolua_ret = ( _userdata) imlib_load_image_without_cache(file);
2036 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
2040 #ifndef TOLUA_RELEASE
2042 tolua_error(tolua_S,"#ferror in function 'imlib_load_image_without_cache'.",&tolua_err);
2046 #endif //#ifndef TOLUA_DISABLE
2048 /* function: imlib_load_image_immediately_without_cache */
2049 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_load_image_immediately_without_cache00
2050 static int tolua_imlib2_imlib_load_image_immediately_without_cache00(lua_State* tolua_S)
2052 #ifndef TOLUA_RELEASE
2053 tolua_Error tolua_err;
2055 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
2056 !tolua_isnoobj(tolua_S,2,&tolua_err)
2062 const char* file = ((const char*) tolua_tostring(tolua_S,1,0));
2064 _userdata tolua_ret = ( _userdata) imlib_load_image_immediately_without_cache(file);
2065 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
2069 #ifndef TOLUA_RELEASE
2071 tolua_error(tolua_S,"#ferror in function 'imlib_load_image_immediately_without_cache'.",&tolua_err);
2075 #endif //#ifndef TOLUA_DISABLE
2077 /* function: imlib_load_image_with_error_return */
2078 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_load_image_with_error_return00
2079 static int tolua_imlib2_imlib_load_image_with_error_return00(lua_State* tolua_S)
2081 #ifndef TOLUA_RELEASE
2082 tolua_Error tolua_err;
2084 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
2085 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2086 !tolua_isnoobj(tolua_S,3,&tolua_err)
2092 const char* file = ((const char*) tolua_tostring(tolua_S,1,0));
2093 Imlib_Load_Error error_return = ((Imlib_Load_Error) (int) tolua_tonumber(tolua_S,2,0));
2095 _userdata tolua_ret = ( _userdata) imlib_load_image_with_error_return(file,&error_return);
2096 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
2097 tolua_pushnumber(tolua_S,(lua_Number)error_return);
2101 #ifndef TOLUA_RELEASE
2103 tolua_error(tolua_S,"#ferror in function 'imlib_load_image_with_error_return'.",&tolua_err);
2107 #endif //#ifndef TOLUA_DISABLE
2109 /* function: imlib_free_image */
2110 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_free_image00
2111 static int tolua_imlib2_imlib_free_image00(lua_State* tolua_S)
2113 #ifndef TOLUA_RELEASE
2114 tolua_Error tolua_err;
2116 !tolua_isnoobj(tolua_S,1,&tolua_err)
2127 #ifndef TOLUA_RELEASE
2129 tolua_error(tolua_S,"#ferror in function 'imlib_free_image'.",&tolua_err);
2133 #endif //#ifndef TOLUA_DISABLE
2135 /* function: imlib_free_image_and_decache */
2136 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_free_image_and_decache00
2137 static int tolua_imlib2_imlib_free_image_and_decache00(lua_State* tolua_S)
2139 #ifndef TOLUA_RELEASE
2140 tolua_Error tolua_err;
2142 !tolua_isnoobj(tolua_S,1,&tolua_err)
2149 imlib_free_image_and_decache();
2153 #ifndef TOLUA_RELEASE
2155 tolua_error(tolua_S,"#ferror in function 'imlib_free_image_and_decache'.",&tolua_err);
2159 #endif //#ifndef TOLUA_DISABLE
2161 /* function: imlib_image_get_width */
2162 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_get_width00
2163 static int tolua_imlib2_imlib_image_get_width00(lua_State* tolua_S)
2165 #ifndef TOLUA_RELEASE
2166 tolua_Error tolua_err;
2168 !tolua_isnoobj(tolua_S,1,&tolua_err)
2175 int tolua_ret = (int) imlib_image_get_width();
2176 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
2180 #ifndef TOLUA_RELEASE
2182 tolua_error(tolua_S,"#ferror in function 'imlib_image_get_width'.",&tolua_err);
2186 #endif //#ifndef TOLUA_DISABLE
2188 /* function: imlib_image_get_height */
2189 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_get_height00
2190 static int tolua_imlib2_imlib_image_get_height00(lua_State* tolua_S)
2192 #ifndef TOLUA_RELEASE
2193 tolua_Error tolua_err;
2195 !tolua_isnoobj(tolua_S,1,&tolua_err)
2202 int tolua_ret = (int) imlib_image_get_height();
2203 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
2207 #ifndef TOLUA_RELEASE
2209 tolua_error(tolua_S,"#ferror in function 'imlib_image_get_height'.",&tolua_err);
2213 #endif //#ifndef TOLUA_DISABLE
2215 /* function: imlib_image_get_filename */
2216 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_get_filename00
2217 static int tolua_imlib2_imlib_image_get_filename00(lua_State* tolua_S)
2219 #ifndef TOLUA_RELEASE
2220 tolua_Error tolua_err;
2222 !tolua_isnoobj(tolua_S,1,&tolua_err)
2229 const char* tolua_ret = (const char*) imlib_image_get_filename();
2230 tolua_pushstring(tolua_S,(const char*)tolua_ret);
2234 #ifndef TOLUA_RELEASE
2236 tolua_error(tolua_S,"#ferror in function 'imlib_image_get_filename'.",&tolua_err);
2240 #endif //#ifndef TOLUA_DISABLE
2242 /* function: imlib_image_get_data */
2243 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_get_data00
2244 static int tolua_imlib2_imlib_image_get_data00(lua_State* tolua_S)
2246 #ifndef TOLUA_RELEASE
2247 tolua_Error tolua_err;
2249 !tolua_isnoobj(tolua_S,1,&tolua_err)
2256 void* tolua_ret = (void*) imlib_image_get_data();
2257 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
2261 #ifndef TOLUA_RELEASE
2263 tolua_error(tolua_S,"#ferror in function 'imlib_image_get_data'.",&tolua_err);
2267 #endif //#ifndef TOLUA_DISABLE
2269 /* function: imlib_image_get_data_for_reading_only */
2270 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_get_data_for_reading_only00
2271 static int tolua_imlib2_imlib_image_get_data_for_reading_only00(lua_State* tolua_S)
2273 #ifndef TOLUA_RELEASE
2274 tolua_Error tolua_err;
2276 !tolua_isnoobj(tolua_S,1,&tolua_err)
2283 void* tolua_ret = (void*) imlib_image_get_data_for_reading_only();
2284 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
2288 #ifndef TOLUA_RELEASE
2290 tolua_error(tolua_S,"#ferror in function 'imlib_image_get_data_for_reading_only'.",&tolua_err);
2294 #endif //#ifndef TOLUA_DISABLE
2296 /* function: imlib_image_put_back_data */
2297 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_put_back_data00
2298 static int tolua_imlib2_imlib_image_put_back_data00(lua_State* tolua_S)
2300 #ifndef TOLUA_RELEASE
2301 tolua_Error tolua_err;
2303 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2304 !tolua_isnoobj(tolua_S,2,&tolua_err)
2310 unsigned int data = ((unsigned int) tolua_tonumber(tolua_S,1,0));
2312 imlib_image_put_back_data(&data);
2313 tolua_pushnumber(tolua_S,(lua_Number)data);
2317 #ifndef TOLUA_RELEASE
2319 tolua_error(tolua_S,"#ferror in function 'imlib_image_put_back_data'.",&tolua_err);
2323 #endif //#ifndef TOLUA_DISABLE
2325 /* function: imlib_image_has_alpha */
2326 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_has_alpha00
2327 static int tolua_imlib2_imlib_image_has_alpha00(lua_State* tolua_S)
2329 #ifndef TOLUA_RELEASE
2330 tolua_Error tolua_err;
2332 !tolua_isnoobj(tolua_S,1,&tolua_err)
2339 char tolua_ret = (char) imlib_image_has_alpha();
2340 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
2344 #ifndef TOLUA_RELEASE
2346 tolua_error(tolua_S,"#ferror in function 'imlib_image_has_alpha'.",&tolua_err);
2350 #endif //#ifndef TOLUA_DISABLE
2352 /* function: imlib_image_set_changes_on_disk */
2353 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_set_changes_on_disk00
2354 static int tolua_imlib2_imlib_image_set_changes_on_disk00(lua_State* tolua_S)
2356 #ifndef TOLUA_RELEASE
2357 tolua_Error tolua_err;
2359 !tolua_isnoobj(tolua_S,1,&tolua_err)
2366 imlib_image_set_changes_on_disk();
2370 #ifndef TOLUA_RELEASE
2372 tolua_error(tolua_S,"#ferror in function 'imlib_image_set_changes_on_disk'.",&tolua_err);
2376 #endif //#ifndef TOLUA_DISABLE
2378 /* function: imlib_image_get_border */
2379 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_get_border00
2380 static int tolua_imlib2_imlib_image_get_border00(lua_State* tolua_S)
2382 #ifndef TOLUA_RELEASE
2383 tolua_Error tolua_err;
2385 !tolua_isusertype(tolua_S,1,"_imlib_border",0,&tolua_err) ||
2386 !tolua_isnoobj(tolua_S,2,&tolua_err)
2392 struct _imlib_border* border = (( struct _imlib_border*) tolua_tousertype(tolua_S,1,0));
2394 imlib_image_get_border(border);
2398 #ifndef TOLUA_RELEASE
2400 tolua_error(tolua_S,"#ferror in function 'imlib_image_get_border'.",&tolua_err);
2404 #endif //#ifndef TOLUA_DISABLE
2406 /* function: imlib_image_set_border */
2407 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_set_border00
2408 static int tolua_imlib2_imlib_image_set_border00(lua_State* tolua_S)
2410 #ifndef TOLUA_RELEASE
2411 tolua_Error tolua_err;
2413 !tolua_isusertype(tolua_S,1,"_imlib_border",0,&tolua_err) ||
2414 !tolua_isnoobj(tolua_S,2,&tolua_err)
2420 struct _imlib_border* border = (( struct _imlib_border*) tolua_tousertype(tolua_S,1,0));
2422 imlib_image_set_border(border);
2426 #ifndef TOLUA_RELEASE
2428 tolua_error(tolua_S,"#ferror in function 'imlib_image_set_border'.",&tolua_err);
2432 #endif //#ifndef TOLUA_DISABLE
2434 /* function: imlib_image_set_format */
2435 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_set_format00
2436 static int tolua_imlib2_imlib_image_set_format00(lua_State* tolua_S)
2438 #ifndef TOLUA_RELEASE
2439 tolua_Error tolua_err;
2441 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
2442 !tolua_isnoobj(tolua_S,2,&tolua_err)
2448 const char* format = ((const char*) tolua_tostring(tolua_S,1,0));
2450 imlib_image_set_format(format);
2454 #ifndef TOLUA_RELEASE
2456 tolua_error(tolua_S,"#ferror in function 'imlib_image_set_format'.",&tolua_err);
2460 #endif //#ifndef TOLUA_DISABLE
2462 /* function: imlib_image_set_irrelevant_format */
2463 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_set_irrelevant_format00
2464 static int tolua_imlib2_imlib_image_set_irrelevant_format00(lua_State* tolua_S)
2466 #ifndef TOLUA_RELEASE
2467 tolua_Error tolua_err;
2469 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2470 !tolua_isnoobj(tolua_S,2,&tolua_err)
2476 char irrelevant = ((char) tolua_tonumber(tolua_S,1,0));
2478 imlib_image_set_irrelevant_format(irrelevant);
2482 #ifndef TOLUA_RELEASE
2484 tolua_error(tolua_S,"#ferror in function 'imlib_image_set_irrelevant_format'.",&tolua_err);
2488 #endif //#ifndef TOLUA_DISABLE
2490 /* function: imlib_image_set_irrelevant_border */
2491 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_set_irrelevant_border00
2492 static int tolua_imlib2_imlib_image_set_irrelevant_border00(lua_State* tolua_S)
2494 #ifndef TOLUA_RELEASE
2495 tolua_Error tolua_err;
2497 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2498 !tolua_isnoobj(tolua_S,2,&tolua_err)
2504 char irrelevant = ((char) tolua_tonumber(tolua_S,1,0));
2506 imlib_image_set_irrelevant_border(irrelevant);
2510 #ifndef TOLUA_RELEASE
2512 tolua_error(tolua_S,"#ferror in function 'imlib_image_set_irrelevant_border'.",&tolua_err);
2516 #endif //#ifndef TOLUA_DISABLE
2518 /* function: imlib_image_set_irrelevant_alpha */
2519 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_set_irrelevant_alpha00
2520 static int tolua_imlib2_imlib_image_set_irrelevant_alpha00(lua_State* tolua_S)
2522 #ifndef TOLUA_RELEASE
2523 tolua_Error tolua_err;
2525 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2526 !tolua_isnoobj(tolua_S,2,&tolua_err)
2532 char irrelevant = ((char) tolua_tonumber(tolua_S,1,0));
2534 imlib_image_set_irrelevant_alpha(irrelevant);
2538 #ifndef TOLUA_RELEASE
2540 tolua_error(tolua_S,"#ferror in function 'imlib_image_set_irrelevant_alpha'.",&tolua_err);
2544 #endif //#ifndef TOLUA_DISABLE
2546 /* function: imlib_image_format */
2547 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_format00
2548 static int tolua_imlib2_imlib_image_format00(lua_State* tolua_S)
2550 #ifndef TOLUA_RELEASE
2551 tolua_Error tolua_err;
2553 !tolua_isnoobj(tolua_S,1,&tolua_err)
2560 char* tolua_ret = (char*) imlib_image_format();
2561 tolua_pushstring(tolua_S,(const char*)tolua_ret);
2565 #ifndef TOLUA_RELEASE
2567 tolua_error(tolua_S,"#ferror in function 'imlib_image_format'.",&tolua_err);
2571 #endif //#ifndef TOLUA_DISABLE
2573 /* function: imlib_image_set_has_alpha */
2574 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_set_has_alpha00
2575 static int tolua_imlib2_imlib_image_set_has_alpha00(lua_State* tolua_S)
2577 #ifndef TOLUA_RELEASE
2578 tolua_Error tolua_err;
2580 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2581 !tolua_isnoobj(tolua_S,2,&tolua_err)
2587 char has_alpha = ((char) tolua_tonumber(tolua_S,1,0));
2589 imlib_image_set_has_alpha(has_alpha);
2593 #ifndef TOLUA_RELEASE
2595 tolua_error(tolua_S,"#ferror in function 'imlib_image_set_has_alpha'.",&tolua_err);
2599 #endif //#ifndef TOLUA_DISABLE
2601 /* function: imlib_image_query_pixel */
2602 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_query_pixel00
2603 static int tolua_imlib2_imlib_image_query_pixel00(lua_State* tolua_S)
2605 #ifndef TOLUA_RELEASE
2606 tolua_Error tolua_err;
2608 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2609 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2610 !tolua_isusertype(tolua_S,3,"_imlib_color",0,&tolua_err) ||
2611 !tolua_isnoobj(tolua_S,4,&tolua_err)
2617 int x = ((int) tolua_tonumber(tolua_S,1,0));
2618 int y = ((int) tolua_tonumber(tolua_S,2,0));
2619 struct _imlib_color* color_return = (( struct _imlib_color*) tolua_tousertype(tolua_S,3,0));
2621 imlib_image_query_pixel(x,y,color_return);
2625 #ifndef TOLUA_RELEASE
2627 tolua_error(tolua_S,"#ferror in function 'imlib_image_query_pixel'.",&tolua_err);
2631 #endif //#ifndef TOLUA_DISABLE
2633 /* function: imlib_image_query_pixel_hsva */
2634 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_query_pixel_hsva00
2635 static int tolua_imlib2_imlib_image_query_pixel_hsva00(lua_State* tolua_S)
2637 #ifndef TOLUA_RELEASE
2638 tolua_Error tolua_err;
2640 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2641 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2642 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2643 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
2644 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
2645 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
2646 !tolua_isnoobj(tolua_S,7,&tolua_err)
2652 int x = ((int) tolua_tonumber(tolua_S,1,0));
2653 int y = ((int) tolua_tonumber(tolua_S,2,0));
2654 float hue = ((float) tolua_tonumber(tolua_S,3,0));
2655 float saturation = ((float) tolua_tonumber(tolua_S,4,0));
2656 float value = ((float) tolua_tonumber(tolua_S,5,0));
2657 int alpha = ((int) tolua_tonumber(tolua_S,6,0));
2659 imlib_image_query_pixel_hsva(x,y,&hue,&saturation,&value,&alpha);
2660 tolua_pushnumber(tolua_S,(lua_Number)hue);
2661 tolua_pushnumber(tolua_S,(lua_Number)saturation);
2662 tolua_pushnumber(tolua_S,(lua_Number)value);
2663 tolua_pushnumber(tolua_S,(lua_Number)alpha);
2667 #ifndef TOLUA_RELEASE
2669 tolua_error(tolua_S,"#ferror in function 'imlib_image_query_pixel_hsva'.",&tolua_err);
2673 #endif //#ifndef TOLUA_DISABLE
2675 /* function: imlib_image_query_pixel_hlsa */
2676 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_query_pixel_hlsa00
2677 static int tolua_imlib2_imlib_image_query_pixel_hlsa00(lua_State* tolua_S)
2679 #ifndef TOLUA_RELEASE
2680 tolua_Error tolua_err;
2682 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2683 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2684 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2685 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
2686 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
2687 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
2688 !tolua_isnoobj(tolua_S,7,&tolua_err)
2694 int x = ((int) tolua_tonumber(tolua_S,1,0));
2695 int y = ((int) tolua_tonumber(tolua_S,2,0));
2696 float hue = ((float) tolua_tonumber(tolua_S,3,0));
2697 float lightness = ((float) tolua_tonumber(tolua_S,4,0));
2698 float saturation = ((float) tolua_tonumber(tolua_S,5,0));
2699 int alpha = ((int) tolua_tonumber(tolua_S,6,0));
2701 imlib_image_query_pixel_hlsa(x,y,&hue,&lightness,&saturation,&alpha);
2702 tolua_pushnumber(tolua_S,(lua_Number)hue);
2703 tolua_pushnumber(tolua_S,(lua_Number)lightness);
2704 tolua_pushnumber(tolua_S,(lua_Number)saturation);
2705 tolua_pushnumber(tolua_S,(lua_Number)alpha);
2709 #ifndef TOLUA_RELEASE
2711 tolua_error(tolua_S,"#ferror in function 'imlib_image_query_pixel_hlsa'.",&tolua_err);
2715 #endif //#ifndef TOLUA_DISABLE
2717 /* function: imlib_image_query_pixel_cmya */
2718 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_query_pixel_cmya00
2719 static int tolua_imlib2_imlib_image_query_pixel_cmya00(lua_State* tolua_S)
2721 #ifndef TOLUA_RELEASE
2722 tolua_Error tolua_err;
2724 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2725 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2726 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2727 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
2728 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
2729 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
2730 !tolua_isnoobj(tolua_S,7,&tolua_err)
2736 int x = ((int) tolua_tonumber(tolua_S,1,0));
2737 int y = ((int) tolua_tonumber(tolua_S,2,0));
2738 int cyan = ((int) tolua_tonumber(tolua_S,3,0));
2739 int magenta = ((int) tolua_tonumber(tolua_S,4,0));
2740 int yellow = ((int) tolua_tonumber(tolua_S,5,0));
2741 int alpha = ((int) tolua_tonumber(tolua_S,6,0));
2743 imlib_image_query_pixel_cmya(x,y,&cyan,&magenta,&yellow,&alpha);
2744 tolua_pushnumber(tolua_S,(lua_Number)cyan);
2745 tolua_pushnumber(tolua_S,(lua_Number)magenta);
2746 tolua_pushnumber(tolua_S,(lua_Number)yellow);
2747 tolua_pushnumber(tolua_S,(lua_Number)alpha);
2751 #ifndef TOLUA_RELEASE
2753 tolua_error(tolua_S,"#ferror in function 'imlib_image_query_pixel_cmya'.",&tolua_err);
2757 #endif //#ifndef TOLUA_DISABLE
2759 /* function: imlib_render_pixmaps_for_whole_image */
2760 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_render_pixmaps_for_whole_image00
2761 static int tolua_imlib2_imlib_render_pixmaps_for_whole_image00(lua_State* tolua_S)
2763 #ifndef TOLUA_RELEASE
2764 tolua_Error tolua_err;
2766 !tolua_isusertype(tolua_S,1,"Pixmap",0,&tolua_err) ||
2767 !tolua_isusertype(tolua_S,2,"Pixmap",0,&tolua_err) ||
2768 !tolua_isnoobj(tolua_S,3,&tolua_err)
2774 Pixmap* pixmap_return = ((Pixmap*) tolua_tousertype(tolua_S,1,0));
2775 Pixmap* mask_return = ((Pixmap*) tolua_tousertype(tolua_S,2,0));
2777 imlib_render_pixmaps_for_whole_image(pixmap_return,mask_return);
2781 #ifndef TOLUA_RELEASE
2783 tolua_error(tolua_S,"#ferror in function 'imlib_render_pixmaps_for_whole_image'.",&tolua_err);
2787 #endif //#ifndef TOLUA_DISABLE
2789 /* function: imlib_render_pixmaps_for_whole_image_at_size */
2790 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_render_pixmaps_for_whole_image_at_size00
2791 static int tolua_imlib2_imlib_render_pixmaps_for_whole_image_at_size00(lua_State* tolua_S)
2793 #ifndef TOLUA_RELEASE
2794 tolua_Error tolua_err;
2796 !tolua_isusertype(tolua_S,1,"Pixmap",0,&tolua_err) ||
2797 !tolua_isusertype(tolua_S,2,"Pixmap",0,&tolua_err) ||
2798 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2799 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
2800 !tolua_isnoobj(tolua_S,5,&tolua_err)
2806 Pixmap* pixmap_return = ((Pixmap*) tolua_tousertype(tolua_S,1,0));
2807 Pixmap* mask_return = ((Pixmap*) tolua_tousertype(tolua_S,2,0));
2808 int width = ((int) tolua_tonumber(tolua_S,3,0));
2809 int height = ((int) tolua_tonumber(tolua_S,4,0));
2811 imlib_render_pixmaps_for_whole_image_at_size(pixmap_return,mask_return,width,height);
2815 #ifndef TOLUA_RELEASE
2817 tolua_error(tolua_S,"#ferror in function 'imlib_render_pixmaps_for_whole_image_at_size'.",&tolua_err);
2821 #endif //#ifndef TOLUA_DISABLE
2823 /* function: imlib_free_pixmap_and_mask */
2824 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_free_pixmap_and_mask00
2825 static int tolua_imlib2_imlib_free_pixmap_and_mask00(lua_State* tolua_S)
2827 #ifndef TOLUA_RELEASE
2828 tolua_Error tolua_err;
2830 (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"Pixmap",0,&tolua_err)) ||
2831 !tolua_isnoobj(tolua_S,2,&tolua_err)
2837 Pixmap pixmap = *((Pixmap*) tolua_tousertype(tolua_S,1,0));
2839 imlib_free_pixmap_and_mask(pixmap);
2843 #ifndef TOLUA_RELEASE
2845 tolua_error(tolua_S,"#ferror in function 'imlib_free_pixmap_and_mask'.",&tolua_err);
2849 #endif //#ifndef TOLUA_DISABLE
2851 /* function: imlib_render_image_on_drawable */
2852 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_render_image_on_drawable00
2853 static int tolua_imlib2_imlib_render_image_on_drawable00(lua_State* tolua_S)
2855 #ifndef TOLUA_RELEASE
2856 tolua_Error tolua_err;
2858 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2859 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2860 !tolua_isnoobj(tolua_S,3,&tolua_err)
2866 int x = ((int) tolua_tonumber(tolua_S,1,0));
2867 int y = ((int) tolua_tonumber(tolua_S,2,0));
2869 imlib_render_image_on_drawable(x,y);
2873 #ifndef TOLUA_RELEASE
2875 tolua_error(tolua_S,"#ferror in function 'imlib_render_image_on_drawable'.",&tolua_err);
2879 #endif //#ifndef TOLUA_DISABLE
2881 /* function: imlib_render_image_on_drawable_at_size */
2882 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_render_image_on_drawable_at_size00
2883 static int tolua_imlib2_imlib_render_image_on_drawable_at_size00(lua_State* tolua_S)
2885 #ifndef TOLUA_RELEASE
2886 tolua_Error tolua_err;
2888 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2889 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2890 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2891 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
2892 !tolua_isnoobj(tolua_S,5,&tolua_err)
2898 int x = ((int) tolua_tonumber(tolua_S,1,0));
2899 int y = ((int) tolua_tonumber(tolua_S,2,0));
2900 int width = ((int) tolua_tonumber(tolua_S,3,0));
2901 int height = ((int) tolua_tonumber(tolua_S,4,0));
2903 imlib_render_image_on_drawable_at_size(x,y,width,height);
2907 #ifndef TOLUA_RELEASE
2909 tolua_error(tolua_S,"#ferror in function 'imlib_render_image_on_drawable_at_size'.",&tolua_err);
2913 #endif //#ifndef TOLUA_DISABLE
2915 /* function: imlib_render_image_part_on_drawable_at_size */
2916 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_render_image_part_on_drawable_at_size00
2917 static int tolua_imlib2_imlib_render_image_part_on_drawable_at_size00(lua_State* tolua_S)
2919 #ifndef TOLUA_RELEASE
2920 tolua_Error tolua_err;
2922 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
2923 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2924 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2925 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
2926 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
2927 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
2928 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
2929 !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
2930 !tolua_isnoobj(tolua_S,9,&tolua_err)
2936 int source_x = ((int) tolua_tonumber(tolua_S,1,0));
2937 int source_y = ((int) tolua_tonumber(tolua_S,2,0));
2938 int source_width = ((int) tolua_tonumber(tolua_S,3,0));
2939 int source_height = ((int) tolua_tonumber(tolua_S,4,0));
2940 int x = ((int) tolua_tonumber(tolua_S,5,0));
2941 int y = ((int) tolua_tonumber(tolua_S,6,0));
2942 int width = ((int) tolua_tonumber(tolua_S,7,0));
2943 int height = ((int) tolua_tonumber(tolua_S,8,0));
2945 imlib_render_image_part_on_drawable_at_size(source_x,source_y,source_width,source_height,x,y,width,height);
2949 #ifndef TOLUA_RELEASE
2951 tolua_error(tolua_S,"#ferror in function 'imlib_render_image_part_on_drawable_at_size'.",&tolua_err);
2955 #endif //#ifndef TOLUA_DISABLE
2957 /* function: imlib_render_get_pixel_color */
2958 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_render_get_pixel_color00
2959 static int tolua_imlib2_imlib_render_get_pixel_color00(lua_State* tolua_S)
2961 #ifndef TOLUA_RELEASE
2962 tolua_Error tolua_err;
2964 !tolua_isnoobj(tolua_S,1,&tolua_err)
2971 unsigned int tolua_ret = (unsigned int) imlib_render_get_pixel_color();
2972 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
2976 #ifndef TOLUA_RELEASE
2978 tolua_error(tolua_S,"#ferror in function 'imlib_render_get_pixel_color'.",&tolua_err);
2982 #endif //#ifndef TOLUA_DISABLE
2984 /* function: imlib_blend_image_onto_image */
2985 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_blend_image_onto_image00
2986 static int tolua_imlib2_imlib_blend_image_onto_image00(lua_State* tolua_S)
2988 #ifndef TOLUA_RELEASE
2989 tolua_Error tolua_err;
2991 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
2992 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2993 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
2994 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
2995 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
2996 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
2997 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
2998 !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
2999 !tolua_isnumber(tolua_S,9,0,&tolua_err) ||
3000 !tolua_isnumber(tolua_S,10,0,&tolua_err) ||
3001 !tolua_isnoobj(tolua_S,11,&tolua_err)
3007 _userdata source_image = (( _userdata) tolua_touserdata(tolua_S,1,0));
3008 char merge_alpha = ((char) tolua_tonumber(tolua_S,2,0));
3009 int source_x = ((int) tolua_tonumber(tolua_S,3,0));
3010 int source_y = ((int) tolua_tonumber(tolua_S,4,0));
3011 int source_width = ((int) tolua_tonumber(tolua_S,5,0));
3012 int source_height = ((int) tolua_tonumber(tolua_S,6,0));
3013 int destination_x = ((int) tolua_tonumber(tolua_S,7,0));
3014 int destination_y = ((int) tolua_tonumber(tolua_S,8,0));
3015 int destination_width = ((int) tolua_tonumber(tolua_S,9,0));
3016 int destination_height = ((int) tolua_tonumber(tolua_S,10,0));
3018 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);
3022 #ifndef TOLUA_RELEASE
3024 tolua_error(tolua_S,"#ferror in function 'imlib_blend_image_onto_image'.",&tolua_err);
3028 #endif //#ifndef TOLUA_DISABLE
3030 /* function: imlib_create_image */
3031 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_image00
3032 static int tolua_imlib2_imlib_create_image00(lua_State* tolua_S)
3034 #ifndef TOLUA_RELEASE
3035 tolua_Error tolua_err;
3037 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
3038 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3039 !tolua_isnoobj(tolua_S,3,&tolua_err)
3045 int width = ((int) tolua_tonumber(tolua_S,1,0));
3046 int height = ((int) tolua_tonumber(tolua_S,2,0));
3048 _userdata tolua_ret = ( _userdata) imlib_create_image(width,height);
3049 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3053 #ifndef TOLUA_RELEASE
3055 tolua_error(tolua_S,"#ferror in function 'imlib_create_image'.",&tolua_err);
3059 #endif //#ifndef TOLUA_DISABLE
3061 /* function: imlib_create_image_using_data */
3062 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_image_using_data00
3063 static int tolua_imlib2_imlib_create_image_using_data00(lua_State* tolua_S)
3065 #ifndef TOLUA_RELEASE
3066 tolua_Error tolua_err;
3068 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
3069 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3070 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3071 !tolua_isnoobj(tolua_S,4,&tolua_err)
3077 int width = ((int) tolua_tonumber(tolua_S,1,0));
3078 int height = ((int) tolua_tonumber(tolua_S,2,0));
3079 unsigned int data = ((unsigned int) tolua_tonumber(tolua_S,3,0));
3081 _userdata tolua_ret = ( _userdata) imlib_create_image_using_data(width,height,&data);
3082 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3083 tolua_pushnumber(tolua_S,(lua_Number)data);
3087 #ifndef TOLUA_RELEASE
3089 tolua_error(tolua_S,"#ferror in function 'imlib_create_image_using_data'.",&tolua_err);
3093 #endif //#ifndef TOLUA_DISABLE
3095 /* function: imlib_create_image_using_copied_data */
3096 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_image_using_copied_data00
3097 static int tolua_imlib2_imlib_create_image_using_copied_data00(lua_State* tolua_S)
3099 #ifndef TOLUA_RELEASE
3100 tolua_Error tolua_err;
3102 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
3103 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3104 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3105 !tolua_isnoobj(tolua_S,4,&tolua_err)
3111 int width = ((int) tolua_tonumber(tolua_S,1,0));
3112 int height = ((int) tolua_tonumber(tolua_S,2,0));
3113 unsigned int data = ((unsigned int) tolua_tonumber(tolua_S,3,0));
3115 _userdata tolua_ret = ( _userdata) imlib_create_image_using_copied_data(width,height,&data);
3116 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3117 tolua_pushnumber(tolua_S,(lua_Number)data);
3121 #ifndef TOLUA_RELEASE
3123 tolua_error(tolua_S,"#ferror in function 'imlib_create_image_using_copied_data'.",&tolua_err);
3127 #endif //#ifndef TOLUA_DISABLE
3129 /* function: imlib_create_image_from_drawable */
3130 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_image_from_drawable00
3131 static int tolua_imlib2_imlib_create_image_from_drawable00(lua_State* tolua_S)
3133 #ifndef TOLUA_RELEASE
3134 tolua_Error tolua_err;
3136 (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"Pixmap",0,&tolua_err)) ||
3137 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3138 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3139 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
3140 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
3141 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
3142 !tolua_isnoobj(tolua_S,7,&tolua_err)
3148 Pixmap mask = *((Pixmap*) tolua_tousertype(tolua_S,1,0));
3149 int x = ((int) tolua_tonumber(tolua_S,2,0));
3150 int y = ((int) tolua_tonumber(tolua_S,3,0));
3151 int width = ((int) tolua_tonumber(tolua_S,4,0));
3152 int height = ((int) tolua_tonumber(tolua_S,5,0));
3153 char need_to_grab_x = ((char) tolua_tonumber(tolua_S,6,0));
3155 _userdata tolua_ret = ( _userdata) imlib_create_image_from_drawable(mask,x,y,width,height,need_to_grab_x);
3156 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3160 #ifndef TOLUA_RELEASE
3162 tolua_error(tolua_S,"#ferror in function 'imlib_create_image_from_drawable'.",&tolua_err);
3166 #endif //#ifndef TOLUA_DISABLE
3168 /* function: imlib_create_image_from_ximage */
3169 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_image_from_ximage00
3170 static int tolua_imlib2_imlib_create_image_from_ximage00(lua_State* tolua_S)
3172 #ifndef TOLUA_RELEASE
3173 tolua_Error tolua_err;
3175 !tolua_isusertype(tolua_S,1,"XImage",0,&tolua_err) ||
3176 !tolua_isusertype(tolua_S,2,"XImage",0,&tolua_err) ||
3177 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3178 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
3179 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
3180 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
3181 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
3182 !tolua_isnoobj(tolua_S,8,&tolua_err)
3188 XImage* image = ((XImage*) tolua_tousertype(tolua_S,1,0));
3189 XImage* mask = ((XImage*) tolua_tousertype(tolua_S,2,0));
3190 int x = ((int) tolua_tonumber(tolua_S,3,0));
3191 int y = ((int) tolua_tonumber(tolua_S,4,0));
3192 int width = ((int) tolua_tonumber(tolua_S,5,0));
3193 int height = ((int) tolua_tonumber(tolua_S,6,0));
3194 char need_to_grab_x = ((char) tolua_tonumber(tolua_S,7,0));
3196 _userdata tolua_ret = ( _userdata) imlib_create_image_from_ximage(image,mask,x,y,width,height,need_to_grab_x);
3197 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3201 #ifndef TOLUA_RELEASE
3203 tolua_error(tolua_S,"#ferror in function 'imlib_create_image_from_ximage'.",&tolua_err);
3207 #endif //#ifndef TOLUA_DISABLE
3209 /* function: imlib_create_scaled_image_from_drawable */
3210 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_scaled_image_from_drawable00
3211 static int tolua_imlib2_imlib_create_scaled_image_from_drawable00(lua_State* tolua_S)
3213 #ifndef TOLUA_RELEASE
3214 tolua_Error tolua_err;
3216 (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"Pixmap",0,&tolua_err)) ||
3217 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3218 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3219 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
3220 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
3221 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
3222 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
3223 !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
3224 !tolua_isnumber(tolua_S,9,0,&tolua_err) ||
3225 !tolua_isnoobj(tolua_S,10,&tolua_err)
3231 Pixmap mask = *((Pixmap*) tolua_tousertype(tolua_S,1,0));
3232 int source_x = ((int) tolua_tonumber(tolua_S,2,0));
3233 int source_y = ((int) tolua_tonumber(tolua_S,3,0));
3234 int source_width = ((int) tolua_tonumber(tolua_S,4,0));
3235 int source_height = ((int) tolua_tonumber(tolua_S,5,0));
3236 int destination_width = ((int) tolua_tonumber(tolua_S,6,0));
3237 int destination_height = ((int) tolua_tonumber(tolua_S,7,0));
3238 char need_to_grab_x = ((char) tolua_tonumber(tolua_S,8,0));
3239 char get_mask_from_shape = ((char) tolua_tonumber(tolua_S,9,0));
3241 _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);
3242 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3246 #ifndef TOLUA_RELEASE
3248 tolua_error(tolua_S,"#ferror in function 'imlib_create_scaled_image_from_drawable'.",&tolua_err);
3252 #endif //#ifndef TOLUA_DISABLE
3254 /* function: imlib_copy_drawable_to_image */
3255 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_copy_drawable_to_image00
3256 static int tolua_imlib2_imlib_copy_drawable_to_image00(lua_State* tolua_S)
3258 #ifndef TOLUA_RELEASE
3259 tolua_Error tolua_err;
3261 (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"Pixmap",0,&tolua_err)) ||
3262 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3263 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3264 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
3265 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
3266 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
3267 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
3268 !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
3269 !tolua_isnoobj(tolua_S,9,&tolua_err)
3275 Pixmap mask = *((Pixmap*) tolua_tousertype(tolua_S,1,0));
3276 int x = ((int) tolua_tonumber(tolua_S,2,0));
3277 int y = ((int) tolua_tonumber(tolua_S,3,0));
3278 int width = ((int) tolua_tonumber(tolua_S,4,0));
3279 int height = ((int) tolua_tonumber(tolua_S,5,0));
3280 int destination_x = ((int) tolua_tonumber(tolua_S,6,0));
3281 int destination_y = ((int) tolua_tonumber(tolua_S,7,0));
3282 char need_to_grab_x = ((char) tolua_tonumber(tolua_S,8,0));
3284 char tolua_ret = (char) imlib_copy_drawable_to_image(mask,x,y,width,height,destination_x,destination_y,need_to_grab_x);
3285 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
3289 #ifndef TOLUA_RELEASE
3291 tolua_error(tolua_S,"#ferror in function 'imlib_copy_drawable_to_image'.",&tolua_err);
3295 #endif //#ifndef TOLUA_DISABLE
3297 /* function: imlib_clone_image */
3298 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_clone_image00
3299 static int tolua_imlib2_imlib_clone_image00(lua_State* tolua_S)
3301 #ifndef TOLUA_RELEASE
3302 tolua_Error tolua_err;
3304 !tolua_isnoobj(tolua_S,1,&tolua_err)
3311 _userdata tolua_ret = ( _userdata) imlib_clone_image();
3312 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3316 #ifndef TOLUA_RELEASE
3318 tolua_error(tolua_S,"#ferror in function 'imlib_clone_image'.",&tolua_err);
3322 #endif //#ifndef TOLUA_DISABLE
3324 /* function: imlib_create_cropped_image */
3325 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_cropped_image00
3326 static int tolua_imlib2_imlib_create_cropped_image00(lua_State* tolua_S)
3328 #ifndef TOLUA_RELEASE
3329 tolua_Error tolua_err;
3331 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
3332 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3333 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3334 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
3335 !tolua_isnoobj(tolua_S,5,&tolua_err)
3341 int x = ((int) tolua_tonumber(tolua_S,1,0));
3342 int y = ((int) tolua_tonumber(tolua_S,2,0));
3343 int width = ((int) tolua_tonumber(tolua_S,3,0));
3344 int height = ((int) tolua_tonumber(tolua_S,4,0));
3346 _userdata tolua_ret = ( _userdata) imlib_create_cropped_image(x,y,width,height);
3347 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3351 #ifndef TOLUA_RELEASE
3353 tolua_error(tolua_S,"#ferror in function 'imlib_create_cropped_image'.",&tolua_err);
3357 #endif //#ifndef TOLUA_DISABLE
3359 /* function: imlib_create_cropped_scaled_image */
3360 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_cropped_scaled_image00
3361 static int tolua_imlib2_imlib_create_cropped_scaled_image00(lua_State* tolua_S)
3363 #ifndef TOLUA_RELEASE
3364 tolua_Error tolua_err;
3366 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
3367 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3368 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3369 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
3370 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
3371 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
3372 !tolua_isnoobj(tolua_S,7,&tolua_err)
3378 int source_x = ((int) tolua_tonumber(tolua_S,1,0));
3379 int source_y = ((int) tolua_tonumber(tolua_S,2,0));
3380 int source_width = ((int) tolua_tonumber(tolua_S,3,0));
3381 int source_height = ((int) tolua_tonumber(tolua_S,4,0));
3382 int destination_width = ((int) tolua_tonumber(tolua_S,5,0));
3383 int destination_height = ((int) tolua_tonumber(tolua_S,6,0));
3385 _userdata tolua_ret = ( _userdata) imlib_create_cropped_scaled_image(source_x,source_y,source_width,source_height,destination_width,destination_height);
3386 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3390 #ifndef TOLUA_RELEASE
3392 tolua_error(tolua_S,"#ferror in function 'imlib_create_cropped_scaled_image'.",&tolua_err);
3396 #endif //#ifndef TOLUA_DISABLE
3398 /* function: imlib_updates_clone */
3399 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_updates_clone00
3400 static int tolua_imlib2_imlib_updates_clone00(lua_State* tolua_S)
3402 #ifndef TOLUA_RELEASE
3403 tolua_Error tolua_err;
3405 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
3406 !tolua_isnoobj(tolua_S,2,&tolua_err)
3412 _userdata updates = (( _userdata) tolua_touserdata(tolua_S,1,0));
3414 _userdata tolua_ret = ( _userdata) imlib_updates_clone(updates);
3415 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3419 #ifndef TOLUA_RELEASE
3421 tolua_error(tolua_S,"#ferror in function 'imlib_updates_clone'.",&tolua_err);
3425 #endif //#ifndef TOLUA_DISABLE
3427 /* function: imlib_update_append_rect */
3428 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_update_append_rect00
3429 static int tolua_imlib2_imlib_update_append_rect00(lua_State* tolua_S)
3431 #ifndef TOLUA_RELEASE
3432 tolua_Error tolua_err;
3434 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
3435 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3436 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3437 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
3438 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
3439 !tolua_isnoobj(tolua_S,6,&tolua_err)
3445 _userdata updates = (( _userdata) tolua_touserdata(tolua_S,1,0));
3446 int x = ((int) tolua_tonumber(tolua_S,2,0));
3447 int y = ((int) tolua_tonumber(tolua_S,3,0));
3448 int w = ((int) tolua_tonumber(tolua_S,4,0));
3449 int h = ((int) tolua_tonumber(tolua_S,5,0));
3451 _userdata tolua_ret = ( _userdata) imlib_update_append_rect(updates,x,y,w,h);
3452 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3456 #ifndef TOLUA_RELEASE
3458 tolua_error(tolua_S,"#ferror in function 'imlib_update_append_rect'.",&tolua_err);
3462 #endif //#ifndef TOLUA_DISABLE
3464 /* function: imlib_updates_merge */
3465 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_updates_merge00
3466 static int tolua_imlib2_imlib_updates_merge00(lua_State* tolua_S)
3468 #ifndef TOLUA_RELEASE
3469 tolua_Error tolua_err;
3471 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
3472 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3473 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3474 !tolua_isnoobj(tolua_S,4,&tolua_err)
3480 _userdata updates = (( _userdata) tolua_touserdata(tolua_S,1,0));
3481 int w = ((int) tolua_tonumber(tolua_S,2,0));
3482 int h = ((int) tolua_tonumber(tolua_S,3,0));
3484 _userdata tolua_ret = ( _userdata) imlib_updates_merge(updates,w,h);
3485 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3489 #ifndef TOLUA_RELEASE
3491 tolua_error(tolua_S,"#ferror in function 'imlib_updates_merge'.",&tolua_err);
3495 #endif //#ifndef TOLUA_DISABLE
3497 /* function: imlib_updates_merge_for_rendering */
3498 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_updates_merge_for_rendering00
3499 static int tolua_imlib2_imlib_updates_merge_for_rendering00(lua_State* tolua_S)
3501 #ifndef TOLUA_RELEASE
3502 tolua_Error tolua_err;
3504 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
3505 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3506 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3507 !tolua_isnoobj(tolua_S,4,&tolua_err)
3513 _userdata updates = (( _userdata) tolua_touserdata(tolua_S,1,0));
3514 int w = ((int) tolua_tonumber(tolua_S,2,0));
3515 int h = ((int) tolua_tonumber(tolua_S,3,0));
3517 _userdata tolua_ret = ( _userdata) imlib_updates_merge_for_rendering(updates,w,h);
3518 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3522 #ifndef TOLUA_RELEASE
3524 tolua_error(tolua_S,"#ferror in function 'imlib_updates_merge_for_rendering'.",&tolua_err);
3528 #endif //#ifndef TOLUA_DISABLE
3530 /* function: imlib_updates_free */
3531 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_updates_free00
3532 static int tolua_imlib2_imlib_updates_free00(lua_State* tolua_S)
3534 #ifndef TOLUA_RELEASE
3535 tolua_Error tolua_err;
3537 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
3538 !tolua_isnoobj(tolua_S,2,&tolua_err)
3544 _userdata updates = (( _userdata) tolua_touserdata(tolua_S,1,0));
3546 imlib_updates_free(updates);
3550 #ifndef TOLUA_RELEASE
3552 tolua_error(tolua_S,"#ferror in function 'imlib_updates_free'.",&tolua_err);
3556 #endif //#ifndef TOLUA_DISABLE
3558 /* function: imlib_updates_get_next */
3559 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_updates_get_next00
3560 static int tolua_imlib2_imlib_updates_get_next00(lua_State* tolua_S)
3562 #ifndef TOLUA_RELEASE
3563 tolua_Error tolua_err;
3565 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
3566 !tolua_isnoobj(tolua_S,2,&tolua_err)
3572 _userdata updates = (( _userdata) tolua_touserdata(tolua_S,1,0));
3574 _userdata tolua_ret = ( _userdata) imlib_updates_get_next(updates);
3575 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3579 #ifndef TOLUA_RELEASE
3581 tolua_error(tolua_S,"#ferror in function 'imlib_updates_get_next'.",&tolua_err);
3585 #endif //#ifndef TOLUA_DISABLE
3587 /* function: imlib_updates_get_coordinates */
3588 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_updates_get_coordinates00
3589 static int tolua_imlib2_imlib_updates_get_coordinates00(lua_State* tolua_S)
3591 #ifndef TOLUA_RELEASE
3592 tolua_Error tolua_err;
3594 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
3595 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3596 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3597 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
3598 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
3599 !tolua_isnoobj(tolua_S,6,&tolua_err)
3605 _userdata updates = (( _userdata) tolua_touserdata(tolua_S,1,0));
3606 int x_return = ((int) tolua_tonumber(tolua_S,2,0));
3607 int y_return = ((int) tolua_tonumber(tolua_S,3,0));
3608 int width_return = ((int) tolua_tonumber(tolua_S,4,0));
3609 int height_return = ((int) tolua_tonumber(tolua_S,5,0));
3611 imlib_updates_get_coordinates(updates,&x_return,&y_return,&width_return,&height_return);
3612 tolua_pushnumber(tolua_S,(lua_Number)x_return);
3613 tolua_pushnumber(tolua_S,(lua_Number)y_return);
3614 tolua_pushnumber(tolua_S,(lua_Number)width_return);
3615 tolua_pushnumber(tolua_S,(lua_Number)height_return);
3619 #ifndef TOLUA_RELEASE
3621 tolua_error(tolua_S,"#ferror in function 'imlib_updates_get_coordinates'.",&tolua_err);
3625 #endif //#ifndef TOLUA_DISABLE
3627 /* function: imlib_updates_set_coordinates */
3628 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_updates_set_coordinates00
3629 static int tolua_imlib2_imlib_updates_set_coordinates00(lua_State* tolua_S)
3631 #ifndef TOLUA_RELEASE
3632 tolua_Error tolua_err;
3634 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
3635 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3636 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3637 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
3638 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
3639 !tolua_isnoobj(tolua_S,6,&tolua_err)
3645 _userdata updates = (( _userdata) tolua_touserdata(tolua_S,1,0));
3646 int x = ((int) tolua_tonumber(tolua_S,2,0));
3647 int y = ((int) tolua_tonumber(tolua_S,3,0));
3648 int width = ((int) tolua_tonumber(tolua_S,4,0));
3649 int height = ((int) tolua_tonumber(tolua_S,5,0));
3651 imlib_updates_set_coordinates(updates,x,y,width,height);
3655 #ifndef TOLUA_RELEASE
3657 tolua_error(tolua_S,"#ferror in function 'imlib_updates_set_coordinates'.",&tolua_err);
3661 #endif //#ifndef TOLUA_DISABLE
3663 /* function: imlib_render_image_updates_on_drawable */
3664 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_render_image_updates_on_drawable00
3665 static int tolua_imlib2_imlib_render_image_updates_on_drawable00(lua_State* tolua_S)
3667 #ifndef TOLUA_RELEASE
3668 tolua_Error tolua_err;
3670 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
3671 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
3672 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
3673 !tolua_isnoobj(tolua_S,4,&tolua_err)
3679 _userdata updates = (( _userdata) tolua_touserdata(tolua_S,1,0));
3680 int x = ((int) tolua_tonumber(tolua_S,2,0));
3681 int y = ((int) tolua_tonumber(tolua_S,3,0));
3683 imlib_render_image_updates_on_drawable(updates,x,y);
3687 #ifndef TOLUA_RELEASE
3689 tolua_error(tolua_S,"#ferror in function 'imlib_render_image_updates_on_drawable'.",&tolua_err);
3693 #endif //#ifndef TOLUA_DISABLE
3695 /* function: imlib_updates_init */
3696 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_updates_init00
3697 static int tolua_imlib2_imlib_updates_init00(lua_State* tolua_S)
3699 #ifndef TOLUA_RELEASE
3700 tolua_Error tolua_err;
3702 !tolua_isnoobj(tolua_S,1,&tolua_err)
3709 _userdata tolua_ret = ( _userdata) imlib_updates_init();
3710 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3714 #ifndef TOLUA_RELEASE
3716 tolua_error(tolua_S,"#ferror in function 'imlib_updates_init'.",&tolua_err);
3720 #endif //#ifndef TOLUA_DISABLE
3722 /* function: imlib_updates_append_updates */
3723 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_updates_append_updates00
3724 static int tolua_imlib2_imlib_updates_append_updates00(lua_State* tolua_S)
3726 #ifndef TOLUA_RELEASE
3727 tolua_Error tolua_err;
3729 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
3730 !tolua_isuserdata(tolua_S,2,0,&tolua_err) ||
3731 !tolua_isnoobj(tolua_S,3,&tolua_err)
3737 _userdata updates = (( _userdata) tolua_touserdata(tolua_S,1,0));
3738 _userdata appended_updates = (( _userdata) tolua_touserdata(tolua_S,2,0));
3740 _userdata tolua_ret = ( _userdata) imlib_updates_append_updates(updates,appended_updates);
3741 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
3745 #ifndef TOLUA_RELEASE
3747 tolua_error(tolua_S,"#ferror in function 'imlib_updates_append_updates'.",&tolua_err);
3751 #endif //#ifndef TOLUA_DISABLE
3753 /* function: imlib_image_flip_horizontal */
3754 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_flip_horizontal00
3755 static int tolua_imlib2_imlib_image_flip_horizontal00(lua_State* tolua_S)
3757 #ifndef TOLUA_RELEASE
3758 tolua_Error tolua_err;
3760 !tolua_isnoobj(tolua_S,1,&tolua_err)
3767 imlib_image_flip_horizontal();
3771 #ifndef TOLUA_RELEASE
3773 tolua_error(tolua_S,"#ferror in function 'imlib_image_flip_horizontal'.",&tolua_err);
3777 #endif //#ifndef TOLUA_DISABLE
3779 /* function: imlib_image_flip_vertical */
3780 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_flip_vertical00
3781 static int tolua_imlib2_imlib_image_flip_vertical00(lua_State* tolua_S)
3783 #ifndef TOLUA_RELEASE
3784 tolua_Error tolua_err;
3786 !tolua_isnoobj(tolua_S,1,&tolua_err)
3793 imlib_image_flip_vertical();
3797 #ifndef TOLUA_RELEASE
3799 tolua_error(tolua_S,"#ferror in function 'imlib_image_flip_vertical'.",&tolua_err);
3803 #endif //#ifndef TOLUA_DISABLE
3805 /* function: imlib_image_flip_diagonal */
3806 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_flip_diagonal00
3807 static int tolua_imlib2_imlib_image_flip_diagonal00(lua_State* tolua_S)
3809 #ifndef TOLUA_RELEASE
3810 tolua_Error tolua_err;
3812 !tolua_isnoobj(tolua_S,1,&tolua_err)
3819 imlib_image_flip_diagonal();
3823 #ifndef TOLUA_RELEASE
3825 tolua_error(tolua_S,"#ferror in function 'imlib_image_flip_diagonal'.",&tolua_err);
3829 #endif //#ifndef TOLUA_DISABLE
3831 /* function: imlib_image_orientate */
3832 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_orientate00
3833 static int tolua_imlib2_imlib_image_orientate00(lua_State* tolua_S)
3835 #ifndef TOLUA_RELEASE
3836 tolua_Error tolua_err;
3838 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
3839 !tolua_isnoobj(tolua_S,2,&tolua_err)
3845 int orientation = ((int) tolua_tonumber(tolua_S,1,0));
3847 imlib_image_orientate(orientation);
3851 #ifndef TOLUA_RELEASE
3853 tolua_error(tolua_S,"#ferror in function 'imlib_image_orientate'.",&tolua_err);
3857 #endif //#ifndef TOLUA_DISABLE
3859 /* function: imlib_image_blur */
3860 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_blur00
3861 static int tolua_imlib2_imlib_image_blur00(lua_State* tolua_S)
3863 #ifndef TOLUA_RELEASE
3864 tolua_Error tolua_err;
3866 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
3867 !tolua_isnoobj(tolua_S,2,&tolua_err)
3873 int radius = ((int) tolua_tonumber(tolua_S,1,0));
3875 imlib_image_blur(radius);
3879 #ifndef TOLUA_RELEASE
3881 tolua_error(tolua_S,"#ferror in function 'imlib_image_blur'.",&tolua_err);
3885 #endif //#ifndef TOLUA_DISABLE
3887 /* function: imlib_image_sharpen */
3888 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_sharpen00
3889 static int tolua_imlib2_imlib_image_sharpen00(lua_State* tolua_S)
3891 #ifndef TOLUA_RELEASE
3892 tolua_Error tolua_err;
3894 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
3895 !tolua_isnoobj(tolua_S,2,&tolua_err)
3901 int radius = ((int) tolua_tonumber(tolua_S,1,0));
3903 imlib_image_sharpen(radius);
3907 #ifndef TOLUA_RELEASE
3909 tolua_error(tolua_S,"#ferror in function 'imlib_image_sharpen'.",&tolua_err);
3913 #endif //#ifndef TOLUA_DISABLE
3915 /* function: imlib_image_tile_horizontal */
3916 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_tile_horizontal00
3917 static int tolua_imlib2_imlib_image_tile_horizontal00(lua_State* tolua_S)
3919 #ifndef TOLUA_RELEASE
3920 tolua_Error tolua_err;
3922 !tolua_isnoobj(tolua_S,1,&tolua_err)
3929 imlib_image_tile_horizontal();
3933 #ifndef TOLUA_RELEASE
3935 tolua_error(tolua_S,"#ferror in function 'imlib_image_tile_horizontal'.",&tolua_err);
3939 #endif //#ifndef TOLUA_DISABLE
3941 /* function: imlib_image_tile_vertical */
3942 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_tile_vertical00
3943 static int tolua_imlib2_imlib_image_tile_vertical00(lua_State* tolua_S)
3945 #ifndef TOLUA_RELEASE
3946 tolua_Error tolua_err;
3948 !tolua_isnoobj(tolua_S,1,&tolua_err)
3955 imlib_image_tile_vertical();
3959 #ifndef TOLUA_RELEASE
3961 tolua_error(tolua_S,"#ferror in function 'imlib_image_tile_vertical'.",&tolua_err);
3965 #endif //#ifndef TOLUA_DISABLE
3967 /* function: imlib_image_tile */
3968 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_tile00
3969 static int tolua_imlib2_imlib_image_tile00(lua_State* tolua_S)
3971 #ifndef TOLUA_RELEASE
3972 tolua_Error tolua_err;
3974 !tolua_isnoobj(tolua_S,1,&tolua_err)
3985 #ifndef TOLUA_RELEASE
3987 tolua_error(tolua_S,"#ferror in function 'imlib_image_tile'.",&tolua_err);
3991 #endif //#ifndef TOLUA_DISABLE
3993 /* function: imlib_load_font */
3994 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_load_font00
3995 static int tolua_imlib2_imlib_load_font00(lua_State* tolua_S)
3997 #ifndef TOLUA_RELEASE
3998 tolua_Error tolua_err;
4000 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
4001 !tolua_isnoobj(tolua_S,2,&tolua_err)
4007 const char* font_name = ((const char*) tolua_tostring(tolua_S,1,0));
4009 _userdata tolua_ret = ( _userdata) imlib_load_font(font_name);
4010 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
4014 #ifndef TOLUA_RELEASE
4016 tolua_error(tolua_S,"#ferror in function 'imlib_load_font'.",&tolua_err);
4020 #endif //#ifndef TOLUA_DISABLE
4022 /* function: imlib_free_font */
4023 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_free_font00
4024 static int tolua_imlib2_imlib_free_font00(lua_State* tolua_S)
4026 #ifndef TOLUA_RELEASE
4027 tolua_Error tolua_err;
4029 !tolua_isnoobj(tolua_S,1,&tolua_err)
4040 #ifndef TOLUA_RELEASE
4042 tolua_error(tolua_S,"#ferror in function 'imlib_free_font'.",&tolua_err);
4046 #endif //#ifndef TOLUA_DISABLE
4048 /* function: imlib_insert_font_into_fallback_chain */
4049 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_insert_font_into_fallback_chain00
4050 static int tolua_imlib2_imlib_insert_font_into_fallback_chain00(lua_State* tolua_S)
4052 #ifndef TOLUA_RELEASE
4053 tolua_Error tolua_err;
4055 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
4056 !tolua_isuserdata(tolua_S,2,0,&tolua_err) ||
4057 !tolua_isnoobj(tolua_S,3,&tolua_err)
4063 _userdata font = (( _userdata) tolua_touserdata(tolua_S,1,0));
4064 _userdata fallback_font = (( _userdata) tolua_touserdata(tolua_S,2,0));
4066 int tolua_ret = (int) imlib_insert_font_into_fallback_chain(font,fallback_font);
4067 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4071 #ifndef TOLUA_RELEASE
4073 tolua_error(tolua_S,"#ferror in function 'imlib_insert_font_into_fallback_chain'.",&tolua_err);
4077 #endif //#ifndef TOLUA_DISABLE
4079 /* function: imlib_remove_font_from_fallback_chain */
4080 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_remove_font_from_fallback_chain00
4081 static int tolua_imlib2_imlib_remove_font_from_fallback_chain00(lua_State* tolua_S)
4083 #ifndef TOLUA_RELEASE
4084 tolua_Error tolua_err;
4086 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
4087 !tolua_isnoobj(tolua_S,2,&tolua_err)
4093 _userdata fallback_font = (( _userdata) tolua_touserdata(tolua_S,1,0));
4095 imlib_remove_font_from_fallback_chain(fallback_font);
4099 #ifndef TOLUA_RELEASE
4101 tolua_error(tolua_S,"#ferror in function 'imlib_remove_font_from_fallback_chain'.",&tolua_err);
4105 #endif //#ifndef TOLUA_DISABLE
4107 /* function: imlib_get_prev_font_in_fallback_chain */
4108 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_prev_font_in_fallback_chain00
4109 static int tolua_imlib2_imlib_get_prev_font_in_fallback_chain00(lua_State* tolua_S)
4111 #ifndef TOLUA_RELEASE
4112 tolua_Error tolua_err;
4114 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
4115 !tolua_isnoobj(tolua_S,2,&tolua_err)
4121 _userdata fn = (( _userdata) tolua_touserdata(tolua_S,1,0));
4123 _userdata tolua_ret = ( _userdata) imlib_get_prev_font_in_fallback_chain(fn);
4124 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
4128 #ifndef TOLUA_RELEASE
4130 tolua_error(tolua_S,"#ferror in function 'imlib_get_prev_font_in_fallback_chain'.",&tolua_err);
4134 #endif //#ifndef TOLUA_DISABLE
4136 /* function: imlib_get_next_font_in_fallback_chain */
4137 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_next_font_in_fallback_chain00
4138 static int tolua_imlib2_imlib_get_next_font_in_fallback_chain00(lua_State* tolua_S)
4140 #ifndef TOLUA_RELEASE
4141 tolua_Error tolua_err;
4143 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
4144 !tolua_isnoobj(tolua_S,2,&tolua_err)
4150 _userdata fn = (( _userdata) tolua_touserdata(tolua_S,1,0));
4152 _userdata tolua_ret = ( _userdata) imlib_get_next_font_in_fallback_chain(fn);
4153 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
4157 #ifndef TOLUA_RELEASE
4159 tolua_error(tolua_S,"#ferror in function 'imlib_get_next_font_in_fallback_chain'.",&tolua_err);
4163 #endif //#ifndef TOLUA_DISABLE
4165 /* function: imlib_text_draw */
4166 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_text_draw00
4167 static int tolua_imlib2_imlib_text_draw00(lua_State* tolua_S)
4169 #ifndef TOLUA_RELEASE
4170 tolua_Error tolua_err;
4172 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
4173 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
4174 !tolua_isstring(tolua_S,3,0,&tolua_err) ||
4175 !tolua_isnoobj(tolua_S,4,&tolua_err)
4181 int x = ((int) tolua_tonumber(tolua_S,1,0));
4182 int y = ((int) tolua_tonumber(tolua_S,2,0));
4183 const char* text = ((const char*) tolua_tostring(tolua_S,3,0));
4185 imlib_text_draw(x,y,text);
4189 #ifndef TOLUA_RELEASE
4191 tolua_error(tolua_S,"#ferror in function 'imlib_text_draw'.",&tolua_err);
4195 #endif //#ifndef TOLUA_DISABLE
4197 /* function: imlib_text_draw_with_return_metrics */
4198 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_text_draw_with_return_metrics00
4199 static int tolua_imlib2_imlib_text_draw_with_return_metrics00(lua_State* tolua_S)
4201 #ifndef TOLUA_RELEASE
4202 tolua_Error tolua_err;
4204 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
4205 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
4206 !tolua_isstring(tolua_S,3,0,&tolua_err) ||
4207 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
4208 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
4209 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
4210 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
4211 !tolua_isnoobj(tolua_S,8,&tolua_err)
4217 int x = ((int) tolua_tonumber(tolua_S,1,0));
4218 int y = ((int) tolua_tonumber(tolua_S,2,0));
4219 const char* text = ((const char*) tolua_tostring(tolua_S,3,0));
4220 int width_return = ((int) tolua_tonumber(tolua_S,4,0));
4221 int height_return = ((int) tolua_tonumber(tolua_S,5,0));
4222 int horizontal_advance_return = ((int) tolua_tonumber(tolua_S,6,0));
4223 int vertical_advance_return = ((int) tolua_tonumber(tolua_S,7,0));
4225 imlib_text_draw_with_return_metrics(x,y,text,&width_return,&height_return,&horizontal_advance_return,&vertical_advance_return);
4226 tolua_pushnumber(tolua_S,(lua_Number)width_return);
4227 tolua_pushnumber(tolua_S,(lua_Number)height_return);
4228 tolua_pushnumber(tolua_S,(lua_Number)horizontal_advance_return);
4229 tolua_pushnumber(tolua_S,(lua_Number)vertical_advance_return);
4233 #ifndef TOLUA_RELEASE
4235 tolua_error(tolua_S,"#ferror in function 'imlib_text_draw_with_return_metrics'.",&tolua_err);
4239 #endif //#ifndef TOLUA_DISABLE
4241 /* function: imlib_get_text_size */
4242 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_text_size00
4243 static int tolua_imlib2_imlib_get_text_size00(lua_State* tolua_S)
4245 #ifndef TOLUA_RELEASE
4246 tolua_Error tolua_err;
4248 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
4249 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
4250 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
4251 !tolua_isnoobj(tolua_S,4,&tolua_err)
4257 const char* text = ((const char*) tolua_tostring(tolua_S,1,0));
4258 int width_return = ((int) tolua_tonumber(tolua_S,2,0));
4259 int height_return = ((int) tolua_tonumber(tolua_S,3,0));
4261 imlib_get_text_size(text,&width_return,&height_return);
4262 tolua_pushnumber(tolua_S,(lua_Number)width_return);
4263 tolua_pushnumber(tolua_S,(lua_Number)height_return);
4267 #ifndef TOLUA_RELEASE
4269 tolua_error(tolua_S,"#ferror in function 'imlib_get_text_size'.",&tolua_err);
4273 #endif //#ifndef TOLUA_DISABLE
4275 /* function: imlib_get_text_advance */
4276 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_text_advance00
4277 static int tolua_imlib2_imlib_get_text_advance00(lua_State* tolua_S)
4279 #ifndef TOLUA_RELEASE
4280 tolua_Error tolua_err;
4282 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
4283 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
4284 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
4285 !tolua_isnoobj(tolua_S,4,&tolua_err)
4291 const char* text = ((const char*) tolua_tostring(tolua_S,1,0));
4292 int horizontal_advance_return = ((int) tolua_tonumber(tolua_S,2,0));
4293 int vertical_advance_return = ((int) tolua_tonumber(tolua_S,3,0));
4295 imlib_get_text_advance(text,&horizontal_advance_return,&vertical_advance_return);
4296 tolua_pushnumber(tolua_S,(lua_Number)horizontal_advance_return);
4297 tolua_pushnumber(tolua_S,(lua_Number)vertical_advance_return);
4301 #ifndef TOLUA_RELEASE
4303 tolua_error(tolua_S,"#ferror in function 'imlib_get_text_advance'.",&tolua_err);
4307 #endif //#ifndef TOLUA_DISABLE
4309 /* function: imlib_get_text_inset */
4310 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_text_inset00
4311 static int tolua_imlib2_imlib_get_text_inset00(lua_State* tolua_S)
4313 #ifndef TOLUA_RELEASE
4314 tolua_Error tolua_err;
4316 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
4317 !tolua_isnoobj(tolua_S,2,&tolua_err)
4323 const char* text = ((const char*) tolua_tostring(tolua_S,1,0));
4325 int tolua_ret = (int) imlib_get_text_inset(text);
4326 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4330 #ifndef TOLUA_RELEASE
4332 tolua_error(tolua_S,"#ferror in function 'imlib_get_text_inset'.",&tolua_err);
4336 #endif //#ifndef TOLUA_DISABLE
4338 /* function: imlib_add_path_to_font_path */
4339 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_add_path_to_font_path00
4340 static int tolua_imlib2_imlib_add_path_to_font_path00(lua_State* tolua_S)
4342 #ifndef TOLUA_RELEASE
4343 tolua_Error tolua_err;
4345 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
4346 !tolua_isnoobj(tolua_S,2,&tolua_err)
4352 const char* path = ((const char*) tolua_tostring(tolua_S,1,0));
4354 imlib_add_path_to_font_path(path);
4358 #ifndef TOLUA_RELEASE
4360 tolua_error(tolua_S,"#ferror in function 'imlib_add_path_to_font_path'.",&tolua_err);
4364 #endif //#ifndef TOLUA_DISABLE
4366 /* function: imlib_remove_path_from_font_path */
4367 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_remove_path_from_font_path00
4368 static int tolua_imlib2_imlib_remove_path_from_font_path00(lua_State* tolua_S)
4370 #ifndef TOLUA_RELEASE
4371 tolua_Error tolua_err;
4373 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
4374 !tolua_isnoobj(tolua_S,2,&tolua_err)
4380 const char* path = ((const char*) tolua_tostring(tolua_S,1,0));
4382 imlib_remove_path_from_font_path(path);
4386 #ifndef TOLUA_RELEASE
4388 tolua_error(tolua_S,"#ferror in function 'imlib_remove_path_from_font_path'.",&tolua_err);
4392 #endif //#ifndef TOLUA_DISABLE
4394 /* function: imlib_list_font_path */
4395 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_list_font_path00
4396 static int tolua_imlib2_imlib_list_font_path00(lua_State* tolua_S)
4398 #ifndef TOLUA_RELEASE
4399 tolua_Error tolua_err;
4401 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
4402 !tolua_isnoobj(tolua_S,2,&tolua_err)
4408 int number_return = ((int) tolua_tonumber(tolua_S,1,0));
4410 char* tolua_ret = (char*) imlib_list_font_path(&number_return);
4411 tolua_pushstring(tolua_S,(const char*)tolua_ret);
4412 tolua_pushnumber(tolua_S,(lua_Number)number_return);
4416 #ifndef TOLUA_RELEASE
4418 tolua_error(tolua_S,"#ferror in function 'imlib_list_font_path'.",&tolua_err);
4422 #endif //#ifndef TOLUA_DISABLE
4424 /* function: imlib_text_get_index_and_location */
4425 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_text_get_index_and_location00
4426 static int tolua_imlib2_imlib_text_get_index_and_location00(lua_State* tolua_S)
4428 #ifndef TOLUA_RELEASE
4429 tolua_Error tolua_err;
4431 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
4432 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
4433 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
4434 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
4435 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
4436 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
4437 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
4438 !tolua_isnoobj(tolua_S,8,&tolua_err)
4444 const char* text = ((const char*) tolua_tostring(tolua_S,1,0));
4445 int x = ((int) tolua_tonumber(tolua_S,2,0));
4446 int y = ((int) tolua_tonumber(tolua_S,3,0));
4447 int char_x_return = ((int) tolua_tonumber(tolua_S,4,0));
4448 int char_y_return = ((int) tolua_tonumber(tolua_S,5,0));
4449 int char_width_return = ((int) tolua_tonumber(tolua_S,6,0));
4450 int char_height_return = ((int) tolua_tonumber(tolua_S,7,0));
4452 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);
4453 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4454 tolua_pushnumber(tolua_S,(lua_Number)char_x_return);
4455 tolua_pushnumber(tolua_S,(lua_Number)char_y_return);
4456 tolua_pushnumber(tolua_S,(lua_Number)char_width_return);
4457 tolua_pushnumber(tolua_S,(lua_Number)char_height_return);
4461 #ifndef TOLUA_RELEASE
4463 tolua_error(tolua_S,"#ferror in function 'imlib_text_get_index_and_location'.",&tolua_err);
4467 #endif //#ifndef TOLUA_DISABLE
4469 /* function: imlib_text_get_location_at_index */
4470 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_text_get_location_at_index00
4471 static int tolua_imlib2_imlib_text_get_location_at_index00(lua_State* tolua_S)
4473 #ifndef TOLUA_RELEASE
4474 tolua_Error tolua_err;
4476 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
4477 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
4478 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
4479 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
4480 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
4481 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
4482 !tolua_isnoobj(tolua_S,7,&tolua_err)
4488 const char* text = ((const char*) tolua_tostring(tolua_S,1,0));
4489 int index = ((int) tolua_tonumber(tolua_S,2,0));
4490 int char_x_return = ((int) tolua_tonumber(tolua_S,3,0));
4491 int char_y_return = ((int) tolua_tonumber(tolua_S,4,0));
4492 int char_width_return = ((int) tolua_tonumber(tolua_S,5,0));
4493 int char_height_return = ((int) tolua_tonumber(tolua_S,6,0));
4495 imlib_text_get_location_at_index(text,index,&char_x_return,&char_y_return,&char_width_return,&char_height_return);
4496 tolua_pushnumber(tolua_S,(lua_Number)char_x_return);
4497 tolua_pushnumber(tolua_S,(lua_Number)char_y_return);
4498 tolua_pushnumber(tolua_S,(lua_Number)char_width_return);
4499 tolua_pushnumber(tolua_S,(lua_Number)char_height_return);
4503 #ifndef TOLUA_RELEASE
4505 tolua_error(tolua_S,"#ferror in function 'imlib_text_get_location_at_index'.",&tolua_err);
4509 #endif //#ifndef TOLUA_DISABLE
4511 /* function: imlib_list_fonts */
4512 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_list_fonts00
4513 static int tolua_imlib2_imlib_list_fonts00(lua_State* tolua_S)
4515 #ifndef TOLUA_RELEASE
4516 tolua_Error tolua_err;
4518 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
4519 !tolua_isnoobj(tolua_S,2,&tolua_err)
4525 int number_return = ((int) tolua_tonumber(tolua_S,1,0));
4527 char* tolua_ret = (char*) imlib_list_fonts(&number_return);
4528 tolua_pushstring(tolua_S,(const char*)tolua_ret);
4529 tolua_pushnumber(tolua_S,(lua_Number)number_return);
4533 #ifndef TOLUA_RELEASE
4535 tolua_error(tolua_S,"#ferror in function 'imlib_list_fonts'.",&tolua_err);
4539 #endif //#ifndef TOLUA_DISABLE
4541 /* function: imlib_free_font_list */
4542 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_free_font_list00
4543 static int tolua_imlib2_imlib_free_font_list00(lua_State* tolua_S)
4545 #ifndef TOLUA_RELEASE
4546 tolua_Error tolua_err;
4548 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
4549 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
4550 !tolua_isnoobj(tolua_S,3,&tolua_err)
4556 char* font_list = ((char*) tolua_tostring(tolua_S,1,0));
4557 int number = ((int) tolua_tonumber(tolua_S,2,0));
4559 imlib_free_font_list(&font_list,number);
4560 tolua_pushstring(tolua_S,(const char*)font_list);
4564 #ifndef TOLUA_RELEASE
4566 tolua_error(tolua_S,"#ferror in function 'imlib_free_font_list'.",&tolua_err);
4570 #endif //#ifndef TOLUA_DISABLE
4572 /* function: imlib_get_font_cache_size */
4573 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_font_cache_size00
4574 static int tolua_imlib2_imlib_get_font_cache_size00(lua_State* tolua_S)
4576 #ifndef TOLUA_RELEASE
4577 tolua_Error tolua_err;
4579 !tolua_isnoobj(tolua_S,1,&tolua_err)
4586 int tolua_ret = (int) imlib_get_font_cache_size();
4587 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4591 #ifndef TOLUA_RELEASE
4593 tolua_error(tolua_S,"#ferror in function 'imlib_get_font_cache_size'.",&tolua_err);
4597 #endif //#ifndef TOLUA_DISABLE
4599 /* function: imlib_set_font_cache_size */
4600 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_set_font_cache_size00
4601 static int tolua_imlib2_imlib_set_font_cache_size00(lua_State* tolua_S)
4603 #ifndef TOLUA_RELEASE
4604 tolua_Error tolua_err;
4606 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
4607 !tolua_isnoobj(tolua_S,2,&tolua_err)
4613 int bytes = ((int) tolua_tonumber(tolua_S,1,0));
4615 imlib_set_font_cache_size(bytes);
4619 #ifndef TOLUA_RELEASE
4621 tolua_error(tolua_S,"#ferror in function 'imlib_set_font_cache_size'.",&tolua_err);
4625 #endif //#ifndef TOLUA_DISABLE
4627 /* function: imlib_flush_font_cache */
4628 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_flush_font_cache00
4629 static int tolua_imlib2_imlib_flush_font_cache00(lua_State* tolua_S)
4631 #ifndef TOLUA_RELEASE
4632 tolua_Error tolua_err;
4634 !tolua_isnoobj(tolua_S,1,&tolua_err)
4641 imlib_flush_font_cache();
4645 #ifndef TOLUA_RELEASE
4647 tolua_error(tolua_S,"#ferror in function 'imlib_flush_font_cache'.",&tolua_err);
4651 #endif //#ifndef TOLUA_DISABLE
4653 /* function: imlib_get_font_ascent */
4654 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_font_ascent00
4655 static int tolua_imlib2_imlib_get_font_ascent00(lua_State* tolua_S)
4657 #ifndef TOLUA_RELEASE
4658 tolua_Error tolua_err;
4660 !tolua_isnoobj(tolua_S,1,&tolua_err)
4667 int tolua_ret = (int) imlib_get_font_ascent();
4668 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4672 #ifndef TOLUA_RELEASE
4674 tolua_error(tolua_S,"#ferror in function 'imlib_get_font_ascent'.",&tolua_err);
4678 #endif //#ifndef TOLUA_DISABLE
4680 /* function: imlib_get_font_descent */
4681 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_font_descent00
4682 static int tolua_imlib2_imlib_get_font_descent00(lua_State* tolua_S)
4684 #ifndef TOLUA_RELEASE
4685 tolua_Error tolua_err;
4687 !tolua_isnoobj(tolua_S,1,&tolua_err)
4694 int tolua_ret = (int) imlib_get_font_descent();
4695 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4699 #ifndef TOLUA_RELEASE
4701 tolua_error(tolua_S,"#ferror in function 'imlib_get_font_descent'.",&tolua_err);
4705 #endif //#ifndef TOLUA_DISABLE
4707 /* function: imlib_get_maximum_font_ascent */
4708 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_maximum_font_ascent00
4709 static int tolua_imlib2_imlib_get_maximum_font_ascent00(lua_State* tolua_S)
4711 #ifndef TOLUA_RELEASE
4712 tolua_Error tolua_err;
4714 !tolua_isnoobj(tolua_S,1,&tolua_err)
4721 int tolua_ret = (int) imlib_get_maximum_font_ascent();
4722 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4726 #ifndef TOLUA_RELEASE
4728 tolua_error(tolua_S,"#ferror in function 'imlib_get_maximum_font_ascent'.",&tolua_err);
4732 #endif //#ifndef TOLUA_DISABLE
4734 /* function: imlib_get_maximum_font_descent */
4735 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_maximum_font_descent00
4736 static int tolua_imlib2_imlib_get_maximum_font_descent00(lua_State* tolua_S)
4738 #ifndef TOLUA_RELEASE
4739 tolua_Error tolua_err;
4741 !tolua_isnoobj(tolua_S,1,&tolua_err)
4748 int tolua_ret = (int) imlib_get_maximum_font_descent();
4749 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
4753 #ifndef TOLUA_RELEASE
4755 tolua_error(tolua_S,"#ferror in function 'imlib_get_maximum_font_descent'.",&tolua_err);
4759 #endif //#ifndef TOLUA_DISABLE
4761 /* function: imlib_create_color_modifier */
4762 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_color_modifier00
4763 static int tolua_imlib2_imlib_create_color_modifier00(lua_State* tolua_S)
4765 #ifndef TOLUA_RELEASE
4766 tolua_Error tolua_err;
4768 !tolua_isnoobj(tolua_S,1,&tolua_err)
4775 _userdata tolua_ret = ( _userdata) imlib_create_color_modifier();
4776 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
4780 #ifndef TOLUA_RELEASE
4782 tolua_error(tolua_S,"#ferror in function 'imlib_create_color_modifier'.",&tolua_err);
4786 #endif //#ifndef TOLUA_DISABLE
4788 /* function: imlib_free_color_modifier */
4789 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_free_color_modifier00
4790 static int tolua_imlib2_imlib_free_color_modifier00(lua_State* tolua_S)
4792 #ifndef TOLUA_RELEASE
4793 tolua_Error tolua_err;
4795 !tolua_isnoobj(tolua_S,1,&tolua_err)
4802 imlib_free_color_modifier();
4806 #ifndef TOLUA_RELEASE
4808 tolua_error(tolua_S,"#ferror in function 'imlib_free_color_modifier'.",&tolua_err);
4812 #endif //#ifndef TOLUA_DISABLE
4814 /* function: imlib_modify_color_modifier_gamma */
4815 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_modify_color_modifier_gamma00
4816 static int tolua_imlib2_imlib_modify_color_modifier_gamma00(lua_State* tolua_S)
4818 #ifndef TOLUA_RELEASE
4819 tolua_Error tolua_err;
4821 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
4822 !tolua_isnoobj(tolua_S,2,&tolua_err)
4828 double gamma_value = ((double) tolua_tonumber(tolua_S,1,0));
4830 imlib_modify_color_modifier_gamma(gamma_value);
4834 #ifndef TOLUA_RELEASE
4836 tolua_error(tolua_S,"#ferror in function 'imlib_modify_color_modifier_gamma'.",&tolua_err);
4840 #endif //#ifndef TOLUA_DISABLE
4842 /* function: imlib_modify_color_modifier_brightness */
4843 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_modify_color_modifier_brightness00
4844 static int tolua_imlib2_imlib_modify_color_modifier_brightness00(lua_State* tolua_S)
4846 #ifndef TOLUA_RELEASE
4847 tolua_Error tolua_err;
4849 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
4850 !tolua_isnoobj(tolua_S,2,&tolua_err)
4856 double brightness_value = ((double) tolua_tonumber(tolua_S,1,0));
4858 imlib_modify_color_modifier_brightness(brightness_value);
4862 #ifndef TOLUA_RELEASE
4864 tolua_error(tolua_S,"#ferror in function 'imlib_modify_color_modifier_brightness'.",&tolua_err);
4868 #endif //#ifndef TOLUA_DISABLE
4870 /* function: imlib_modify_color_modifier_contrast */
4871 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_modify_color_modifier_contrast00
4872 static int tolua_imlib2_imlib_modify_color_modifier_contrast00(lua_State* tolua_S)
4874 #ifndef TOLUA_RELEASE
4875 tolua_Error tolua_err;
4877 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
4878 !tolua_isnoobj(tolua_S,2,&tolua_err)
4884 double contrast_value = ((double) tolua_tonumber(tolua_S,1,0));
4886 imlib_modify_color_modifier_contrast(contrast_value);
4890 #ifndef TOLUA_RELEASE
4892 tolua_error(tolua_S,"#ferror in function 'imlib_modify_color_modifier_contrast'.",&tolua_err);
4896 #endif //#ifndef TOLUA_DISABLE
4898 /* function: imlib_set_color_modifier_tables */
4899 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_set_color_modifier_tables00
4900 static int tolua_imlib2_imlib_set_color_modifier_tables00(lua_State* tolua_S)
4902 #ifndef TOLUA_RELEASE
4903 tolua_Error tolua_err;
4905 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
4906 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
4907 !tolua_isstring(tolua_S,3,0,&tolua_err) ||
4908 !tolua_isstring(tolua_S,4,0,&tolua_err) ||
4909 !tolua_isnoobj(tolua_S,5,&tolua_err)
4915 unsigned char* red_table = ((unsigned char*) tolua_tostring(tolua_S,1,0));
4916 unsigned char* green_table = ((unsigned char*) tolua_tostring(tolua_S,2,0));
4917 unsigned char* blue_table = ((unsigned char*) tolua_tostring(tolua_S,3,0));
4918 unsigned char* alpha_table = ((unsigned char*) tolua_tostring(tolua_S,4,0));
4920 imlib_set_color_modifier_tables(red_table,green_table,blue_table,alpha_table);
4924 #ifndef TOLUA_RELEASE
4926 tolua_error(tolua_S,"#ferror in function 'imlib_set_color_modifier_tables'.",&tolua_err);
4930 #endif //#ifndef TOLUA_DISABLE
4932 /* function: imlib_get_color_modifier_tables */
4933 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_get_color_modifier_tables00
4934 static int tolua_imlib2_imlib_get_color_modifier_tables00(lua_State* tolua_S)
4936 #ifndef TOLUA_RELEASE
4937 tolua_Error tolua_err;
4939 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
4940 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
4941 !tolua_isstring(tolua_S,3,0,&tolua_err) ||
4942 !tolua_isstring(tolua_S,4,0,&tolua_err) ||
4943 !tolua_isnoobj(tolua_S,5,&tolua_err)
4949 unsigned char* red_table = ((unsigned char*) tolua_tostring(tolua_S,1,0));
4950 unsigned char* green_table = ((unsigned char*) tolua_tostring(tolua_S,2,0));
4951 unsigned char* blue_table = ((unsigned char*) tolua_tostring(tolua_S,3,0));
4952 unsigned char* alpha_table = ((unsigned char*) tolua_tostring(tolua_S,4,0));
4954 imlib_get_color_modifier_tables(red_table,green_table,blue_table,alpha_table);
4958 #ifndef TOLUA_RELEASE
4960 tolua_error(tolua_S,"#ferror in function 'imlib_get_color_modifier_tables'.",&tolua_err);
4964 #endif //#ifndef TOLUA_DISABLE
4966 /* function: imlib_reset_color_modifier */
4967 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_reset_color_modifier00
4968 static int tolua_imlib2_imlib_reset_color_modifier00(lua_State* tolua_S)
4970 #ifndef TOLUA_RELEASE
4971 tolua_Error tolua_err;
4973 !tolua_isnoobj(tolua_S,1,&tolua_err)
4980 imlib_reset_color_modifier();
4984 #ifndef TOLUA_RELEASE
4986 tolua_error(tolua_S,"#ferror in function 'imlib_reset_color_modifier'.",&tolua_err);
4990 #endif //#ifndef TOLUA_DISABLE
4992 /* function: imlib_apply_color_modifier */
4993 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_apply_color_modifier00
4994 static int tolua_imlib2_imlib_apply_color_modifier00(lua_State* tolua_S)
4996 #ifndef TOLUA_RELEASE
4997 tolua_Error tolua_err;
4999 !tolua_isnoobj(tolua_S,1,&tolua_err)
5006 imlib_apply_color_modifier();
5010 #ifndef TOLUA_RELEASE
5012 tolua_error(tolua_S,"#ferror in function 'imlib_apply_color_modifier'.",&tolua_err);
5016 #endif //#ifndef TOLUA_DISABLE
5018 /* function: imlib_apply_color_modifier_to_rectangle */
5019 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_apply_color_modifier_to_rectangle00
5020 static int tolua_imlib2_imlib_apply_color_modifier_to_rectangle00(lua_State* tolua_S)
5022 #ifndef TOLUA_RELEASE
5023 tolua_Error tolua_err;
5025 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5026 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5027 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5028 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5029 !tolua_isnoobj(tolua_S,5,&tolua_err)
5035 int x = ((int) tolua_tonumber(tolua_S,1,0));
5036 int y = ((int) tolua_tonumber(tolua_S,2,0));
5037 int width = ((int) tolua_tonumber(tolua_S,3,0));
5038 int height = ((int) tolua_tonumber(tolua_S,4,0));
5040 imlib_apply_color_modifier_to_rectangle(x,y,width,height);
5044 #ifndef TOLUA_RELEASE
5046 tolua_error(tolua_S,"#ferror in function 'imlib_apply_color_modifier_to_rectangle'.",&tolua_err);
5050 #endif //#ifndef TOLUA_DISABLE
5052 /* function: imlib_image_draw_pixel */
5053 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_draw_pixel00
5054 static int tolua_imlib2_imlib_image_draw_pixel00(lua_State* tolua_S)
5056 #ifndef TOLUA_RELEASE
5057 tolua_Error tolua_err;
5059 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5060 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5061 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5062 !tolua_isnoobj(tolua_S,4,&tolua_err)
5068 int x = ((int) tolua_tonumber(tolua_S,1,0));
5069 int y = ((int) tolua_tonumber(tolua_S,2,0));
5070 char make_updates = ((char) tolua_tonumber(tolua_S,3,0));
5072 _userdata tolua_ret = ( _userdata) imlib_image_draw_pixel(x,y,make_updates);
5073 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
5077 #ifndef TOLUA_RELEASE
5079 tolua_error(tolua_S,"#ferror in function 'imlib_image_draw_pixel'.",&tolua_err);
5083 #endif //#ifndef TOLUA_DISABLE
5085 /* function: imlib_image_draw_line */
5086 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_draw_line00
5087 static int tolua_imlib2_imlib_image_draw_line00(lua_State* tolua_S)
5089 #ifndef TOLUA_RELEASE
5090 tolua_Error tolua_err;
5092 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5093 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5094 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5095 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5096 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
5097 !tolua_isnoobj(tolua_S,6,&tolua_err)
5103 int x1 = ((int) tolua_tonumber(tolua_S,1,0));
5104 int y1 = ((int) tolua_tonumber(tolua_S,2,0));
5105 int x2 = ((int) tolua_tonumber(tolua_S,3,0));
5106 int y2 = ((int) tolua_tonumber(tolua_S,4,0));
5107 char make_updates = ((char) tolua_tonumber(tolua_S,5,0));
5109 _userdata tolua_ret = ( _userdata) imlib_image_draw_line(x1,y1,x2,y2,make_updates);
5110 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
5114 #ifndef TOLUA_RELEASE
5116 tolua_error(tolua_S,"#ferror in function 'imlib_image_draw_line'.",&tolua_err);
5120 #endif //#ifndef TOLUA_DISABLE
5122 /* function: imlib_image_draw_rectangle */
5123 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_draw_rectangle00
5124 static int tolua_imlib2_imlib_image_draw_rectangle00(lua_State* tolua_S)
5126 #ifndef TOLUA_RELEASE
5127 tolua_Error tolua_err;
5129 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5130 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5131 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5132 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5133 !tolua_isnoobj(tolua_S,5,&tolua_err)
5139 int x = ((int) tolua_tonumber(tolua_S,1,0));
5140 int y = ((int) tolua_tonumber(tolua_S,2,0));
5141 int width = ((int) tolua_tonumber(tolua_S,3,0));
5142 int height = ((int) tolua_tonumber(tolua_S,4,0));
5144 imlib_image_draw_rectangle(x,y,width,height);
5148 #ifndef TOLUA_RELEASE
5150 tolua_error(tolua_S,"#ferror in function 'imlib_image_draw_rectangle'.",&tolua_err);
5154 #endif //#ifndef TOLUA_DISABLE
5156 /* function: imlib_image_fill_rectangle */
5157 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_fill_rectangle00
5158 static int tolua_imlib2_imlib_image_fill_rectangle00(lua_State* tolua_S)
5160 #ifndef TOLUA_RELEASE
5161 tolua_Error tolua_err;
5163 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5164 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5165 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5166 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5167 !tolua_isnoobj(tolua_S,5,&tolua_err)
5173 int x = ((int) tolua_tonumber(tolua_S,1,0));
5174 int y = ((int) tolua_tonumber(tolua_S,2,0));
5175 int width = ((int) tolua_tonumber(tolua_S,3,0));
5176 int height = ((int) tolua_tonumber(tolua_S,4,0));
5178 imlib_image_fill_rectangle(x,y,width,height);
5182 #ifndef TOLUA_RELEASE
5184 tolua_error(tolua_S,"#ferror in function 'imlib_image_fill_rectangle'.",&tolua_err);
5188 #endif //#ifndef TOLUA_DISABLE
5190 /* function: imlib_image_copy_alpha_to_image */
5191 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_copy_alpha_to_image00
5192 static int tolua_imlib2_imlib_image_copy_alpha_to_image00(lua_State* tolua_S)
5194 #ifndef TOLUA_RELEASE
5195 tolua_Error tolua_err;
5197 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
5198 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5199 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5200 !tolua_isnoobj(tolua_S,4,&tolua_err)
5206 _userdata image_source = (( _userdata) tolua_touserdata(tolua_S,1,0));
5207 int x = ((int) tolua_tonumber(tolua_S,2,0));
5208 int y = ((int) tolua_tonumber(tolua_S,3,0));
5210 imlib_image_copy_alpha_to_image(image_source,x,y);
5214 #ifndef TOLUA_RELEASE
5216 tolua_error(tolua_S,"#ferror in function 'imlib_image_copy_alpha_to_image'.",&tolua_err);
5220 #endif //#ifndef TOLUA_DISABLE
5222 /* function: imlib_image_copy_alpha_rectangle_to_image */
5223 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_copy_alpha_rectangle_to_image00
5224 static int tolua_imlib2_imlib_image_copy_alpha_rectangle_to_image00(lua_State* tolua_S)
5226 #ifndef TOLUA_RELEASE
5227 tolua_Error tolua_err;
5229 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
5230 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5231 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5232 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5233 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
5234 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
5235 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
5236 !tolua_isnoobj(tolua_S,8,&tolua_err)
5242 _userdata image_source = (( _userdata) tolua_touserdata(tolua_S,1,0));
5243 int x = ((int) tolua_tonumber(tolua_S,2,0));
5244 int y = ((int) tolua_tonumber(tolua_S,3,0));
5245 int width = ((int) tolua_tonumber(tolua_S,4,0));
5246 int height = ((int) tolua_tonumber(tolua_S,5,0));
5247 int destination_x = ((int) tolua_tonumber(tolua_S,6,0));
5248 int destination_y = ((int) tolua_tonumber(tolua_S,7,0));
5250 imlib_image_copy_alpha_rectangle_to_image(image_source,x,y,width,height,destination_x,destination_y);
5254 #ifndef TOLUA_RELEASE
5256 tolua_error(tolua_S,"#ferror in function 'imlib_image_copy_alpha_rectangle_to_image'.",&tolua_err);
5260 #endif //#ifndef TOLUA_DISABLE
5262 /* function: imlib_image_scroll_rect */
5263 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_scroll_rect00
5264 static int tolua_imlib2_imlib_image_scroll_rect00(lua_State* tolua_S)
5266 #ifndef TOLUA_RELEASE
5267 tolua_Error tolua_err;
5269 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5270 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5271 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5272 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5273 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
5274 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
5275 !tolua_isnoobj(tolua_S,7,&tolua_err)
5281 int x = ((int) tolua_tonumber(tolua_S,1,0));
5282 int y = ((int) tolua_tonumber(tolua_S,2,0));
5283 int width = ((int) tolua_tonumber(tolua_S,3,0));
5284 int height = ((int) tolua_tonumber(tolua_S,4,0));
5285 int delta_x = ((int) tolua_tonumber(tolua_S,5,0));
5286 int delta_y = ((int) tolua_tonumber(tolua_S,6,0));
5288 imlib_image_scroll_rect(x,y,width,height,delta_x,delta_y);
5292 #ifndef TOLUA_RELEASE
5294 tolua_error(tolua_S,"#ferror in function 'imlib_image_scroll_rect'.",&tolua_err);
5298 #endif //#ifndef TOLUA_DISABLE
5300 /* function: imlib_image_copy_rect */
5301 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_copy_rect00
5302 static int tolua_imlib2_imlib_image_copy_rect00(lua_State* tolua_S)
5304 #ifndef TOLUA_RELEASE
5305 tolua_Error tolua_err;
5307 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5308 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5309 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5310 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5311 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
5312 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
5313 !tolua_isnoobj(tolua_S,7,&tolua_err)
5319 int x = ((int) tolua_tonumber(tolua_S,1,0));
5320 int y = ((int) tolua_tonumber(tolua_S,2,0));
5321 int width = ((int) tolua_tonumber(tolua_S,3,0));
5322 int height = ((int) tolua_tonumber(tolua_S,4,0));
5323 int new_x = ((int) tolua_tonumber(tolua_S,5,0));
5324 int new_y = ((int) tolua_tonumber(tolua_S,6,0));
5326 imlib_image_copy_rect(x,y,width,height,new_x,new_y);
5330 #ifndef TOLUA_RELEASE
5332 tolua_error(tolua_S,"#ferror in function 'imlib_image_copy_rect'.",&tolua_err);
5336 #endif //#ifndef TOLUA_DISABLE
5338 /* function: imlib_polygon_new */
5339 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_polygon_new00
5340 static int tolua_imlib2_imlib_polygon_new00(lua_State* tolua_S)
5342 #ifndef TOLUA_RELEASE
5343 tolua_Error tolua_err;
5345 !tolua_isnoobj(tolua_S,1,&tolua_err)
5352 _userdata tolua_ret = ( _userdata) imlib_polygon_new();
5353 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
5357 #ifndef TOLUA_RELEASE
5359 tolua_error(tolua_S,"#ferror in function 'imlib_polygon_new'.",&tolua_err);
5363 #endif //#ifndef TOLUA_DISABLE
5365 /* function: imlib_polygon_free */
5366 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_polygon_free00
5367 static int tolua_imlib2_imlib_polygon_free00(lua_State* tolua_S)
5369 #ifndef TOLUA_RELEASE
5370 tolua_Error tolua_err;
5372 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
5373 !tolua_isnoobj(tolua_S,2,&tolua_err)
5379 _userdata poly = (( _userdata) tolua_touserdata(tolua_S,1,0));
5381 imlib_polygon_free(poly);
5385 #ifndef TOLUA_RELEASE
5387 tolua_error(tolua_S,"#ferror in function 'imlib_polygon_free'.",&tolua_err);
5391 #endif //#ifndef TOLUA_DISABLE
5393 /* function: imlib_polygon_add_point */
5394 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_polygon_add_point00
5395 static int tolua_imlib2_imlib_polygon_add_point00(lua_State* tolua_S)
5397 #ifndef TOLUA_RELEASE
5398 tolua_Error tolua_err;
5400 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
5401 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5402 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5403 !tolua_isnoobj(tolua_S,4,&tolua_err)
5409 _userdata poly = (( _userdata) tolua_touserdata(tolua_S,1,0));
5410 int x = ((int) tolua_tonumber(tolua_S,2,0));
5411 int y = ((int) tolua_tonumber(tolua_S,3,0));
5413 imlib_polygon_add_point(poly,x,y);
5417 #ifndef TOLUA_RELEASE
5419 tolua_error(tolua_S,"#ferror in function 'imlib_polygon_add_point'.",&tolua_err);
5423 #endif //#ifndef TOLUA_DISABLE
5425 /* function: imlib_image_draw_polygon */
5426 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_draw_polygon00
5427 static int tolua_imlib2_imlib_image_draw_polygon00(lua_State* tolua_S)
5429 #ifndef TOLUA_RELEASE
5430 tolua_Error tolua_err;
5432 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
5433 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5434 !tolua_isnoobj(tolua_S,3,&tolua_err)
5440 _userdata poly = (( _userdata) tolua_touserdata(tolua_S,1,0));
5441 unsigned char closed = ((unsigned char) tolua_tonumber(tolua_S,2,0));
5443 imlib_image_draw_polygon(poly,closed);
5447 #ifndef TOLUA_RELEASE
5449 tolua_error(tolua_S,"#ferror in function 'imlib_image_draw_polygon'.",&tolua_err);
5453 #endif //#ifndef TOLUA_DISABLE
5455 /* function: imlib_image_fill_polygon */
5456 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_fill_polygon00
5457 static int tolua_imlib2_imlib_image_fill_polygon00(lua_State* tolua_S)
5459 #ifndef TOLUA_RELEASE
5460 tolua_Error tolua_err;
5462 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
5463 !tolua_isnoobj(tolua_S,2,&tolua_err)
5469 _userdata poly = (( _userdata) tolua_touserdata(tolua_S,1,0));
5471 imlib_image_fill_polygon(poly);
5475 #ifndef TOLUA_RELEASE
5477 tolua_error(tolua_S,"#ferror in function 'imlib_image_fill_polygon'.",&tolua_err);
5481 #endif //#ifndef TOLUA_DISABLE
5483 /* function: imlib_polygon_get_bounds */
5484 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_polygon_get_bounds00
5485 static int tolua_imlib2_imlib_polygon_get_bounds00(lua_State* tolua_S)
5487 #ifndef TOLUA_RELEASE
5488 tolua_Error tolua_err;
5490 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
5491 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5492 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5493 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5494 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
5495 !tolua_isnoobj(tolua_S,6,&tolua_err)
5501 _userdata poly = (( _userdata) tolua_touserdata(tolua_S,1,0));
5502 int px1 = ((int) tolua_tonumber(tolua_S,2,0));
5503 int py1 = ((int) tolua_tonumber(tolua_S,3,0));
5504 int px2 = ((int) tolua_tonumber(tolua_S,4,0));
5505 int py2 = ((int) tolua_tonumber(tolua_S,5,0));
5507 imlib_polygon_get_bounds(poly,&px1,&py1,&px2,&py2);
5508 tolua_pushnumber(tolua_S,(lua_Number)px1);
5509 tolua_pushnumber(tolua_S,(lua_Number)py1);
5510 tolua_pushnumber(tolua_S,(lua_Number)px2);
5511 tolua_pushnumber(tolua_S,(lua_Number)py2);
5515 #ifndef TOLUA_RELEASE
5517 tolua_error(tolua_S,"#ferror in function 'imlib_polygon_get_bounds'.",&tolua_err);
5521 #endif //#ifndef TOLUA_DISABLE
5523 /* function: imlib_polygon_contains_point */
5524 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_polygon_contains_point00
5525 static int tolua_imlib2_imlib_polygon_contains_point00(lua_State* tolua_S)
5527 #ifndef TOLUA_RELEASE
5528 tolua_Error tolua_err;
5530 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
5531 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5532 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5533 !tolua_isnoobj(tolua_S,4,&tolua_err)
5539 _userdata poly = (( _userdata) tolua_touserdata(tolua_S,1,0));
5540 int x = ((int) tolua_tonumber(tolua_S,2,0));
5541 int y = ((int) tolua_tonumber(tolua_S,3,0));
5543 unsigned char tolua_ret = (unsigned char) imlib_polygon_contains_point(poly,x,y);
5544 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
5548 #ifndef TOLUA_RELEASE
5550 tolua_error(tolua_S,"#ferror in function 'imlib_polygon_contains_point'.",&tolua_err);
5554 #endif //#ifndef TOLUA_DISABLE
5556 /* function: imlib_image_draw_ellipse */
5557 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_draw_ellipse00
5558 static int tolua_imlib2_imlib_image_draw_ellipse00(lua_State* tolua_S)
5560 #ifndef TOLUA_RELEASE
5561 tolua_Error tolua_err;
5563 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5564 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5565 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5566 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5567 !tolua_isnoobj(tolua_S,5,&tolua_err)
5573 int xc = ((int) tolua_tonumber(tolua_S,1,0));
5574 int yc = ((int) tolua_tonumber(tolua_S,2,0));
5575 int a = ((int) tolua_tonumber(tolua_S,3,0));
5576 int b = ((int) tolua_tonumber(tolua_S,4,0));
5578 imlib_image_draw_ellipse(xc,yc,a,b);
5582 #ifndef TOLUA_RELEASE
5584 tolua_error(tolua_S,"#ferror in function 'imlib_image_draw_ellipse'.",&tolua_err);
5588 #endif //#ifndef TOLUA_DISABLE
5590 /* function: imlib_image_fill_ellipse */
5591 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_fill_ellipse00
5592 static int tolua_imlib2_imlib_image_fill_ellipse00(lua_State* tolua_S)
5594 #ifndef TOLUA_RELEASE
5595 tolua_Error tolua_err;
5597 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5598 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5599 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5600 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5601 !tolua_isnoobj(tolua_S,5,&tolua_err)
5607 int xc = ((int) tolua_tonumber(tolua_S,1,0));
5608 int yc = ((int) tolua_tonumber(tolua_S,2,0));
5609 int a = ((int) tolua_tonumber(tolua_S,3,0));
5610 int b = ((int) tolua_tonumber(tolua_S,4,0));
5612 imlib_image_fill_ellipse(xc,yc,a,b);
5616 #ifndef TOLUA_RELEASE
5618 tolua_error(tolua_S,"#ferror in function 'imlib_image_fill_ellipse'.",&tolua_err);
5622 #endif //#ifndef TOLUA_DISABLE
5624 /* function: imlib_create_color_range */
5625 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_color_range00
5626 static int tolua_imlib2_imlib_create_color_range00(lua_State* tolua_S)
5628 #ifndef TOLUA_RELEASE
5629 tolua_Error tolua_err;
5631 !tolua_isnoobj(tolua_S,1,&tolua_err)
5638 _userdata tolua_ret = ( _userdata) imlib_create_color_range();
5639 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
5643 #ifndef TOLUA_RELEASE
5645 tolua_error(tolua_S,"#ferror in function 'imlib_create_color_range'.",&tolua_err);
5649 #endif //#ifndef TOLUA_DISABLE
5651 /* function: imlib_free_color_range */
5652 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_free_color_range00
5653 static int tolua_imlib2_imlib_free_color_range00(lua_State* tolua_S)
5655 #ifndef TOLUA_RELEASE
5656 tolua_Error tolua_err;
5658 !tolua_isnoobj(tolua_S,1,&tolua_err)
5665 imlib_free_color_range();
5669 #ifndef TOLUA_RELEASE
5671 tolua_error(tolua_S,"#ferror in function 'imlib_free_color_range'.",&tolua_err);
5675 #endif //#ifndef TOLUA_DISABLE
5677 /* function: imlib_add_color_to_color_range */
5678 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_add_color_to_color_range00
5679 static int tolua_imlib2_imlib_add_color_to_color_range00(lua_State* tolua_S)
5681 #ifndef TOLUA_RELEASE
5682 tolua_Error tolua_err;
5684 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5685 !tolua_isnoobj(tolua_S,2,&tolua_err)
5691 int distance_away = ((int) tolua_tonumber(tolua_S,1,0));
5693 imlib_add_color_to_color_range(distance_away);
5697 #ifndef TOLUA_RELEASE
5699 tolua_error(tolua_S,"#ferror in function 'imlib_add_color_to_color_range'.",&tolua_err);
5703 #endif //#ifndef TOLUA_DISABLE
5705 /* function: imlib_image_fill_color_range_rectangle */
5706 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_fill_color_range_rectangle00
5707 static int tolua_imlib2_imlib_image_fill_color_range_rectangle00(lua_State* tolua_S)
5709 #ifndef TOLUA_RELEASE
5710 tolua_Error tolua_err;
5712 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5713 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5714 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5715 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5716 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
5717 !tolua_isnoobj(tolua_S,6,&tolua_err)
5723 int x = ((int) tolua_tonumber(tolua_S,1,0));
5724 int y = ((int) tolua_tonumber(tolua_S,2,0));
5725 int width = ((int) tolua_tonumber(tolua_S,3,0));
5726 int height = ((int) tolua_tonumber(tolua_S,4,0));
5727 double angle = ((double) tolua_tonumber(tolua_S,5,0));
5729 imlib_image_fill_color_range_rectangle(x,y,width,height,angle);
5733 #ifndef TOLUA_RELEASE
5735 tolua_error(tolua_S,"#ferror in function 'imlib_image_fill_color_range_rectangle'.",&tolua_err);
5739 #endif //#ifndef TOLUA_DISABLE
5741 /* function: imlib_image_fill_hsva_color_range_rectangle */
5742 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_fill_hsva_color_range_rectangle00
5743 static int tolua_imlib2_imlib_image_fill_hsva_color_range_rectangle00(lua_State* tolua_S)
5745 #ifndef TOLUA_RELEASE
5746 tolua_Error tolua_err;
5748 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5749 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5750 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5751 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5752 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
5753 !tolua_isnoobj(tolua_S,6,&tolua_err)
5759 int x = ((int) tolua_tonumber(tolua_S,1,0));
5760 int y = ((int) tolua_tonumber(tolua_S,2,0));
5761 int width = ((int) tolua_tonumber(tolua_S,3,0));
5762 int height = ((int) tolua_tonumber(tolua_S,4,0));
5763 double angle = ((double) tolua_tonumber(tolua_S,5,0));
5765 imlib_image_fill_hsva_color_range_rectangle(x,y,width,height,angle);
5769 #ifndef TOLUA_RELEASE
5771 tolua_error(tolua_S,"#ferror in function 'imlib_image_fill_hsva_color_range_rectangle'.",&tolua_err);
5775 #endif //#ifndef TOLUA_DISABLE
5777 /* function: imlib_image_attach_data_value */
5778 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_attach_data_value00
5779 static int tolua_imlib2_imlib_image_attach_data_value00(lua_State* tolua_S)
5781 #ifndef TOLUA_RELEASE
5782 tolua_Error tolua_err;
5784 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
5785 !tolua_isuserdata(tolua_S,2,0,&tolua_err) ||
5786 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5787 (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"Imlib_Data_Destructor_Function",0,&tolua_err)) ||
5788 !tolua_isnoobj(tolua_S,5,&tolua_err)
5794 const char* key = ((const char*) tolua_tostring(tolua_S,1,0));
5795 void* data = ((void*) tolua_touserdata(tolua_S,2,0));
5796 int value = ((int) tolua_tonumber(tolua_S,3,0));
5797 Imlib_Data_Destructor_Function destructor_function = *((Imlib_Data_Destructor_Function*) tolua_tousertype(tolua_S,4,0));
5799 imlib_image_attach_data_value(key,data,value,destructor_function);
5803 #ifndef TOLUA_RELEASE
5805 tolua_error(tolua_S,"#ferror in function 'imlib_image_attach_data_value'.",&tolua_err);
5809 #endif //#ifndef TOLUA_DISABLE
5811 /* function: imlib_image_get_attached_data */
5812 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_get_attached_data00
5813 static int tolua_imlib2_imlib_image_get_attached_data00(lua_State* tolua_S)
5815 #ifndef TOLUA_RELEASE
5816 tolua_Error tolua_err;
5818 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
5819 !tolua_isnoobj(tolua_S,2,&tolua_err)
5825 const char* key = ((const char*) tolua_tostring(tolua_S,1,0));
5827 void* tolua_ret = (void*) imlib_image_get_attached_data(key);
5828 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
5832 #ifndef TOLUA_RELEASE
5834 tolua_error(tolua_S,"#ferror in function 'imlib_image_get_attached_data'.",&tolua_err);
5838 #endif //#ifndef TOLUA_DISABLE
5840 /* function: imlib_image_get_attached_value */
5841 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_get_attached_value00
5842 static int tolua_imlib2_imlib_image_get_attached_value00(lua_State* tolua_S)
5844 #ifndef TOLUA_RELEASE
5845 tolua_Error tolua_err;
5847 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
5848 !tolua_isnoobj(tolua_S,2,&tolua_err)
5854 const char* key = ((const char*) tolua_tostring(tolua_S,1,0));
5856 int tolua_ret = (int) imlib_image_get_attached_value(key);
5857 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
5861 #ifndef TOLUA_RELEASE
5863 tolua_error(tolua_S,"#ferror in function 'imlib_image_get_attached_value'.",&tolua_err);
5867 #endif //#ifndef TOLUA_DISABLE
5869 /* function: imlib_image_remove_attached_data_value */
5870 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_remove_attached_data_value00
5871 static int tolua_imlib2_imlib_image_remove_attached_data_value00(lua_State* tolua_S)
5873 #ifndef TOLUA_RELEASE
5874 tolua_Error tolua_err;
5876 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
5877 !tolua_isnoobj(tolua_S,2,&tolua_err)
5883 const char* key = ((const char*) tolua_tostring(tolua_S,1,0));
5885 imlib_image_remove_attached_data_value(key);
5889 #ifndef TOLUA_RELEASE
5891 tolua_error(tolua_S,"#ferror in function 'imlib_image_remove_attached_data_value'.",&tolua_err);
5895 #endif //#ifndef TOLUA_DISABLE
5897 /* function: imlib_image_remove_and_free_attached_data_value */
5898 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_remove_and_free_attached_data_value00
5899 static int tolua_imlib2_imlib_image_remove_and_free_attached_data_value00(lua_State* tolua_S)
5901 #ifndef TOLUA_RELEASE
5902 tolua_Error tolua_err;
5904 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
5905 !tolua_isnoobj(tolua_S,2,&tolua_err)
5911 const char* key = ((const char*) tolua_tostring(tolua_S,1,0));
5913 imlib_image_remove_and_free_attached_data_value(key);
5917 #ifndef TOLUA_RELEASE
5919 tolua_error(tolua_S,"#ferror in function 'imlib_image_remove_and_free_attached_data_value'.",&tolua_err);
5923 #endif //#ifndef TOLUA_DISABLE
5925 /* function: imlib_save_image */
5926 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_save_image00
5927 static int tolua_imlib2_imlib_save_image00(lua_State* tolua_S)
5929 #ifndef TOLUA_RELEASE
5930 tolua_Error tolua_err;
5932 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
5933 !tolua_isnoobj(tolua_S,2,&tolua_err)
5939 const char* filename = ((const char*) tolua_tostring(tolua_S,1,0));
5941 imlib_save_image(filename);
5945 #ifndef TOLUA_RELEASE
5947 tolua_error(tolua_S,"#ferror in function 'imlib_save_image'.",&tolua_err);
5951 #endif //#ifndef TOLUA_DISABLE
5953 /* function: imlib_save_image_with_error_return */
5954 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_save_image_with_error_return00
5955 static int tolua_imlib2_imlib_save_image_with_error_return00(lua_State* tolua_S)
5957 #ifndef TOLUA_RELEASE
5958 tolua_Error tolua_err;
5960 !tolua_isstring(tolua_S,1,0,&tolua_err) ||
5961 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5962 !tolua_isnoobj(tolua_S,3,&tolua_err)
5968 const char* filename = ((const char*) tolua_tostring(tolua_S,1,0));
5969 Imlib_Load_Error error_return = ((Imlib_Load_Error) (int) tolua_tonumber(tolua_S,2,0));
5971 imlib_save_image_with_error_return(filename,&error_return);
5972 tolua_pushnumber(tolua_S,(lua_Number)error_return);
5976 #ifndef TOLUA_RELEASE
5978 tolua_error(tolua_S,"#ferror in function 'imlib_save_image_with_error_return'.",&tolua_err);
5982 #endif //#ifndef TOLUA_DISABLE
5984 /* function: imlib_create_rotated_image */
5985 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_rotated_image00
5986 static int tolua_imlib2_imlib_create_rotated_image00(lua_State* tolua_S)
5988 #ifndef TOLUA_RELEASE
5989 tolua_Error tolua_err;
5991 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
5992 !tolua_isnoobj(tolua_S,2,&tolua_err)
5998 double angle = ((double) tolua_tonumber(tolua_S,1,0));
6000 _userdata tolua_ret = ( _userdata) imlib_create_rotated_image(angle);
6001 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
6005 #ifndef TOLUA_RELEASE
6007 tolua_error(tolua_S,"#ferror in function 'imlib_create_rotated_image'.",&tolua_err);
6011 #endif //#ifndef TOLUA_DISABLE
6013 /* function: imlib_rotate_image_from_buffer */
6014 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_rotate_image_from_buffer00
6015 static int tolua_imlib2_imlib_rotate_image_from_buffer00(lua_State* tolua_S)
6017 #ifndef TOLUA_RELEASE
6018 tolua_Error tolua_err;
6020 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6021 !tolua_isuserdata(tolua_S,2,0,&tolua_err) ||
6022 !tolua_isnoobj(tolua_S,3,&tolua_err)
6028 double angle = ((double) tolua_tonumber(tolua_S,1,0));
6029 _userdata source_image = (( _userdata) tolua_touserdata(tolua_S,2,0));
6031 imlib_rotate_image_from_buffer(angle,source_image);
6035 #ifndef TOLUA_RELEASE
6037 tolua_error(tolua_S,"#ferror in function 'imlib_rotate_image_from_buffer'.",&tolua_err);
6041 #endif //#ifndef TOLUA_DISABLE
6043 /* function: imlib_blend_image_onto_image_at_angle */
6044 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_blend_image_onto_image_at_angle00
6045 static int tolua_imlib2_imlib_blend_image_onto_image_at_angle00(lua_State* tolua_S)
6047 #ifndef TOLUA_RELEASE
6048 tolua_Error tolua_err;
6050 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
6051 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6052 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6053 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6054 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
6055 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
6056 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
6057 !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
6058 !tolua_isnumber(tolua_S,9,0,&tolua_err) ||
6059 !tolua_isnumber(tolua_S,10,0,&tolua_err) ||
6060 !tolua_isnoobj(tolua_S,11,&tolua_err)
6066 _userdata source_image = (( _userdata) tolua_touserdata(tolua_S,1,0));
6067 char merge_alpha = ((char) tolua_tonumber(tolua_S,2,0));
6068 int source_x = ((int) tolua_tonumber(tolua_S,3,0));
6069 int source_y = ((int) tolua_tonumber(tolua_S,4,0));
6070 int source_width = ((int) tolua_tonumber(tolua_S,5,0));
6071 int source_height = ((int) tolua_tonumber(tolua_S,6,0));
6072 int destination_x = ((int) tolua_tonumber(tolua_S,7,0));
6073 int destination_y = ((int) tolua_tonumber(tolua_S,8,0));
6074 int angle_x = ((int) tolua_tonumber(tolua_S,9,0));
6075 int angle_y = ((int) tolua_tonumber(tolua_S,10,0));
6077 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);
6081 #ifndef TOLUA_RELEASE
6083 tolua_error(tolua_S,"#ferror in function 'imlib_blend_image_onto_image_at_angle'.",&tolua_err);
6087 #endif //#ifndef TOLUA_DISABLE
6089 /* function: imlib_blend_image_onto_image_skewed */
6090 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_blend_image_onto_image_skewed00
6091 static int tolua_imlib2_imlib_blend_image_onto_image_skewed00(lua_State* tolua_S)
6093 #ifndef TOLUA_RELEASE
6094 tolua_Error tolua_err;
6096 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
6097 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6098 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6099 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6100 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
6101 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
6102 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
6103 !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
6104 !tolua_isnumber(tolua_S,9,0,&tolua_err) ||
6105 !tolua_isnumber(tolua_S,10,0,&tolua_err) ||
6106 !tolua_isnumber(tolua_S,11,0,&tolua_err) ||
6107 !tolua_isnumber(tolua_S,12,0,&tolua_err) ||
6108 !tolua_isnoobj(tolua_S,13,&tolua_err)
6114 _userdata source_image = (( _userdata) tolua_touserdata(tolua_S,1,0));
6115 char merge_alpha = ((char) tolua_tonumber(tolua_S,2,0));
6116 int source_x = ((int) tolua_tonumber(tolua_S,3,0));
6117 int source_y = ((int) tolua_tonumber(tolua_S,4,0));
6118 int source_width = ((int) tolua_tonumber(tolua_S,5,0));
6119 int source_height = ((int) tolua_tonumber(tolua_S,6,0));
6120 int destination_x = ((int) tolua_tonumber(tolua_S,7,0));
6121 int destination_y = ((int) tolua_tonumber(tolua_S,8,0));
6122 int h_angle_x = ((int) tolua_tonumber(tolua_S,9,0));
6123 int h_angle_y = ((int) tolua_tonumber(tolua_S,10,0));
6124 int v_angle_x = ((int) tolua_tonumber(tolua_S,11,0));
6125 int v_angle_y = ((int) tolua_tonumber(tolua_S,12,0));
6127 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);
6131 #ifndef TOLUA_RELEASE
6133 tolua_error(tolua_S,"#ferror in function 'imlib_blend_image_onto_image_skewed'.",&tolua_err);
6137 #endif //#ifndef TOLUA_DISABLE
6139 /* function: imlib_render_image_on_drawable_skewed */
6140 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_render_image_on_drawable_skewed00
6141 static int tolua_imlib2_imlib_render_image_on_drawable_skewed00(lua_State* tolua_S)
6143 #ifndef TOLUA_RELEASE
6144 tolua_Error tolua_err;
6146 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6147 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6148 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6149 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6150 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
6151 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
6152 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
6153 !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
6154 !tolua_isnumber(tolua_S,9,0,&tolua_err) ||
6155 !tolua_isnumber(tolua_S,10,0,&tolua_err) ||
6156 !tolua_isnoobj(tolua_S,11,&tolua_err)
6162 int source_x = ((int) tolua_tonumber(tolua_S,1,0));
6163 int source_y = ((int) tolua_tonumber(tolua_S,2,0));
6164 int source_width = ((int) tolua_tonumber(tolua_S,3,0));
6165 int source_height = ((int) tolua_tonumber(tolua_S,4,0));
6166 int destination_x = ((int) tolua_tonumber(tolua_S,5,0));
6167 int destination_y = ((int) tolua_tonumber(tolua_S,6,0));
6168 int h_angle_x = ((int) tolua_tonumber(tolua_S,7,0));
6169 int h_angle_y = ((int) tolua_tonumber(tolua_S,8,0));
6170 int v_angle_x = ((int) tolua_tonumber(tolua_S,9,0));
6171 int v_angle_y = ((int) tolua_tonumber(tolua_S,10,0));
6173 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);
6177 #ifndef TOLUA_RELEASE
6179 tolua_error(tolua_S,"#ferror in function 'imlib_render_image_on_drawable_skewed'.",&tolua_err);
6183 #endif //#ifndef TOLUA_DISABLE
6185 /* function: imlib_render_image_on_drawable_at_angle */
6186 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_render_image_on_drawable_at_angle00
6187 static int tolua_imlib2_imlib_render_image_on_drawable_at_angle00(lua_State* tolua_S)
6189 #ifndef TOLUA_RELEASE
6190 tolua_Error tolua_err;
6192 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6193 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6194 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6195 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6196 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
6197 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
6198 !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
6199 !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
6200 !tolua_isnoobj(tolua_S,9,&tolua_err)
6206 int source_x = ((int) tolua_tonumber(tolua_S,1,0));
6207 int source_y = ((int) tolua_tonumber(tolua_S,2,0));
6208 int source_width = ((int) tolua_tonumber(tolua_S,3,0));
6209 int source_height = ((int) tolua_tonumber(tolua_S,4,0));
6210 int destination_x = ((int) tolua_tonumber(tolua_S,5,0));
6211 int destination_y = ((int) tolua_tonumber(tolua_S,6,0));
6212 int angle_x = ((int) tolua_tonumber(tolua_S,7,0));
6213 int angle_y = ((int) tolua_tonumber(tolua_S,8,0));
6215 imlib_render_image_on_drawable_at_angle(source_x,source_y,source_width,source_height,destination_x,destination_y,angle_x,angle_y);
6219 #ifndef TOLUA_RELEASE
6221 tolua_error(tolua_S,"#ferror in function 'imlib_render_image_on_drawable_at_angle'.",&tolua_err);
6225 #endif //#ifndef TOLUA_DISABLE
6227 /* function: imlib_image_filter */
6228 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_filter00
6229 static int tolua_imlib2_imlib_image_filter00(lua_State* tolua_S)
6231 #ifndef TOLUA_RELEASE
6232 tolua_Error tolua_err;
6234 !tolua_isnoobj(tolua_S,1,&tolua_err)
6241 imlib_image_filter();
6245 #ifndef TOLUA_RELEASE
6247 tolua_error(tolua_S,"#ferror in function 'imlib_image_filter'.",&tolua_err);
6251 #endif //#ifndef TOLUA_DISABLE
6253 /* function: imlib_create_filter */
6254 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_create_filter00
6255 static int tolua_imlib2_imlib_create_filter00(lua_State* tolua_S)
6257 #ifndef TOLUA_RELEASE
6258 tolua_Error tolua_err;
6260 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6261 !tolua_isnoobj(tolua_S,2,&tolua_err)
6267 int initsize = ((int) tolua_tonumber(tolua_S,1,0));
6269 _userdata tolua_ret = ( _userdata) imlib_create_filter(initsize);
6270 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
6274 #ifndef TOLUA_RELEASE
6276 tolua_error(tolua_S,"#ferror in function 'imlib_create_filter'.",&tolua_err);
6280 #endif //#ifndef TOLUA_DISABLE
6282 /* function: imlib_context_set_filter */
6283 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_set_filter00
6284 static int tolua_imlib2_imlib_context_set_filter00(lua_State* tolua_S)
6286 #ifndef TOLUA_RELEASE
6287 tolua_Error tolua_err;
6289 !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
6290 !tolua_isnoobj(tolua_S,2,&tolua_err)
6296 _userdata filter = (( _userdata) tolua_touserdata(tolua_S,1,0));
6298 imlib_context_set_filter(filter);
6302 #ifndef TOLUA_RELEASE
6304 tolua_error(tolua_S,"#ferror in function 'imlib_context_set_filter'.",&tolua_err);
6308 #endif //#ifndef TOLUA_DISABLE
6310 /* function: imlib_context_get_filter */
6311 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_context_get_filter00
6312 static int tolua_imlib2_imlib_context_get_filter00(lua_State* tolua_S)
6314 #ifndef TOLUA_RELEASE
6315 tolua_Error tolua_err;
6317 !tolua_isnoobj(tolua_S,1,&tolua_err)
6324 _userdata tolua_ret = ( _userdata) imlib_context_get_filter();
6325 tolua_pushuserdata(tolua_S,(void*)tolua_ret);
6329 #ifndef TOLUA_RELEASE
6331 tolua_error(tolua_S,"#ferror in function 'imlib_context_get_filter'.",&tolua_err);
6335 #endif //#ifndef TOLUA_DISABLE
6337 /* function: imlib_free_filter */
6338 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_free_filter00
6339 static int tolua_imlib2_imlib_free_filter00(lua_State* tolua_S)
6341 #ifndef TOLUA_RELEASE
6342 tolua_Error tolua_err;
6344 !tolua_isnoobj(tolua_S,1,&tolua_err)
6351 imlib_free_filter();
6355 #ifndef TOLUA_RELEASE
6357 tolua_error(tolua_S,"#ferror in function 'imlib_free_filter'.",&tolua_err);
6361 #endif //#ifndef TOLUA_DISABLE
6363 /* function: imlib_filter_set */
6364 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_filter_set00
6365 static int tolua_imlib2_imlib_filter_set00(lua_State* tolua_S)
6367 #ifndef TOLUA_RELEASE
6368 tolua_Error tolua_err;
6370 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6371 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6372 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6373 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6374 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
6375 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
6376 !tolua_isnoobj(tolua_S,7,&tolua_err)
6382 int xoff = ((int) tolua_tonumber(tolua_S,1,0));
6383 int yoff = ((int) tolua_tonumber(tolua_S,2,0));
6384 int a = ((int) tolua_tonumber(tolua_S,3,0));
6385 int r = ((int) tolua_tonumber(tolua_S,4,0));
6386 int g = ((int) tolua_tonumber(tolua_S,5,0));
6387 int b = ((int) tolua_tonumber(tolua_S,6,0));
6389 imlib_filter_set(xoff,yoff,a,r,g,b);
6393 #ifndef TOLUA_RELEASE
6395 tolua_error(tolua_S,"#ferror in function 'imlib_filter_set'.",&tolua_err);
6399 #endif //#ifndef TOLUA_DISABLE
6401 /* function: imlib_filter_set_alpha */
6402 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_filter_set_alpha00
6403 static int tolua_imlib2_imlib_filter_set_alpha00(lua_State* tolua_S)
6405 #ifndef TOLUA_RELEASE
6406 tolua_Error tolua_err;
6408 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6409 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6410 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6411 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6412 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
6413 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
6414 !tolua_isnoobj(tolua_S,7,&tolua_err)
6420 int xoff = ((int) tolua_tonumber(tolua_S,1,0));
6421 int yoff = ((int) tolua_tonumber(tolua_S,2,0));
6422 int a = ((int) tolua_tonumber(tolua_S,3,0));
6423 int r = ((int) tolua_tonumber(tolua_S,4,0));
6424 int g = ((int) tolua_tonumber(tolua_S,5,0));
6425 int b = ((int) tolua_tonumber(tolua_S,6,0));
6427 imlib_filter_set_alpha(xoff,yoff,a,r,g,b);
6431 #ifndef TOLUA_RELEASE
6433 tolua_error(tolua_S,"#ferror in function 'imlib_filter_set_alpha'.",&tolua_err);
6437 #endif //#ifndef TOLUA_DISABLE
6439 /* function: imlib_filter_set_red */
6440 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_filter_set_red00
6441 static int tolua_imlib2_imlib_filter_set_red00(lua_State* tolua_S)
6443 #ifndef TOLUA_RELEASE
6444 tolua_Error tolua_err;
6446 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6447 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6448 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6449 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6450 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
6451 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
6452 !tolua_isnoobj(tolua_S,7,&tolua_err)
6458 int xoff = ((int) tolua_tonumber(tolua_S,1,0));
6459 int yoff = ((int) tolua_tonumber(tolua_S,2,0));
6460 int a = ((int) tolua_tonumber(tolua_S,3,0));
6461 int r = ((int) tolua_tonumber(tolua_S,4,0));
6462 int g = ((int) tolua_tonumber(tolua_S,5,0));
6463 int b = ((int) tolua_tonumber(tolua_S,6,0));
6465 imlib_filter_set_red(xoff,yoff,a,r,g,b);
6469 #ifndef TOLUA_RELEASE
6471 tolua_error(tolua_S,"#ferror in function 'imlib_filter_set_red'.",&tolua_err);
6475 #endif //#ifndef TOLUA_DISABLE
6477 /* function: imlib_filter_set_green */
6478 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_filter_set_green00
6479 static int tolua_imlib2_imlib_filter_set_green00(lua_State* tolua_S)
6481 #ifndef TOLUA_RELEASE
6482 tolua_Error tolua_err;
6484 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6485 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6486 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6487 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6488 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
6489 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
6490 !tolua_isnoobj(tolua_S,7,&tolua_err)
6496 int xoff = ((int) tolua_tonumber(tolua_S,1,0));
6497 int yoff = ((int) tolua_tonumber(tolua_S,2,0));
6498 int a = ((int) tolua_tonumber(tolua_S,3,0));
6499 int r = ((int) tolua_tonumber(tolua_S,4,0));
6500 int g = ((int) tolua_tonumber(tolua_S,5,0));
6501 int b = ((int) tolua_tonumber(tolua_S,6,0));
6503 imlib_filter_set_green(xoff,yoff,a,r,g,b);
6507 #ifndef TOLUA_RELEASE
6509 tolua_error(tolua_S,"#ferror in function 'imlib_filter_set_green'.",&tolua_err);
6513 #endif //#ifndef TOLUA_DISABLE
6515 /* function: imlib_filter_set_blue */
6516 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_filter_set_blue00
6517 static int tolua_imlib2_imlib_filter_set_blue00(lua_State* tolua_S)
6519 #ifndef TOLUA_RELEASE
6520 tolua_Error tolua_err;
6522 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6523 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6524 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6525 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6526 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
6527 !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
6528 !tolua_isnoobj(tolua_S,7,&tolua_err)
6534 int xoff = ((int) tolua_tonumber(tolua_S,1,0));
6535 int yoff = ((int) tolua_tonumber(tolua_S,2,0));
6536 int a = ((int) tolua_tonumber(tolua_S,3,0));
6537 int r = ((int) tolua_tonumber(tolua_S,4,0));
6538 int g = ((int) tolua_tonumber(tolua_S,5,0));
6539 int b = ((int) tolua_tonumber(tolua_S,6,0));
6541 imlib_filter_set_blue(xoff,yoff,a,r,g,b);
6545 #ifndef TOLUA_RELEASE
6547 tolua_error(tolua_S,"#ferror in function 'imlib_filter_set_blue'.",&tolua_err);
6551 #endif //#ifndef TOLUA_DISABLE
6553 /* function: imlib_filter_constants */
6554 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_filter_constants00
6555 static int tolua_imlib2_imlib_filter_constants00(lua_State* tolua_S)
6557 #ifndef TOLUA_RELEASE
6558 tolua_Error tolua_err;
6560 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6561 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6562 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6563 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6564 !tolua_isnoobj(tolua_S,5,&tolua_err)
6570 int a = ((int) tolua_tonumber(tolua_S,1,0));
6571 int r = ((int) tolua_tonumber(tolua_S,2,0));
6572 int g = ((int) tolua_tonumber(tolua_S,3,0));
6573 int b = ((int) tolua_tonumber(tolua_S,4,0));
6575 imlib_filter_constants(a,r,g,b);
6579 #ifndef TOLUA_RELEASE
6581 tolua_error(tolua_S,"#ferror in function 'imlib_filter_constants'.",&tolua_err);
6585 #endif //#ifndef TOLUA_DISABLE
6587 /* function: imlib_filter_divisors */
6588 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_filter_divisors00
6589 static int tolua_imlib2_imlib_filter_divisors00(lua_State* tolua_S)
6591 #ifndef TOLUA_RELEASE
6592 tolua_Error tolua_err;
6594 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6595 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6596 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6597 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6598 !tolua_isnoobj(tolua_S,5,&tolua_err)
6604 int a = ((int) tolua_tonumber(tolua_S,1,0));
6605 int r = ((int) tolua_tonumber(tolua_S,2,0));
6606 int g = ((int) tolua_tonumber(tolua_S,3,0));
6607 int b = ((int) tolua_tonumber(tolua_S,4,0));
6609 imlib_filter_divisors(a,r,g,b);
6613 #ifndef TOLUA_RELEASE
6615 tolua_error(tolua_S,"#ferror in function 'imlib_filter_divisors'.",&tolua_err);
6619 #endif //#ifndef TOLUA_DISABLE
6621 /* function: imlib_image_clear */
6622 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_clear00
6623 static int tolua_imlib2_imlib_image_clear00(lua_State* tolua_S)
6625 #ifndef TOLUA_RELEASE
6626 tolua_Error tolua_err;
6628 !tolua_isnoobj(tolua_S,1,&tolua_err)
6635 imlib_image_clear();
6639 #ifndef TOLUA_RELEASE
6641 tolua_error(tolua_S,"#ferror in function 'imlib_image_clear'.",&tolua_err);
6645 #endif //#ifndef TOLUA_DISABLE
6647 /* function: imlib_image_clear_color */
6648 #ifndef TOLUA_DISABLE_tolua_imlib2_imlib_image_clear_color00
6649 static int tolua_imlib2_imlib_image_clear_color00(lua_State* tolua_S)
6651 #ifndef TOLUA_RELEASE
6652 tolua_Error tolua_err;
6654 !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
6655 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6656 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6657 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
6658 !tolua_isnoobj(tolua_S,5,&tolua_err)
6664 int r = ((int) tolua_tonumber(tolua_S,1,0));
6665 int g = ((int) tolua_tonumber(tolua_S,2,0));
6666 int b = ((int) tolua_tonumber(tolua_S,3,0));
6667 int a = ((int) tolua_tonumber(tolua_S,4,0));
6669 imlib_image_clear_color(r,g,b,a);
6673 #ifndef TOLUA_RELEASE
6675 tolua_error(tolua_S,"#ferror in function 'imlib_image_clear_color'.",&tolua_err);
6679 #endif //#ifndef TOLUA_DISABLE
6682 TOLUA_API int tolua_imlib2_open (lua_State* tolua_S)
6684 tolua_open(tolua_S);
6685 tolua_reg_types(tolua_S);
6686 tolua_module(tolua_S,NULL,0);
6687 tolua_beginmodule(tolua_S,NULL);
6688 tolua_constant(tolua_S,"IMLIB_OP_COPY",IMLIB_OP_COPY);
6689 tolua_constant(tolua_S,"IMLIB_OP_ADD",IMLIB_OP_ADD);
6690 tolua_constant(tolua_S,"IMLIB_OP_SUBTRACT",IMLIB_OP_SUBTRACT);
6691 tolua_constant(tolua_S,"IMLIB_OP_RESHADE",IMLIB_OP_RESHADE);
6692 tolua_constant(tolua_S,"IMLIB_TEXT_TO_RIGHT",IMLIB_TEXT_TO_RIGHT);
6693 tolua_constant(tolua_S,"IMLIB_TEXT_TO_LEFT",IMLIB_TEXT_TO_LEFT);
6694 tolua_constant(tolua_S,"IMLIB_TEXT_TO_DOWN",IMLIB_TEXT_TO_DOWN);
6695 tolua_constant(tolua_S,"IMLIB_TEXT_TO_UP",IMLIB_TEXT_TO_UP);
6696 tolua_constant(tolua_S,"IMLIB_TEXT_TO_ANGLE",IMLIB_TEXT_TO_ANGLE);
6697 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_NONE",IMLIB_LOAD_ERROR_NONE);
6698 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_FILE_DOES_NOT_EXIST",IMLIB_LOAD_ERROR_FILE_DOES_NOT_EXIST);
6699 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_FILE_IS_DIRECTORY",IMLIB_LOAD_ERROR_FILE_IS_DIRECTORY);
6700 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_PERMISSION_DENIED_TO_READ",IMLIB_LOAD_ERROR_PERMISSION_DENIED_TO_READ);
6701 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_NO_LOADER_FOR_FILE_FORMAT",IMLIB_LOAD_ERROR_NO_LOADER_FOR_FILE_FORMAT);
6702 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_PATH_TOO_LONG",IMLIB_LOAD_ERROR_PATH_TOO_LONG);
6703 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_PATH_COMPONENT_NON_EXISTANT",IMLIB_LOAD_ERROR_PATH_COMPONENT_NON_EXISTANT);
6704 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_PATH_COMPONENT_NOT_DIRECTORY",IMLIB_LOAD_ERROR_PATH_COMPONENT_NOT_DIRECTORY);
6705 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_PATH_POINTS_OUTSIDE_ADDRESS_SPACE",IMLIB_LOAD_ERROR_PATH_POINTS_OUTSIDE_ADDRESS_SPACE);
6706 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_TOO_MANY_SYMBOLIC_LINKS",IMLIB_LOAD_ERROR_TOO_MANY_SYMBOLIC_LINKS);
6707 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_OUT_OF_MEMORY",IMLIB_LOAD_ERROR_OUT_OF_MEMORY);
6708 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_OUT_OF_FILE_DESCRIPTORS",IMLIB_LOAD_ERROR_OUT_OF_FILE_DESCRIPTORS);
6709 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_PERMISSION_DENIED_TO_WRITE",IMLIB_LOAD_ERROR_PERMISSION_DENIED_TO_WRITE);
6710 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_OUT_OF_DISK_SPACE",IMLIB_LOAD_ERROR_OUT_OF_DISK_SPACE);
6711 tolua_constant(tolua_S,"IMLIB_LOAD_ERROR_UNKNOWN",IMLIB_LOAD_ERROR_UNKNOWN);
6712 tolua_constant(tolua_S,"IMLIB_TTF_ENCODING_ISO_8859_1",IMLIB_TTF_ENCODING_ISO_8859_1);
6713 tolua_constant(tolua_S,"IMLIB_TTF_ENCODING_ISO_8859_2",IMLIB_TTF_ENCODING_ISO_8859_2);
6714 tolua_constant(tolua_S,"IMLIB_TTF_ENCODING_ISO_8859_3",IMLIB_TTF_ENCODING_ISO_8859_3);
6715 tolua_constant(tolua_S,"IMLIB_TTF_ENCODING_ISO_8859_4",IMLIB_TTF_ENCODING_ISO_8859_4);
6716 tolua_constant(tolua_S,"IMLIB_TTF_ENCODING_ISO_8859_5",IMLIB_TTF_ENCODING_ISO_8859_5);
6717 tolua_function(tolua_S,"imlib_context_new",tolua_imlib2_imlib_context_new00);
6718 tolua_function(tolua_S,"imlib_context_free",tolua_imlib2_imlib_context_free00);
6719 tolua_function(tolua_S,"imlib_context_push",tolua_imlib2_imlib_context_push00);
6720 tolua_function(tolua_S,"imlib_context_pop",tolua_imlib2_imlib_context_pop00);
6721 tolua_function(tolua_S,"imlib_context_get",tolua_imlib2_imlib_context_get00);
6722 tolua_function(tolua_S,"imlib_context_set_display",tolua_imlib2_imlib_context_set_display00);
6723 //tolua_function(tolua_S,"imlib_context_disconnect_display",tolua_imlib2_imlib_context_disconnect_display00);
6724 tolua_function(tolua_S,"imlib_context_set_visual",tolua_imlib2_imlib_context_set_visual00);
6725 tolua_function(tolua_S,"imlib_context_set_colormap",tolua_imlib2_imlib_context_set_colormap00);
6726 tolua_function(tolua_S,"imlib_context_set_drawable",tolua_imlib2_imlib_context_set_drawable00);
6727 tolua_function(tolua_S,"imlib_context_set_mask",tolua_imlib2_imlib_context_set_mask00);
6728 tolua_function(tolua_S,"imlib_context_set_dither_mask",tolua_imlib2_imlib_context_set_dither_mask00);
6729 tolua_function(tolua_S,"imlib_context_set_mask_alpha_threshold",tolua_imlib2_imlib_context_set_mask_alpha_threshold00);
6730 tolua_function(tolua_S,"imlib_context_set_anti_alias",tolua_imlib2_imlib_context_set_anti_alias00);
6731 tolua_function(tolua_S,"imlib_context_set_dither",tolua_imlib2_imlib_context_set_dither00);
6732 tolua_function(tolua_S,"imlib_context_set_blend",tolua_imlib2_imlib_context_set_blend00);
6733 tolua_function(tolua_S,"imlib_context_set_color_modifier",tolua_imlib2_imlib_context_set_color_modifier00);
6734 tolua_function(tolua_S,"imlib_context_set_operation",tolua_imlib2_imlib_context_set_operation00);
6735 tolua_function(tolua_S,"imlib_context_set_font",tolua_imlib2_imlib_context_set_font00);
6736 tolua_function(tolua_S,"imlib_context_set_direction",tolua_imlib2_imlib_context_set_direction00);
6737 tolua_function(tolua_S,"imlib_context_set_angle",tolua_imlib2_imlib_context_set_angle00);
6738 tolua_function(tolua_S,"imlib_context_set_color",tolua_imlib2_imlib_context_set_color00);
6739 tolua_function(tolua_S,"imlib_context_set_color_hsva",tolua_imlib2_imlib_context_set_color_hsva00);
6740 tolua_function(tolua_S,"imlib_context_set_color_hlsa",tolua_imlib2_imlib_context_set_color_hlsa00);
6741 tolua_function(tolua_S,"imlib_context_set_color_cmya",tolua_imlib2_imlib_context_set_color_cmya00);
6742 tolua_function(tolua_S,"imlib_context_set_color_range",tolua_imlib2_imlib_context_set_color_range00);
6743 tolua_function(tolua_S,"imlib_context_set_progress_function",tolua_imlib2_imlib_context_set_progress_function00);
6744 tolua_function(tolua_S,"imlib_context_set_progress_granularity",tolua_imlib2_imlib_context_set_progress_granularity00);
6745 tolua_function(tolua_S,"imlib_context_set_image",tolua_imlib2_imlib_context_set_image00);
6746 tolua_function(tolua_S,"imlib_context_set_cliprect",tolua_imlib2_imlib_context_set_cliprect00);
6747 tolua_function(tolua_S,"imlib_context_set_TTF_encoding",tolua_imlib2_imlib_context_set_TTF_encoding00);
6748 tolua_function(tolua_S,"imlib_context_get_display",tolua_imlib2_imlib_context_get_display00);
6749 tolua_function(tolua_S,"imlib_context_get_visual",tolua_imlib2_imlib_context_get_visual00);
6750 tolua_function(tolua_S,"imlib_context_get_colormap",tolua_imlib2_imlib_context_get_colormap00);
6751 tolua_function(tolua_S,"imlib_context_get_drawable",tolua_imlib2_imlib_context_get_drawable00);
6752 tolua_function(tolua_S,"imlib_context_get_mask",tolua_imlib2_imlib_context_get_mask00);
6753 tolua_function(tolua_S,"imlib_context_get_dither_mask",tolua_imlib2_imlib_context_get_dither_mask00);
6754 tolua_function(tolua_S,"imlib_context_get_anti_alias",tolua_imlib2_imlib_context_get_anti_alias00);
6755 tolua_function(tolua_S,"imlib_context_get_mask_alpha_threshold",tolua_imlib2_imlib_context_get_mask_alpha_threshold00);
6756 tolua_function(tolua_S,"imlib_context_get_dither",tolua_imlib2_imlib_context_get_dither00);
6757 tolua_function(tolua_S,"imlib_context_get_blend",tolua_imlib2_imlib_context_get_blend00);
6758 tolua_function(tolua_S,"imlib_context_get_color_modifier",tolua_imlib2_imlib_context_get_color_modifier00);
6759 tolua_function(tolua_S,"imlib_context_get_operation",tolua_imlib2_imlib_context_get_operation00);
6760 tolua_function(tolua_S,"imlib_context_get_font",tolua_imlib2_imlib_context_get_font00);
6761 tolua_function(tolua_S,"imlib_context_get_angle",tolua_imlib2_imlib_context_get_angle00);
6762 tolua_function(tolua_S,"imlib_context_get_direction",tolua_imlib2_imlib_context_get_direction00);
6763 tolua_function(tolua_S,"imlib_context_get_color",tolua_imlib2_imlib_context_get_color00);
6764 tolua_function(tolua_S,"imlib_context_get_color_hsva",tolua_imlib2_imlib_context_get_color_hsva00);
6765 tolua_function(tolua_S,"imlib_context_get_color_hlsa",tolua_imlib2_imlib_context_get_color_hlsa00);
6766 tolua_function(tolua_S,"imlib_context_get_color_cmya",tolua_imlib2_imlib_context_get_color_cmya00);
6767 tolua_function(tolua_S,"imlib_context_get_imlib_color",tolua_imlib2_imlib_context_get_imlib_color00);
6768 tolua_function(tolua_S,"imlib_context_get_color_range",tolua_imlib2_imlib_context_get_color_range00);
6769 tolua_function(tolua_S,"imlib_context_get_progress_function",tolua_imlib2_imlib_context_get_progress_function00);
6770 tolua_function(tolua_S,"imlib_context_get_progress_granularity",tolua_imlib2_imlib_context_get_progress_granularity00);
6771 tolua_function(tolua_S,"imlib_context_get_image",tolua_imlib2_imlib_context_get_image00);
6772 tolua_function(tolua_S,"imlib_context_get_cliprect",tolua_imlib2_imlib_context_get_cliprect00);
6773 tolua_function(tolua_S,"imlib_context_get_TTF_encoding",tolua_imlib2_imlib_context_get_TTF_encoding00);
6774 tolua_function(tolua_S,"imlib_get_cache_size",tolua_imlib2_imlib_get_cache_size00);
6775 tolua_function(tolua_S,"imlib_set_cache_size",tolua_imlib2_imlib_set_cache_size00);
6776 tolua_function(tolua_S,"imlib_get_color_usage",tolua_imlib2_imlib_get_color_usage00);
6777 tolua_function(tolua_S,"imlib_set_color_usage",tolua_imlib2_imlib_set_color_usage00);
6778 tolua_function(tolua_S,"imlib_flush_loaders",tolua_imlib2_imlib_flush_loaders00);
6779 tolua_function(tolua_S,"imlib_get_visual_depth",tolua_imlib2_imlib_get_visual_depth00);
6780 tolua_function(tolua_S,"imlib_get_best_visual",tolua_imlib2_imlib_get_best_visual00);
6781 tolua_function(tolua_S,"imlib_load_image",tolua_imlib2_imlib_load_image00);
6782 tolua_function(tolua_S,"imlib_load_image_immediately",tolua_imlib2_imlib_load_image_immediately00);
6783 tolua_function(tolua_S,"imlib_load_image_without_cache",tolua_imlib2_imlib_load_image_without_cache00);
6784 tolua_function(tolua_S,"imlib_load_image_immediately_without_cache",tolua_imlib2_imlib_load_image_immediately_without_cache00);
6785 tolua_function(tolua_S,"imlib_load_image_with_error_return",tolua_imlib2_imlib_load_image_with_error_return00);
6786 tolua_function(tolua_S,"imlib_free_image",tolua_imlib2_imlib_free_image00);
6787 tolua_function(tolua_S,"imlib_free_image_and_decache",tolua_imlib2_imlib_free_image_and_decache00);
6788 tolua_function(tolua_S,"imlib_image_get_width",tolua_imlib2_imlib_image_get_width00);
6789 tolua_function(tolua_S,"imlib_image_get_height",tolua_imlib2_imlib_image_get_height00);
6790 tolua_function(tolua_S,"imlib_image_get_filename",tolua_imlib2_imlib_image_get_filename00);
6791 tolua_function(tolua_S,"imlib_image_get_data",tolua_imlib2_imlib_image_get_data00);
6792 tolua_function(tolua_S,"imlib_image_get_data_for_reading_only",tolua_imlib2_imlib_image_get_data_for_reading_only00);
6793 tolua_function(tolua_S,"imlib_image_put_back_data",tolua_imlib2_imlib_image_put_back_data00);
6794 tolua_function(tolua_S,"imlib_image_has_alpha",tolua_imlib2_imlib_image_has_alpha00);
6795 tolua_function(tolua_S,"imlib_image_set_changes_on_disk",tolua_imlib2_imlib_image_set_changes_on_disk00);
6796 tolua_function(tolua_S,"imlib_image_get_border",tolua_imlib2_imlib_image_get_border00);
6797 tolua_function(tolua_S,"imlib_image_set_border",tolua_imlib2_imlib_image_set_border00);
6798 tolua_function(tolua_S,"imlib_image_set_format",tolua_imlib2_imlib_image_set_format00);
6799 tolua_function(tolua_S,"imlib_image_set_irrelevant_format",tolua_imlib2_imlib_image_set_irrelevant_format00);
6800 tolua_function(tolua_S,"imlib_image_set_irrelevant_border",tolua_imlib2_imlib_image_set_irrelevant_border00);
6801 tolua_function(tolua_S,"imlib_image_set_irrelevant_alpha",tolua_imlib2_imlib_image_set_irrelevant_alpha00);
6802 tolua_function(tolua_S,"imlib_image_format",tolua_imlib2_imlib_image_format00);
6803 tolua_function(tolua_S,"imlib_image_set_has_alpha",tolua_imlib2_imlib_image_set_has_alpha00);
6804 tolua_function(tolua_S,"imlib_image_query_pixel",tolua_imlib2_imlib_image_query_pixel00);
6805 tolua_function(tolua_S,"imlib_image_query_pixel_hsva",tolua_imlib2_imlib_image_query_pixel_hsva00);
6806 tolua_function(tolua_S,"imlib_image_query_pixel_hlsa",tolua_imlib2_imlib_image_query_pixel_hlsa00);
6807 tolua_function(tolua_S,"imlib_image_query_pixel_cmya",tolua_imlib2_imlib_image_query_pixel_cmya00);
6808 tolua_function(tolua_S,"imlib_render_pixmaps_for_whole_image",tolua_imlib2_imlib_render_pixmaps_for_whole_image00);
6809 tolua_function(tolua_S,"imlib_render_pixmaps_for_whole_image_at_size",tolua_imlib2_imlib_render_pixmaps_for_whole_image_at_size00);
6810 tolua_function(tolua_S,"imlib_free_pixmap_and_mask",tolua_imlib2_imlib_free_pixmap_and_mask00);
6811 tolua_function(tolua_S,"imlib_render_image_on_drawable",tolua_imlib2_imlib_render_image_on_drawable00);
6812 tolua_function(tolua_S,"imlib_render_image_on_drawable_at_size",tolua_imlib2_imlib_render_image_on_drawable_at_size00);
6813 tolua_function(tolua_S,"imlib_render_image_part_on_drawable_at_size",tolua_imlib2_imlib_render_image_part_on_drawable_at_size00);
6814 tolua_function(tolua_S,"imlib_render_get_pixel_color",tolua_imlib2_imlib_render_get_pixel_color00);
6815 tolua_function(tolua_S,"imlib_blend_image_onto_image",tolua_imlib2_imlib_blend_image_onto_image00);
6816 tolua_function(tolua_S,"imlib_create_image",tolua_imlib2_imlib_create_image00);
6817 tolua_function(tolua_S,"imlib_create_image_using_data",tolua_imlib2_imlib_create_image_using_data00);
6818 tolua_function(tolua_S,"imlib_create_image_using_copied_data",tolua_imlib2_imlib_create_image_using_copied_data00);
6819 tolua_function(tolua_S,"imlib_create_image_from_drawable",tolua_imlib2_imlib_create_image_from_drawable00);
6820 tolua_function(tolua_S,"imlib_create_image_from_ximage",tolua_imlib2_imlib_create_image_from_ximage00);
6821 tolua_function(tolua_S,"imlib_create_scaled_image_from_drawable",tolua_imlib2_imlib_create_scaled_image_from_drawable00);
6822 tolua_function(tolua_S,"imlib_copy_drawable_to_image",tolua_imlib2_imlib_copy_drawable_to_image00);
6823 tolua_function(tolua_S,"imlib_clone_image",tolua_imlib2_imlib_clone_image00);
6824 tolua_function(tolua_S,"imlib_create_cropped_image",tolua_imlib2_imlib_create_cropped_image00);
6825 tolua_function(tolua_S,"imlib_create_cropped_scaled_image",tolua_imlib2_imlib_create_cropped_scaled_image00);
6826 tolua_function(tolua_S,"imlib_updates_clone",tolua_imlib2_imlib_updates_clone00);
6827 tolua_function(tolua_S,"imlib_update_append_rect",tolua_imlib2_imlib_update_append_rect00);
6828 tolua_function(tolua_S,"imlib_updates_merge",tolua_imlib2_imlib_updates_merge00);
6829 tolua_function(tolua_S,"imlib_updates_merge_for_rendering",tolua_imlib2_imlib_updates_merge_for_rendering00);
6830 tolua_function(tolua_S,"imlib_updates_free",tolua_imlib2_imlib_updates_free00);
6831 tolua_function(tolua_S,"imlib_updates_get_next",tolua_imlib2_imlib_updates_get_next00);
6832 tolua_function(tolua_S,"imlib_updates_get_coordinates",tolua_imlib2_imlib_updates_get_coordinates00);
6833 tolua_function(tolua_S,"imlib_updates_set_coordinates",tolua_imlib2_imlib_updates_set_coordinates00);
6834 tolua_function(tolua_S,"imlib_render_image_updates_on_drawable",tolua_imlib2_imlib_render_image_updates_on_drawable00);
6835 tolua_function(tolua_S,"imlib_updates_init",tolua_imlib2_imlib_updates_init00);
6836 tolua_function(tolua_S,"imlib_updates_append_updates",tolua_imlib2_imlib_updates_append_updates00);
6837 tolua_function(tolua_S,"imlib_image_flip_horizontal",tolua_imlib2_imlib_image_flip_horizontal00);
6838 tolua_function(tolua_S,"imlib_image_flip_vertical",tolua_imlib2_imlib_image_flip_vertical00);
6839 tolua_function(tolua_S,"imlib_image_flip_diagonal",tolua_imlib2_imlib_image_flip_diagonal00);
6840 tolua_function(tolua_S,"imlib_image_orientate",tolua_imlib2_imlib_image_orientate00);
6841 tolua_function(tolua_S,"imlib_image_blur",tolua_imlib2_imlib_image_blur00);
6842 tolua_function(tolua_S,"imlib_image_sharpen",tolua_imlib2_imlib_image_sharpen00);
6843 tolua_function(tolua_S,"imlib_image_tile_horizontal",tolua_imlib2_imlib_image_tile_horizontal00);
6844 tolua_function(tolua_S,"imlib_image_tile_vertical",tolua_imlib2_imlib_image_tile_vertical00);
6845 tolua_function(tolua_S,"imlib_image_tile",tolua_imlib2_imlib_image_tile00);
6846 tolua_function(tolua_S,"imlib_load_font",tolua_imlib2_imlib_load_font00);
6847 tolua_function(tolua_S,"imlib_free_font",tolua_imlib2_imlib_free_font00);
6848 /* tolua_function(tolua_S,"imlib_insert_font_into_fallback_chain",tolua_imlib2_imlib_insert_font_into_fallback_chain00);
6849 tolua_function(tolua_S,"imlib_remove_font_from_fallback_chain",tolua_imlib2_imlib_remove_font_from_fallback_chain00);
6850 tolua_function(tolua_S,"imlib_get_prev_font_in_fallback_chain",tolua_imlib2_imlib_get_prev_font_in_fallback_chain00);
6851 tolua_function(tolua_S,"imlib_get_next_font_in_fallback_chain",tolua_imlib2_imlib_get_next_font_in_fallback_chain00);*/
6852 tolua_function(tolua_S,"imlib_text_draw",tolua_imlib2_imlib_text_draw00);
6853 tolua_function(tolua_S,"imlib_text_draw_with_return_metrics",tolua_imlib2_imlib_text_draw_with_return_metrics00);
6854 tolua_function(tolua_S,"imlib_get_text_size",tolua_imlib2_imlib_get_text_size00);
6855 tolua_function(tolua_S,"imlib_get_text_advance",tolua_imlib2_imlib_get_text_advance00);
6856 tolua_function(tolua_S,"imlib_get_text_inset",tolua_imlib2_imlib_get_text_inset00);
6857 tolua_function(tolua_S,"imlib_add_path_to_font_path",tolua_imlib2_imlib_add_path_to_font_path00);
6858 tolua_function(tolua_S,"imlib_remove_path_from_font_path",tolua_imlib2_imlib_remove_path_from_font_path00);
6859 tolua_function(tolua_S,"imlib_list_font_path",tolua_imlib2_imlib_list_font_path00);
6860 tolua_function(tolua_S,"imlib_text_get_index_and_location",tolua_imlib2_imlib_text_get_index_and_location00);
6861 tolua_function(tolua_S,"imlib_text_get_location_at_index",tolua_imlib2_imlib_text_get_location_at_index00);
6862 tolua_function(tolua_S,"imlib_list_fonts",tolua_imlib2_imlib_list_fonts00);
6863 tolua_function(tolua_S,"imlib_free_font_list",tolua_imlib2_imlib_free_font_list00);
6864 tolua_function(tolua_S,"imlib_get_font_cache_size",tolua_imlib2_imlib_get_font_cache_size00);
6865 tolua_function(tolua_S,"imlib_set_font_cache_size",tolua_imlib2_imlib_set_font_cache_size00);
6866 tolua_function(tolua_S,"imlib_flush_font_cache",tolua_imlib2_imlib_flush_font_cache00);
6867 tolua_function(tolua_S,"imlib_get_font_ascent",tolua_imlib2_imlib_get_font_ascent00);
6868 tolua_function(tolua_S,"imlib_get_font_descent",tolua_imlib2_imlib_get_font_descent00);
6869 tolua_function(tolua_S,"imlib_get_maximum_font_ascent",tolua_imlib2_imlib_get_maximum_font_ascent00);
6870 tolua_function(tolua_S,"imlib_get_maximum_font_descent",tolua_imlib2_imlib_get_maximum_font_descent00);
6871 tolua_function(tolua_S,"imlib_create_color_modifier",tolua_imlib2_imlib_create_color_modifier00);
6872 tolua_function(tolua_S,"imlib_free_color_modifier",tolua_imlib2_imlib_free_color_modifier00);
6873 tolua_function(tolua_S,"imlib_modify_color_modifier_gamma",tolua_imlib2_imlib_modify_color_modifier_gamma00);
6874 tolua_function(tolua_S,"imlib_modify_color_modifier_brightness",tolua_imlib2_imlib_modify_color_modifier_brightness00);
6875 tolua_function(tolua_S,"imlib_modify_color_modifier_contrast",tolua_imlib2_imlib_modify_color_modifier_contrast00);
6876 tolua_function(tolua_S,"imlib_set_color_modifier_tables",tolua_imlib2_imlib_set_color_modifier_tables00);
6877 tolua_function(tolua_S,"imlib_get_color_modifier_tables",tolua_imlib2_imlib_get_color_modifier_tables00);
6878 tolua_function(tolua_S,"imlib_reset_color_modifier",tolua_imlib2_imlib_reset_color_modifier00);
6879 tolua_function(tolua_S,"imlib_apply_color_modifier",tolua_imlib2_imlib_apply_color_modifier00);
6880 tolua_function(tolua_S,"imlib_apply_color_modifier_to_rectangle",tolua_imlib2_imlib_apply_color_modifier_to_rectangle00);
6881 tolua_function(tolua_S,"imlib_image_draw_pixel",tolua_imlib2_imlib_image_draw_pixel00);
6882 tolua_function(tolua_S,"imlib_image_draw_line",tolua_imlib2_imlib_image_draw_line00);
6883 tolua_function(tolua_S,"imlib_image_draw_rectangle",tolua_imlib2_imlib_image_draw_rectangle00);
6884 tolua_function(tolua_S,"imlib_image_fill_rectangle",tolua_imlib2_imlib_image_fill_rectangle00);
6885 tolua_function(tolua_S,"imlib_image_copy_alpha_to_image",tolua_imlib2_imlib_image_copy_alpha_to_image00);
6886 tolua_function(tolua_S,"imlib_image_copy_alpha_rectangle_to_image",tolua_imlib2_imlib_image_copy_alpha_rectangle_to_image00);
6887 tolua_function(tolua_S,"imlib_image_scroll_rect",tolua_imlib2_imlib_image_scroll_rect00);
6888 tolua_function(tolua_S,"imlib_image_copy_rect",tolua_imlib2_imlib_image_copy_rect00);
6889 tolua_function(tolua_S,"imlib_polygon_new",tolua_imlib2_imlib_polygon_new00);
6890 tolua_function(tolua_S,"imlib_polygon_free",tolua_imlib2_imlib_polygon_free00);
6891 tolua_function(tolua_S,"imlib_polygon_add_point",tolua_imlib2_imlib_polygon_add_point00);
6892 tolua_function(tolua_S,"imlib_image_draw_polygon",tolua_imlib2_imlib_image_draw_polygon00);
6893 tolua_function(tolua_S,"imlib_image_fill_polygon",tolua_imlib2_imlib_image_fill_polygon00);
6894 tolua_function(tolua_S,"imlib_polygon_get_bounds",tolua_imlib2_imlib_polygon_get_bounds00);
6895 tolua_function(tolua_S,"imlib_polygon_contains_point",tolua_imlib2_imlib_polygon_contains_point00);
6896 tolua_function(tolua_S,"imlib_image_draw_ellipse",tolua_imlib2_imlib_image_draw_ellipse00);
6897 tolua_function(tolua_S,"imlib_image_fill_ellipse",tolua_imlib2_imlib_image_fill_ellipse00);
6898 tolua_function(tolua_S,"imlib_create_color_range",tolua_imlib2_imlib_create_color_range00);
6899 tolua_function(tolua_S,"imlib_free_color_range",tolua_imlib2_imlib_free_color_range00);
6900 tolua_function(tolua_S,"imlib_add_color_to_color_range",tolua_imlib2_imlib_add_color_to_color_range00);
6901 tolua_function(tolua_S,"imlib_image_fill_color_range_rectangle",tolua_imlib2_imlib_image_fill_color_range_rectangle00);
6902 tolua_function(tolua_S,"imlib_image_fill_hsva_color_range_rectangle",tolua_imlib2_imlib_image_fill_hsva_color_range_rectangle00);
6903 tolua_function(tolua_S,"imlib_image_attach_data_value",tolua_imlib2_imlib_image_attach_data_value00);
6904 tolua_function(tolua_S,"imlib_image_get_attached_data",tolua_imlib2_imlib_image_get_attached_data00);
6905 tolua_function(tolua_S,"imlib_image_get_attached_value",tolua_imlib2_imlib_image_get_attached_value00);
6906 tolua_function(tolua_S,"imlib_image_remove_attached_data_value",tolua_imlib2_imlib_image_remove_attached_data_value00);
6907 tolua_function(tolua_S,"imlib_image_remove_and_free_attached_data_value",tolua_imlib2_imlib_image_remove_and_free_attached_data_value00);
6908 tolua_function(tolua_S,"imlib_save_image",tolua_imlib2_imlib_save_image00);
6909 tolua_function(tolua_S,"imlib_save_image_with_error_return",tolua_imlib2_imlib_save_image_with_error_return00);
6910 tolua_function(tolua_S,"imlib_create_rotated_image",tolua_imlib2_imlib_create_rotated_image00);
6911 tolua_function(tolua_S,"imlib_rotate_image_from_buffer",tolua_imlib2_imlib_rotate_image_from_buffer00);
6912 tolua_function(tolua_S,"imlib_blend_image_onto_image_at_angle",tolua_imlib2_imlib_blend_image_onto_image_at_angle00);
6913 tolua_function(tolua_S,"imlib_blend_image_onto_image_skewed",tolua_imlib2_imlib_blend_image_onto_image_skewed00);
6914 tolua_function(tolua_S,"imlib_render_image_on_drawable_skewed",tolua_imlib2_imlib_render_image_on_drawable_skewed00);
6915 tolua_function(tolua_S,"imlib_render_image_on_drawable_at_angle",tolua_imlib2_imlib_render_image_on_drawable_at_angle00);
6916 tolua_function(tolua_S,"imlib_image_filter",tolua_imlib2_imlib_image_filter00);
6917 tolua_function(tolua_S,"imlib_create_filter",tolua_imlib2_imlib_create_filter00);
6918 tolua_function(tolua_S,"imlib_context_set_filter",tolua_imlib2_imlib_context_set_filter00);
6919 tolua_function(tolua_S,"imlib_context_get_filter",tolua_imlib2_imlib_context_get_filter00);
6920 tolua_function(tolua_S,"imlib_free_filter",tolua_imlib2_imlib_free_filter00);
6921 tolua_function(tolua_S,"imlib_filter_set",tolua_imlib2_imlib_filter_set00);
6922 tolua_function(tolua_S,"imlib_filter_set_alpha",tolua_imlib2_imlib_filter_set_alpha00);
6923 tolua_function(tolua_S,"imlib_filter_set_red",tolua_imlib2_imlib_filter_set_red00);
6924 tolua_function(tolua_S,"imlib_filter_set_green",tolua_imlib2_imlib_filter_set_green00);
6925 tolua_function(tolua_S,"imlib_filter_set_blue",tolua_imlib2_imlib_filter_set_blue00);
6926 tolua_function(tolua_S,"imlib_filter_constants",tolua_imlib2_imlib_filter_constants00);
6927 tolua_function(tolua_S,"imlib_filter_divisors",tolua_imlib2_imlib_filter_divisors00);
6928 tolua_function(tolua_S,"imlib_image_clear",tolua_imlib2_imlib_image_clear00);
6929 tolua_function(tolua_S,"imlib_image_clear_color",tolua_imlib2_imlib_image_clear_color00);
6930 tolua_endmodule(tolua_S);
6935 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
6936 TOLUA_API int luaopen_imlib2 (lua_State* tolua_S) {
6937 return tolua_imlib2_open(tolua_S);