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
29
|
------------------------------------------------------------------------------
-- Canvas class
------------------------------------------------------------------------------
local ctrl = {
nick = "canvas",
parent = WIDGET,
creation = "-",
callback = {
action = "ff",
button_cb = "nnnns",
enterwindow_cb = "",
leavewindow_cb = "",
motion_cb = "nns",
resize_cb = "nn",
scroll_cb = "nff",
keypress_cb = "nn",
wom_cb = "n",
wheel_cb = "fnns",
mdiactivate_cb = "",
focus_cb = "n",
}
}
function ctrl.createElement(class, arg)
return Canvas()
end
iupRegisterWidget(ctrl)
iupSetClass(ctrl, "iup widget")
|