summaryrefslogtreecommitdiff
path: root/iup/srclua5/colorbar.lua
blob: 7cc07db55122bdad91519da4dff30906143b1188 (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
------------------------------------------------------------------------------
-- Colorbar class 
------------------------------------------------------------------------------
local ctrl = {
  nick = "colorbar",
  parent = iup.WIDGET,
  creation = "",
  callback = {
    select_cb = "nn",
    cell_cb = {"n", ret = "s"},
    switch_cb = "nn",
    extended_cb = "n",
   },
  funcname = "Colorbar",
  include = "iupcontrols.h",
}

iup.PRIMARY = -1
iup.SECONDARY = -2

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

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