int iupimlua_open(lua_State *L) { iuplua_changeEnv(L); iuplua_register(L, LoadImage, "LoadImage"); iuplua_register(L, SaveImage, "SaveImage"); iuplua_returnEnv(L); return 0; /* nothing in stack */ }
int iupimlua_open(lua_State *L) { iuplua_get_env(L); iuplua_register(L, LoadImage, "LoadImage"); iuplua_register(L, SaveImage, "SaveImage"); iuplua_register(L, GetNativeHandleImage, "GetNativeHandleImage"); iuplua_register(L, GetImageNativeHandle, "GetImageNativeHandle"); iuplua_register(L, ImageFromImImage, "ImageFromImImage"); return 0; /* nothing in stack */ }
void iupgetparamlua_open(lua_State * L) { iuplua_register(L, GetParam, "GetParam"); iuplua_register(L, GetParamParam, "GetParamParam"); iuplua_register(L, GetParamHandle, "GetParamHandle"); iuplua_register(L, Param, "Paramf"); iuplua_register(L, ParamBox, "ParamBox"); iuplua_register_cb(L, "PARAM_CB", (lua_CFunction)param_cb, NULL); }
void iuplua_matrixfuncs_open (lua_State *L) { /* DEPRECATED backward compatibility */ iuplua_register(L, MatGetAttribute, "MatGetAttribute"); iuplua_register(L, MatStoreAttribute, "MatStoreAttribute"); iuplua_register(L, MatStoreAttribute, "MatSetAttribute"); iuplua_register_cb(L, "BGCOLOR_CB", (lua_CFunction)matrix_bgcolor_cb, NULL); iuplua_register_cb(L, "FGCOLOR_CB", (lua_CFunction)matrix_fgcolor_cb, NULL); iuplua_register_cb(L, "DRAW_CB", (lua_CFunction)matrix_draw_cb, NULL); iuplua_register_cb(L, "LISTDRAW_CB", (lua_CFunction)matrix_draw_cb, NULL); }
int iupvallua_open(lua_State * L) { iuplua_register(L, Val, "Val"); iuplua_register_cb(L, "BUTTON_PRESS_CB", (lua_CFunction)val_button_press_cb, NULL); iuplua_register_cb(L, "MOUSEMOVE_CB", (lua_CFunction)val_mousemove_cb, "val"); iuplua_register_cb(L, "BUTTON_RELEASE_CB", (lua_CFunction)val_button_release_cb, NULL); #ifdef IUPLUA_USELOH #ifdef TEC_BIGENDIAN #ifdef TEC_64 #include "loh/val_be64.loh" #else #include "loh/val_be32.loh" #endif #else #ifdef TEC_64 #ifdef WIN64 #include "loh/val_le64w.loh" #else #include "loh/val_le64.loh" #endif #else #include "loh/val.loh" #endif #endif #else iuplua_dofile(L, "val.lua"); #endif return 0; }
int iupolecontrollua_open(lua_State * L) { iuplua_register(L, OleControl, "OleControl"); #ifdef IUPLUA_USELOH #ifdef TEC_BIGENDIAN #ifdef TEC_64 #include "loh/olecontrol_be64.loh" #else #include "loh/olecontrol_be32.loh" #endif #else #ifdef TEC_64 #ifdef WIN64 #include "loh/olecontrol_le64w.loh" #else #include "loh/olecontrol_le64.loh" #endif #else #include "loh/olecontrol.loh" #endif #endif #else iuplua_dofile(L, "olecontrol.lua"); #endif return 0; }
int iup_matrixexlua_open(lua_State * L) { iuplua_register(L, MatrixEx, "MatrixEx"); iuplua_register_cb(L, "NUMERICSETVALUE_CB", (lua_CFunction)matrixex_numericsetvalue_cb, NULL); iuplua_register_cb(L, "MENUCONTEXTCLOSE_CB", (lua_CFunction)matrixex_menucontextclose_cb, NULL); iuplua_register_cb(L, "PASTESIZE_CB", (lua_CFunction)matrixex_pastesize_cb, NULL); iuplua_register_cb(L, "BUSY_CB", (lua_CFunction)matrixex_busy_cb, NULL); iuplua_register_cb(L, "MENUCONTEXT_CB", (lua_CFunction)matrixex_menucontext_cb, NULL); iuplua_register_cb(L, "SORTCOLUMNCOMPARE_CB", (lua_CFunction)matrixex_sortcolumncompare_cb, NULL); iuplua_register_cb(L, "NUMERICGETVALUE_CB", (lua_CFunction)matrixex_numericgetvalue_cb, NULL); iuplua_matrixexfuncs_open(L); #ifdef IUPLUA_USELOH #include "matrixex.loh" #else #ifdef IUPLUA_USELH #include "matrixex.lh" #else iuplua_dofile(L, "matrixex.lua"); #endif #endif return 0; }
int iupsubmenulua_open(lua_State * L) { iuplua_register(L, Submenu, "Submenu"); #ifdef IUPLUA_USELOH #ifdef TEC_BIGENDIAN #ifdef TEC_64 #include "loh/submenu_be64.loh" #else #include "loh/submenu_be32.loh" #endif #else #ifdef TEC_64 #ifdef WIN64 #include "loh/submenu_le64w.loh" #else #include "loh/submenu_le64.loh" #endif #else #include "loh/submenu.loh" #endif #endif #else iuplua_dofile(L, "submenu.lua"); #endif return 0; }
int iupspinlua_open(lua_State * L) { iuplua_register(L, Spin, "Spin"); iuplua_register_cb(L, "SPIN_CB", (lua_CFunction)spin_spin_cb, NULL); #ifdef IUPLUA_USELOH #ifdef TEC_BIGENDIAN #ifdef TEC_64 #include "loh/spin_be64.loh" #else #include "loh/spin_be32.loh" #endif #else #ifdef TEC_64 #ifdef WIN64 #include "loh/spin_le64w.loh" #else #include "loh/spin_le64.loh" #endif #else #include "loh/spin.loh" #endif #endif #else iuplua_dofile(L, "spin.lua"); #endif return 0; }
int iupcanvaslua_open(lua_State * L) { iuplua_register(L, Canvas, "Canvas"); iuplua_register_cb(L, "ACTION", (lua_CFunction)canvas_action, "canvas"); iuplua_register_cb(L, "LEAVEWINDOW_CB", (lua_CFunction)canvas_leavewindow_cb, NULL); iuplua_register_cb(L, "RESIZE_CB", (lua_CFunction)canvas_resize_cb, NULL); iuplua_register_cb(L, "WHEEL_CB", (lua_CFunction)canvas_wheel_cb, NULL); iuplua_register_cb(L, "MDIACTIVATE_CB", (lua_CFunction)canvas_mdiactivate_cb, NULL); iuplua_register_cb(L, "ENTERWINDOW_CB", (lua_CFunction)canvas_enterwindow_cb, NULL); iuplua_register_cb(L, "FOCUS_CB", (lua_CFunction)canvas_focus_cb, NULL); iuplua_register_cb(L, "BUTTON_CB", (lua_CFunction)canvas_button_cb, NULL); iuplua_register_cb(L, "KEYPRESS_CB", (lua_CFunction)canvas_keypress_cb, NULL); iuplua_register_cb(L, "MOTION_CB", (lua_CFunction)canvas_motion_cb, NULL); iuplua_register_cb(L, "WOM_CB", (lua_CFunction)canvas_wom_cb, NULL); iuplua_register_cb(L, "SCROLL_CB", (lua_CFunction)canvas_scroll_cb, NULL); #ifdef IUPLUA_USELOH #include "canvas.loh" #else #ifdef IUPLUA_USELZH #include "canvas.lzh" #else iuplua_dofile(L, "canvas.lua"); #endif #endif return 0; }
int iupsplitlua_open(lua_State * L) { iuplua_register(L, Split, "Split"); #ifdef IUPLUA_USELOH #ifdef TEC_BIGENDIAN #ifdef TEC_64 #include "loh/split_be64.loh" #else #include "loh/split_be32.loh" #endif #else #ifdef TEC_64 #ifdef WIN64 #include "loh/split_le64w.loh" #else #include "loh/split_le64.loh" #endif #else #include "loh/split.loh" #endif #endif #else iuplua_dofile(L, "split.lua"); #endif return 0; }
int iupmenulua_open(lua_State * L) { iuplua_register(L, Menu, "Menu"); iuplua_register_cb(L, "OPEN_CB", (lua_CFunction)menu_open_cb, NULL); iuplua_register_cb(L, "MENUCLOSE_CB", (lua_CFunction)menu_menuclose_cb, NULL); #ifdef IUPLUA_USELOH #ifdef TEC_BIGENDIAN #ifdef TEC_64 #include "loh/menu_be64.loh" #else #include "loh/menu_be32.loh" #endif #else #ifdef TEC_64 #ifdef WIN64 #include "loh/menu_le64w.loh" #else #include "loh/menu_le64.loh" #endif #else #include "loh/menu.loh" #endif #endif #else iuplua_dofile(L, "menu.lua"); #endif return 0; }
int iupglcanvaslua_open(lua_State * L) { iuplua_register(L, GLCanvas, "GLCanvas"); iuplua_register_cb(L, "ACTION", (lua_CFunction)glcanvas_action, "glcanvas"); iuplua_glcanvasfuncs_open(L); #ifdef IUPLUA_USELOH #ifdef TEC_BIGENDIAN #ifdef TEC_64 #include "loh/glcanvas_be64.loh" #else #include "loh/glcanvas_be32.loh" #endif #else #ifdef TEC_64 #ifdef WIN64 #include "loh/glcanvas_le64w.loh" #else #include "loh/glcanvas_le64.loh" #endif #else #include "loh/glcanvas.loh" #endif #endif #else iuplua_dofile(L, "glcanvas.lua"); #endif return 0; }
int iupfilllua_open(lua_State * L) { iuplua_register(L, Fill, "Fill"); #ifdef IUPLUA_USELOH #ifdef TEC_BIGENDIAN #ifdef TEC_64 #include "loh/fill_be64.loh" #else #include "loh/fill_be32.loh" #endif #else #ifdef TEC_64 #ifdef WIN64 #include "loh/fill_le64w.loh" #else #include "loh/fill_le64.loh" #endif #else #include "loh/fill.loh" #endif #endif #else iuplua_dofile(L, "fill.lua"); #endif return 0; }
int iupcolorbarlua_open(lua_State * L) { iuplua_register(L, Colorbar, "Colorbar"); iuplua_register_cb(L, "SWITCH_CB", (lua_CFunction)colorbar_switch_cb, NULL); iuplua_register_cb(L, "SELECT_CB", (lua_CFunction)colorbar_select_cb, NULL); iuplua_register_cb(L, "CELL_CB", (lua_CFunction)colorbar_cell_cb, NULL); iuplua_register_cb(L, "EXTENDED_CB", (lua_CFunction)colorbar_extended_cb, NULL); #ifdef IUPLUA_USELOH #ifdef TEC_BIGENDIAN #ifdef TEC_64 #include "loh/colorbar_be64.loh" #else #include "loh/colorbar_be32.loh" #endif #else #ifdef TEC_64 #ifdef WIN64 #include "loh/colorbar_le64w.loh" #else #include "loh/colorbar_le64.loh" #endif #else #include "loh/colorbar.loh" #endif #endif #else iuplua_dofile(L, "colorbar.lua"); #endif return 0; }
int iupplotlua_open(lua_State * L) { iuplua_register(L, Plot, "Plot"); iuplua_register_cb(L, "DELETEEND_CB", (lua_CFunction)plot_deleteend_cb, NULL); iuplua_register_cb(L, "PLOTMOTION_CB", (lua_CFunction)plot_plotmotion_cb, NULL); iuplua_register_cb(L, "DRAWSAMPLE_CB", (lua_CFunction)plot_drawsample_cb, NULL); iuplua_register_cb(L, "MENUCONTEXT_CB", (lua_CFunction)plot_menucontext_cb, NULL); iuplua_register_cb(L, "SELECT_CB", (lua_CFunction)plot_select_cb, NULL); iuplua_register_cb(L, "MENUCONTEXTCLOSE_CB", (lua_CFunction)plot_menucontextclose_cb, NULL); iuplua_register_cb(L, "POSTDRAW_CB", (lua_CFunction)plot_postdraw_cb, NULL); iuplua_register_cb(L, "DELETE_CB", (lua_CFunction)plot_delete_cb, NULL); iuplua_register_cb(L, "CLICKSAMPLE_CB", (lua_CFunction)plot_clicksample_cb, NULL); iuplua_register_cb(L, "SELECTEND_CB", (lua_CFunction)plot_selectend_cb, NULL); iuplua_register_cb(L, "SELECTBEGIN_CB", (lua_CFunction)plot_selectbegin_cb, NULL); iuplua_register_cb(L, "DELETEBEGIN_CB", (lua_CFunction)plot_deletebegin_cb, NULL); iuplua_register_cb(L, "PREDRAW_CB", (lua_CFunction)plot_predraw_cb, NULL); iuplua_register_cb(L, "PLOTBUTTON_CB", (lua_CFunction)plot_plotbutton_cb, NULL); iuplua_plotfuncs_open(L); #ifdef IUPLUA_USELOH #include "plot.loh" #else #ifdef IUPLUA_USELH #include "plot.lh" #else iuplua_dofile(L, "plot.lua"); #endif #endif return 0; }
int iupgaugelua_open(lua_State * L) { iuplua_register(L, Gauge, "Gauge"); #ifdef IUPLUA_USELOH #ifdef TEC_BIGENDIAN #ifdef TEC_64 #include "loh/gauge_be64.loh" #else #include "loh/gauge_be32.loh" #endif #else #ifdef TEC_64 #ifdef WIN64 #include "loh/gauge_le64w.loh" #else #include "loh/gauge_le64.loh" #endif #else #include "loh/gauge.loh" #endif #endif #else iuplua_dofile(L, "gauge.lua"); #endif return 0; }
int iupzboxlua_open(lua_State * L) { iuplua_register(L, Zbox, "Zbox"); #ifdef IUPLUA_USELOH #ifdef TEC_BIGENDIAN #ifdef TEC_64 #include "loh/zbox_be64.loh" #else #include "loh/zbox_be32.loh" #endif #else #ifdef TEC_64 #ifdef WIN64 #include "loh/zbox_le64w.loh" #else #include "loh/zbox_le64.loh" #endif #else #include "loh/zbox.loh" #endif #endif #else iuplua_dofile(L, "zbox.lua"); #endif return 0; }
int iupnormalizerlua_open(lua_State * L) { iuplua_register(L, Normalizer, "Normalizer"); #ifdef IUPLUA_USELOH #ifdef TEC_BIGENDIAN #ifdef TEC_64 #include "loh/normalizer_be64.loh" #else #include "loh/normalizer_be32.loh" #endif #else #ifdef TEC_64 #ifdef WIN64 #include "loh/normalizer_le64w.loh" #else #include "loh/normalizer_le64.loh" #endif #else #include "loh/normalizer.loh" #endif #endif #else iuplua_dofile(L, "normalizer.lua"); #endif return 0; }
int iupclipboardlua_open(lua_State * L) { iuplua_register(L, Clipboard, "Clipboard"); #ifdef IUPLUA_USELOH #ifdef TEC_BIGENDIAN #ifdef TEC_64 #include "loh/clipboard_be64.loh" #else #include "loh/clipboard_be32.loh" #endif #else #ifdef TEC_64 #ifdef WIN64 #include "loh/clipboard_le64w.loh" #else #include "loh/clipboard_le64.loh" #endif #else #include "loh/clipboard.loh" #endif #endif #else iuplua_dofile(L, "clipboard.lua"); #endif return 0; }
int iuptreelua_open(lua_State * L) { iuplua_register(L, Tree, "Tree"); iuplua_register_cb(L, "BRANCHOPEN_CB", (lua_CFunction)tree_branchopen_cb, NULL); iuplua_register_cb(L, "SELECTION_CB", (lua_CFunction)tree_selection_cb, NULL); iuplua_register_cb(L, "MULTISELECTION_CB", (lua_CFunction)tree_multiselection_cb, NULL); iuplua_register_cb(L, "DRAGDROP_CB", (lua_CFunction)tree_dragdrop_cb, NULL); iuplua_register_cb(L, "RENAME_CB", (lua_CFunction)tree_rename_cb, NULL); iuplua_register_cb(L, "MULTIUNSELECTION_CB", (lua_CFunction)tree_multiunselection_cb, NULL); iuplua_register_cb(L, "SHOWRENAME_CB", (lua_CFunction)tree_showrename_cb, NULL); iuplua_register_cb(L, "TOGGLEVALUE_CB", (lua_CFunction)tree_togglevalue_cb, NULL); iuplua_register_cb(L, "BRANCHCLOSE_CB", (lua_CFunction)tree_branchclose_cb, NULL); iuplua_register_cb(L, "EXECUTELEAF_CB", (lua_CFunction)tree_executeleaf_cb, NULL); iuplua_register_cb(L, "RIGHTCLICK_CB", (lua_CFunction)tree_rightclick_cb, NULL); iuplua_register_cb(L, "NODEREMOVED_CB", (lua_CFunction)tree_noderemoved_cb, NULL); iuplua_treefuncs_open(L); #ifdef IUPLUA_USELOH #include "tree.loh" #else #ifdef IUPLUA_USELH #include "tree.lh" #else iuplua_dofile(L, "tree.lua"); #endif #endif return 0; }
int iupscintillalua_open(lua_State * L) { iuplua_register(L, Scintilla, "Scintilla"); iuplua_register_cb(L, "ACTION", (lua_CFunction)scintilla_action, "scintilla"); iuplua_register_cb(L, "MARGINCLICK_CB", (lua_CFunction)scintilla_marginclick_cb, NULL); iuplua_register_cb(L, "AUTOCSELECTION_CB", (lua_CFunction)scintilla_autocselection_cb, NULL); iuplua_register_cb(L, "ZOOM_CB", (lua_CFunction)scintilla_zoom_cb, NULL); iuplua_register_cb(L, "HOTSPOTCLICK_CB", (lua_CFunction)scintilla_hotspotclick_cb, NULL); iuplua_register_cb(L, "AUTOCCANCELLED_CB", (lua_CFunction)scintilla_autoccancelled_cb, NULL); iuplua_register_cb(L, "DWELL_CB", (lua_CFunction)scintilla_dwell_cb, NULL); iuplua_register_cb(L, "UPDATEHSCROLL_CB", (lua_CFunction)scintilla_updatehscroll_cb, NULL); iuplua_register_cb(L, "UPDATESELECTION_CB", (lua_CFunction)scintilla_updateselection_cb, NULL); iuplua_register_cb(L, "AUTOCCHARDELETED_CB", (lua_CFunction)scintilla_autocchardeleted_cb, NULL); iuplua_register_cb(L, "SAVEPOINT_CB", (lua_CFunction)scintilla_savepoint_cb, NULL); iuplua_register_cb(L, "LINESCHANGED_CB", (lua_CFunction)scintilla_lineschanged_cb, NULL); iuplua_register_cb(L, "UPDATECONTENT_CB", (lua_CFunction)scintilla_updatecontent_cb, NULL); iuplua_register_cb(L, "UPDATEVSCROLL_CB", (lua_CFunction)scintilla_updatevscroll_cb, NULL); #ifdef IUPLUA_USELOH #include "scintilla.loh" #else #ifdef IUPLUA_USELH #include "scintilla.lh" #else iuplua_dofile(L, "scintilla.lua"); #endif #endif return 0; }
int iupmatrixlistlua_open(lua_State * L) { iuplua_register(L, MatrixList, "MatrixList"); iuplua_register_cb(L, "IMAGEVALUECHANGED_CB", (lua_CFunction)matrixlist_imagevaluechanged_cb, NULL); iuplua_register_cb(L, "MOUSEMOVE_CB", (lua_CFunction)matrixlist_mousemove_cb, "matrixlist"); iuplua_register_cb(L, "LISTREMOVE_CB", (lua_CFunction)matrixlist_listremove_cb, NULL); iuplua_register_cb(L, "LISTACTION_CB", (lua_CFunction)matrixlist_listaction_cb, NULL); iuplua_register_cb(L, "LISTCLICK_CB", (lua_CFunction)matrixlist_listclick_cb, NULL); iuplua_register_cb(L, "LISTINSERT_CB", (lua_CFunction)matrixlist_listinsert_cb, NULL); iuplua_register_cb(L, "LISTRELEASE_CB", (lua_CFunction)matrixlist_listrelease_cb, NULL); iuplua_register_cb(L, "ACTION_CB", (lua_CFunction)matrixlist_action_cb, "matrixlist"); iuplua_register_cb(L, "LISTEDITION_CB", (lua_CFunction)matrixlist_listedition_cb, NULL); #ifdef IUPLUA_USELOH #include "matrixlist.loh" #else #ifdef IUPLUA_USELH #include "matrixlist.lh" #else iuplua_dofile(L, "matrixlist.lua"); #endif #endif return 0; }
int iuppplotlua_open(lua_State * L) { iuplua_register(L, PPlot, "PPlot"); iuplua_register_cb(L, "EDIT_CB", (lua_CFunction)pplot_edit_cb, "pplot"); iuplua_register_cb(L, "DELETEEND_CB", (lua_CFunction)pplot_deleteend_cb, NULL); iuplua_register_cb(L, "PLOTMOTION_CB", (lua_CFunction)pplot_plotmotion_cb, NULL); iuplua_register_cb(L, "EDITBEGIN_CB", (lua_CFunction)pplot_editbegin_cb, NULL); iuplua_register_cb(L, "SELECT_CB", (lua_CFunction)pplot_select_cb, NULL); iuplua_register_cb(L, "POSTDRAW_CB", (lua_CFunction)pplot_postdraw_cb, NULL); iuplua_register_cb(L, "EDITEND_CB", (lua_CFunction)pplot_editend_cb, NULL); iuplua_register_cb(L, "SELECTBEGIN_CB", (lua_CFunction)pplot_selectbegin_cb, NULL); iuplua_register_cb(L, "SELECTEND_CB", (lua_CFunction)pplot_selectend_cb, NULL); iuplua_register_cb(L, "DELETE_CB", (lua_CFunction)pplot_delete_cb, NULL); iuplua_register_cb(L, "DELETEBEGIN_CB", (lua_CFunction)pplot_deletebegin_cb, NULL); iuplua_register_cb(L, "PREDRAW_CB", (lua_CFunction)pplot_predraw_cb, NULL); iuplua_register_cb(L, "PLOTBUTTON_CB", (lua_CFunction)pplot_plotbutton_cb, NULL); iuplua_pplotfuncs_open(L); #ifdef IUPLUA_USELOH #include "pplot.loh" #else #ifdef IUPLUA_USELH #include "pplot.lh" #else iuplua_dofile(L, "pplot.lua"); #endif #endif return 0; }
static int iupluaimglib_open (lua_State *L) { IupImageLibOpen(); iuplua_get_env(L); iuplua_register(L, imagelibopen, "ImageLibOpen"); return 0; /* nothing in stack */ }
int iupolecontrollua_open(lua_State * L) { iuplua_register(L, OleControl, "OleControl"); #ifdef IUPLUA_USELH #include "olecontrol.lh" #else iuplua_dofile(L, "olecontrol.lua"); #endif return 0; }
int iupzboxlua_open(lua_State * L) { iuplua_register(L, Zbox, "Zbox"); #ifdef IUPLUA_USELH #include "zbox.lh" #else iuplua_dofile(L, "zbox.lua"); #endif return 0; }
int iuptabslua_open(lua_State * L) { iuplua_register(L, Tabsv, "Tabsv"); iuplua_register_cb(L, "TABCHANGE_CB", (lua_CFunction)tabs_tabchange_cb, NULL); #ifdef IUPLUA_USELH #include "tabs.lh" #else iuplua_dofile(L, "tabs.lua"); #endif return 0; }
void iupmasklua_open(lua_State *L) { iuplua_regstring(L, IUP_MASK_FLOAT, "MASK_FLOAT"); iuplua_regstring(L, IUP_MASK_UFLOAT, "MASK_UFLOAT"); iuplua_regstring(L, IUP_MASK_EFLOAT, "MASK_EFLOAT"); iuplua_regstring(L, IUP_MASK_FLOATCOMMA, "MASK_FLOATCOMMA"); iuplua_regstring(L, IUP_MASK_UFLOATCOMMA, "MASK_UFLOATCOMMA"); iuplua_regstring(L, IUP_MASK_INT, "MASK_INT"); iuplua_regstring(L, IUP_MASK_UINT, "MASK_UINT"); iuplua_register(L, cfMaskRemove, "maskRemove"); iuplua_register(L, cfMaskMatRemove, "maskMatRemove"); iuplua_register(L, cfMaskSet, "maskSet"); iuplua_register(L, cfMaskMatSet, "maskMatSet"); iuplua_register(L, cfMaskSetInt, "maskSetInt"); iuplua_register(L, cfMaskSetFloat, "maskSetFloat"); iuplua_register(L, cfMaskMatSetInt, "maskMatSetInt"); iuplua_register(L, cfMaskMatSetFloat, "maskMatSetFloat"); iuplua_register(L, cfMaskCheck, "maskCheck"); iuplua_register(L, cfMaskMatCheck, "maskMatCheck"); iuplua_register_cb(L, "MATCH_CB", (lua_CFunction)match_cb, NULL); }
int treelua_open(void) { struct AssocList { char *name; lua_CFunction func; } TreeAssocList [] = { {"iup_tree_multiselection_cb", (lua_CFunction)TREE_multiselection}, {"iup_tree_multiunselection_cb", (lua_CFunction)TREE_multiunselection}, {"iup_tree_selection_cb", (lua_CFunction)TREE_selection}, {"iup_tree_branchopen_cb", (lua_CFunction)TREE_branchopen}, {"iup_tree_branchclose_cb", (lua_CFunction)TREE_branchclose}, {"iup_tree_executeleaf_cb", (lua_CFunction)TREE_executeleaf}, {"iup_tree_renamenode_cb", (lua_CFunction)TREE_renamenode}, {"iup_tree_rename_cb", (lua_CFunction)TREE_rename}, {"iup_tree_showrename_cb", (lua_CFunction)TREE_showrename}, {"iup_tree_dragdrop_cb", (lua_CFunction)TREE_dragdrop}, {"iup_tree_rightclick_cb", (lua_CFunction)TREE_rightclick} }; int SizeTreeAssocList = (sizeof(TreeAssocList)/sizeof(struct AssocList)); int i ; iuplua_register("IupTreeSetUserId", cfTreeSetUserId); iuplua_register("IupTreeGetUserId", cfTreeGetUserId); iuplua_register("IupTreeGetId", cfTreeGetId); iuplua_register("IupTreeSetTableId", cfTreeSetTableId); iuplua_register("IupTreeGetTableId", cfTreeGetTableId); iuplua_register("IupTreeGetTable", cfTreeGetTable); lua_register("iupCreateTree", CreateTree); for (i = 0; i < SizeTreeAssocList; i++) lua_register(TreeAssocList[i].name, TreeAssocList[i].func); #ifdef IUPLUA_USELOH #ifdef TEC_BIGENDIAN #ifdef TEC_64 #include "loh/tree_be64.loh" #else #include "loh/tree_be32.loh" #endif #else #ifdef TEC_64 #ifdef WIN64 #include "loh/tree_le64w.loh" #else #include "loh/tree_le64.loh" #endif #else #include "loh/tree.loh" #endif #endif #else iuplua_dofile("luatree.lua"); #endif return 1; }