summaryrefslogtreecommitdiff
path: root/iup/srclua5/cells.lua
blob: 9c914f29f1d75b69b17ab359331b1cc58a851951 (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 = 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, arg)
   return Cells()
end

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