summaryrefslogtreecommitdiff
path: root/iup/srclua5/canvas.lua
blob: 101c4f46627d93ad33c7ea4e16598abe41fde0ad (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
29
------------------------------------------------------------------------------
-- Canvas class 
------------------------------------------------------------------------------
local ctrl = {
  nick = "canvas",
  parent = iup.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, param)
   return iup.Canvas()
end

iup.RegisterWidget(ctrl)
iup.SetClass(ctrl, "iup widget")