summaryrefslogtreecommitdiff
path: root/iup/srclua5/colorbrowser.lua
blob: 496ce21367fdc0cb1711bac78a6f62191e25012e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
------------------------------------------------------------------------------
-- ColorBrowser class 
------------------------------------------------------------------------------
local ctrl = {
  nick = "colorbrowser",
  parent = iup.WIDGET,
  creation = "",
  callback = {
    drag_cb = "ccc",
    change_cb = "ccc",
  },
  funcname = "ColorBrowser",
  include = "iupcontrols.h",
}

function ctrl.createElement(class, param)
   return iup.ColorBrowser(param.action)
end

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