Пример #1
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;
}
Пример #2
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;
}
Пример #3
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;
}
Пример #4
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;
}
Пример #5
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;
}
Пример #6
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;
}
Пример #7
0
int diallua_open(void)
{
  lua_register("iupCreateDial", CreateDial);

#ifdef IUPLUA_USELOH
#ifdef TEC_BIGENDIAN
#ifdef TEC_64
#include "loh/dial_be64.loh"
#else
#include "loh/dial_be32.loh"
#endif  
#else
#ifdef TEC_64
#ifdef WIN64
#include "loh/dial_le64w.loh"
#else
#include "loh/dial_le64.loh"
#endif  
#else
#include "loh/dial.loh"
#endif  
#endif  
#else
  iuplua_dofile("luadial.lua");
#endif

  return 1;
}
Пример #8
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;
}
Пример #9
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;
}
Пример #10
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;
}
Пример #11
0
int cblua_open(void) 
{
  lua_register("iupCreateColorBrowser", CreateColorBrowser);
  lua_register("iup_colorbrowser_drag_cb", (lua_CFunction)CB_drag);
  lua_register("iup_colorbrowser_change_cb", (lua_CFunction)CB_change);

#ifdef IUPLUA_USELOH
#ifdef TEC_BIGENDIAN
#ifdef TEC_64
#include "loh/luacb_be64.loh"
#else
#include "loh/luacb_be32.loh"
#endif  
#else
#ifdef TEC_64
#ifdef WIN64
#include "loh/luacb_le64w.loh"
#else
#include "loh/luacb_le64.loh"
#endif  
#else
#include "loh/luacb.loh"
#endif  
#endif  
#else
  iuplua_dofile("luacb.lua");
#endif

  return 1;
}
Пример #12
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;
}
Пример #13
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;
}
Пример #14
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;
}
Пример #15
0
int gaugelua_open(void)
{
  lua_register("iupCreateGauge", CreateGauge);

#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("luagauge.lua");
#endif

  return 1;
}
Пример #16
0
int spinlua_open(void)
{
  lua_register("iupCreateSpin", CreateSpin);
  lua_register("iupCreateSpinbox", CreateSpinbox);
  lua_register("iup_spin_cb", (lua_CFunction)SPIN_spin_cb);

#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("luaspin.lua");
#endif

  return 1;
}
Пример #17
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;
}
Пример #18
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;
}
Пример #19
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;
}
Пример #20
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;
}
Пример #21
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;
}
Пример #22
0
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;
}
Пример #23
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;
}
Пример #24
0
int scrollboxlua_open(void)
{
  lua_register("iupCreateScrollBox", CreateScrollBox);

#ifdef IUPLUA_USELOH
#ifdef TEC_BIGENDIAN
#ifdef TEC_64
#include "loh/scrollbox_be64.loh"
#else
#include "loh/scrollbox_be32.loh"
#endif  
#else
#ifdef TEC_64
#ifdef WIN64
#include "loh/scrollbox_le64w.loh"
#else
#include "loh/scrollbox_le64.loh"
#endif  
#else
#include "loh/scrollbox.loh"
#endif  
#endif  
#else
  iuplua_dofile("luascrollbox.lua");
#endif

  return 1;
}
Пример #25
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;
}
Пример #26
0
int iup_pplotlua_open(void)
{
  lua_register("iupCreatePPlot", PPlot);

  lua_register("iup_pplot_edit_cb", (lua_CFunction)pplot_edit_cb);
  lua_register("iup_pplot_deleteend_cb", (lua_CFunction)pplot_deleteend_cb);
  lua_register("iup_pplot_selectbegin_cb", (lua_CFunction)pplot_selectbegin_cb);
  lua_register("iup_pplot_postdraw_cb", (lua_CFunction)pplot_postdraw_cb);
  lua_register("iup_pplot_editend_cb", (lua_CFunction)pplot_editend_cb);
  lua_register("iup_pplot_editbegin_cb", (lua_CFunction)pplot_editbegin_cb);
  lua_register("iup_pplot_selectend_cb", (lua_CFunction)pplot_selectend_cb);
  lua_register("iup_pplot_select_cb", (lua_CFunction)pplot_select_cb);
  lua_register("iup_pplot_deletebegin_cb", (lua_CFunction)pplot_deletebegin_cb);
  lua_register("iup_pplot_predraw_cb", (lua_CFunction)pplot_predraw_cb);
  lua_register("iup_pplot_delete_cb", (lua_CFunction)pplot_delete_cb);

  iuplua_register("IupPPlotBegin", PlotBegin);
  iuplua_register("IupPPlotAdd", PlotAdd);
  iuplua_register("IupPPlotAddStr", PlotAddStr);
  iuplua_register("IupPPlotEnd", PlotEnd);
  iuplua_register("IupPPlotInsertStr", PlotInsertStr);
  iuplua_register("IupPPlotInsert", PlotInsert);
  iuplua_register("IupPPlotTransform", PlotTransform);
  iuplua_register("IupPPlotPaintTo", PlotPaintTo);

  iuplua_register("IupPlotBegin", PlotBegin);
  iuplua_register("IupPlotAdd", PlotAdd);
  iuplua_register("IupPlotAddStr", PlotAddStr);
  iuplua_register("IupPlotEnd", PlotEnd);
  iuplua_register("IupPlotInsertStr", PlotInsertStr);
  iuplua_register("IupPlotInsert", PlotInsert);
  iuplua_register("IupPlotTransform", PlotTransform);
  iuplua_register("IupPlotPaintTo", PlotPaintTo);

#ifdef IUPLUA_USELOH
#ifdef TEC_BIGENDIAN
#ifdef TEC_64
#include "loh/pplot_be64.loh"
#else
#include "loh/pplot_be32.loh"
#endif
#else
#ifdef TEC_64
#ifdef WIN64
#include "loh/pplot_le64w.loh"
#else
#include "loh/pplot_le64.loh"
#endif
#else
#include "loh/pplot.loh"
#endif
#endif
#else
  iuplua_dofile("luapplot.lua");
#endif

  return 1;
}
Пример #27
0
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;
}
Пример #28
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;
}
Пример #29
0
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;
}
Пример #30
0
static int il_dofile(lua_State *L)
{
  int old_top = lua_gettop(L);
  const char* filename = luaL_checkstring(L, 1);
  int status = iuplua_dofile(L, filename);
  if (status == LUA_OK)
  {
    int top = lua_gettop(L);
    return top - old_top;
  }
  else
    return 0;
}