static int Split(lua_State *L) { Ihandle *ih = IupSplit(iuplua_checkihandleornil(L, 1), iuplua_checkihandleornil(L, 2)); iuplua_plugstate(L, ih); iuplua_pushihandle_raw(L, ih); return 1; }
static int FlatScrollBox(lua_State *L) { Ihandle *ih = IupFlatScrollBox(iuplua_checkihandleornil(L, 1)); iuplua_plugstate(L, ih); iuplua_pushihandle_raw(L, ih); return 1; }
static int Insert(lua_State *L) { iuplua_pushihandle(L, IupInsert(iuplua_checkihandle(L,1), iuplua_checkihandleornil(L,2), iuplua_checkihandle(L,3))); return 1; }
static int Reparent(lua_State *L) { lua_pushinteger(L, IupReparent(iuplua_checkihandle(L,1), iuplua_checkihandle(L,2), iuplua_checkihandleornil(L,3))); return 1; }
static int Submenu(lua_State *L) { Ihandle *ih = IupSubmenu((char *) luaL_optstring(L, 1, NULL), iuplua_checkihandleornil(L, 2)); iuplua_plugstate(L, ih); iuplua_pushihandle_raw(L, ih); return 1; }
static int Dialog(lua_State *L) { Ihandle *ih = IupDialog(iuplua_checkihandleornil(L, 1)); iuplua_plugstate(L, ih); iuplua_pushihandle_raw(L, ih); return 1; }
static int Expander(lua_State *L) { Ihandle *ih = IupExpander(iuplua_checkihandleornil(L, 1)); iuplua_plugstate(L, ih); iuplua_pushihandle_raw(L, ih); return 1; }
static int GetNextChild(lua_State *L) { Ihandle* parent = iuplua_checkihandle(L,1); Ihandle* next = iuplua_checkihandleornil(L,2); Ihandle* nextchild = IupGetNextChild(parent, next); iuplua_pushihandle(L, nextchild); return 1; }
static int LayoutDialog(lua_State *L) { iuplua_pushihandle(L,IupLayoutDialog(iuplua_checkihandleornil(L,1))); return 1; }