예제 #1
0
int iupmatrixlua_open(lua_State * L)
{
  iuplua_register(L, Matrix, "Matrix");

  iuplua_register_cb(L, "RELEASE_CB", (lua_CFunction)matrix_release_cb, NULL);
  iuplua_register_cb(L, "DRAW_CB", (lua_CFunction)matrix_draw_cb, NULL);
  iuplua_register_cb(L, "EDITION_CB", (lua_CFunction)matrix_edition_cb, NULL);
  iuplua_register_cb(L, "MARK_CB", (lua_CFunction)matrix_mark_cb, NULL);
  iuplua_register_cb(L, "MARKEDIT_CB", (lua_CFunction)matrix_markedit_cb, NULL);
  iuplua_register_cb(L, "BGCOLOR_CB", (lua_CFunction)matrix_bgcolor_cb, NULL);
  iuplua_register_cb(L, "VALUE_CB", (lua_CFunction)matrix_value_cb, NULL);
  iuplua_register_cb(L, "DROPSELECT_CB", (lua_CFunction)matrix_dropselect_cb, NULL);
  iuplua_register_cb(L, "DROP_CB", (lua_CFunction)matrix_drop_cb, NULL);
  iuplua_register_cb(L, "FGCOLOR_CB", (lua_CFunction)matrix_fgcolor_cb, NULL);
  iuplua_register_cb(L, "ENTERITEM_CB", (lua_CFunction)matrix_enteritem_cb, NULL);
  iuplua_register_cb(L, "ACTION_CB", (lua_CFunction)matrix_action_cb, "matrix");
  iuplua_register_cb(L, "SCROLLTOP_CB", (lua_CFunction)matrix_scrolltop_cb, NULL);
  iuplua_register_cb(L, "DROPCHECK_CB", (lua_CFunction)matrix_dropcheck_cb, NULL);
  iuplua_register_cb(L, "LEAVEITEM_CB", (lua_CFunction)matrix_leaveitem_cb, NULL);
  iuplua_register_cb(L, "MOUSEMOVE_CB", (lua_CFunction)matrix_mousemove_cb, "matrix");
  iuplua_register_cb(L, "VALUE_EDIT_CB", (lua_CFunction)matrix_value_edit_cb, NULL);
  iuplua_register_cb(L, "CLICK_CB", (lua_CFunction)matrix_click_cb, NULL);

  iuplua_matrixfuncs_open(L);

#ifdef IUPLUA_USELOH
#ifdef TEC_BIGENDIAN
#ifdef TEC_64
#include "loh/matrix_be64.loh"
#else
#include "loh/matrix_be32.loh"
#endif
#else
#ifdef TEC_64
#ifdef WIN64
#include "loh/matrix_le64w.loh"
#else
#include "loh/matrix_le64.loh"
#endif
#else
#include "loh/matrix.loh"
#endif
#endif
#else
  iuplua_dofile(L, "matrix.lua");
#endif

  return 0;
}
예제 #2
0
int iupmatrixlua_open(lua_State * L)
{
  iuplua_register(L, Matrix, "Matrix");

  iuplua_register_cb(L, "FONT_CB", (lua_CFunction)matrix_font_cb, NULL);
  iuplua_register_cb(L, "MOUSEMOVE_CB", (lua_CFunction)matrix_mousemove_cb, "matrix");
  iuplua_register_cb(L, "EDITION_CB", (lua_CFunction)matrix_edition_cb, NULL);
  iuplua_register_cb(L, "MARK_CB", (lua_CFunction)matrix_mark_cb, NULL);
  iuplua_register_cb(L, "MARKEDIT_CB", (lua_CFunction)matrix_markedit_cb, NULL);
  iuplua_register_cb(L, "TRANSLATEVALUE_CB", (lua_CFunction)matrix_translatevalue_cb, NULL);
  iuplua_register_cb(L, "VALUE_EDIT_CB", (lua_CFunction)matrix_value_edit_cb, NULL);
  iuplua_register_cb(L, "EDITRELEASE_CB", (lua_CFunction)matrix_editrelease_cb, NULL);
  iuplua_register_cb(L, "ACTION_CB", (lua_CFunction)matrix_action_cb, "matrix");
  iuplua_register_cb(L, "VALUE_CB", (lua_CFunction)matrix_value_cb, NULL);
  iuplua_register_cb(L, "BGCOLOR_CB", (lua_CFunction)matrix_bgcolor_cb, NULL);
  iuplua_register_cb(L, "DRAW_CB", (lua_CFunction)matrix_draw_cb, NULL);
  iuplua_register_cb(L, "DROPCHECK_CB", (lua_CFunction)matrix_dropcheck_cb, NULL);
  iuplua_register_cb(L, "DROPSELECT_CB", (lua_CFunction)matrix_dropselect_cb, NULL);
  iuplua_register_cb(L, "EDITMOUSEMOVE_CB", (lua_CFunction)matrix_editmousemove_cb, NULL);
  iuplua_register_cb(L, "RELEASE_CB", (lua_CFunction)matrix_release_cb, NULL);
  iuplua_register_cb(L, "DROP_CB", (lua_CFunction)matrix_drop_cb, NULL);
  iuplua_register_cb(L, "TYPE_CB", (lua_CFunction)matrix_type_cb, NULL);
  iuplua_register_cb(L, "MENUDROP_CB", (lua_CFunction)matrix_menudrop_cb, NULL);
  iuplua_register_cb(L, "TOGGLEVALUE_CB", (lua_CFunction)matrix_togglevalue_cb, NULL);
  iuplua_register_cb(L, "ENTERITEM_CB", (lua_CFunction)matrix_enteritem_cb, NULL);
  iuplua_register_cb(L, "RESIZEMATRIX_CB", (lua_CFunction)matrix_resizematrix_cb, NULL);
  iuplua_register_cb(L, "SCROLLTOP_CB", (lua_CFunction)matrix_scrolltop_cb, NULL);
  iuplua_register_cb(L, "FGCOLOR_CB", (lua_CFunction)matrix_fgcolor_cb, NULL);
  iuplua_register_cb(L, "COLRESIZE_CB", (lua_CFunction)matrix_colresize_cb, NULL);
  iuplua_register_cb(L, "EDITCLICK_CB", (lua_CFunction)matrix_editclick_cb, NULL);
  iuplua_register_cb(L, "LEAVEITEM_CB", (lua_CFunction)matrix_leaveitem_cb, NULL);
  iuplua_register_cb(L, "CLICK_CB", (lua_CFunction)matrix_click_cb, NULL);

  iuplua_matrixfuncs_open(L);

#ifdef IUPLUA_USELOH
#include "matrix.loh"
#else
#ifdef IUPLUA_USELH
#include "matrix.lh"
#else
  iuplua_dofile(L, "matrix.lua");
#endif
#endif

  return 0;
}