blob: 81ba9bee7dda5aa6473e3a88b7b70f42a46b0a09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
------------------------------------------------------------------------------
-- Cbox class
------------------------------------------------------------------------------
local ctrl = {
nick = "cbox",
parent = iup.WIDGET,
creation = "v",
callback = {},
funcname = "Cboxv",
createfunc = [[
static int Cboxv(lua_State *L)
{
Ihandle **hlist = iuplua_checkihandle_array(L, 1);
Ihandle *h = IupCboxv(hlist);
iuplua_plugstate(L, h);
iuplua_pushihandle_raw(L, h);
free(hlist);
return 1;
}
]],
}
function ctrl.createElement(class, param)
return iup.Cboxv(param)
end
iup.RegisterWidget(ctrl)
iup.SetClass(ctrl, "iup widget")
|