summaryrefslogtreecommitdiff
path: root/iup/srclua5/colorbrowser.lua
blob: 16ac58f96086b2a922f7a4ca710153faf7f7caf7 (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 = WIDGET,
  creation = "",
  callback = {
    drag_cb = "ccc",
    change_cb = "ccc",
  },
  funcname = "ColorBrowser",
  include = "iupcontrols.h",
}

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

iupRegisterWidget(ctrl)
iupSetClass(ctrl, "iup widget")