summaryrefslogtreecommitdiff
path: root/iup/srclua5/cells.lua
blob: 0355b178e790ab0d952533346688183e4288cb23 (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
30
31
32
------------------------------------------------------------------------------
-- Cells class 
------------------------------------------------------------------------------
local ctrl = {
  nick = "cells",
  parent = iup.WIDGET,
  creation = "",
  callback = {
    mouseclick_cb = "nnnnnns",
    mousemotion_cb = "nnnns",
    scrolling_cb = "nn",
--    draw_cb = "nnnnnnn",   -- already registered by the matrix
    width_cb = "n",
    height_cb = "n",
    nlines_cb = "",
    ncols_cb = "",
    hspan_cb = "nn",
    vspan_cb = "nn",
   },
  include = "iupcontrols.h",
}

function ctrl.redraw(handle)
   handle.repaint = "YES"
end

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

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