fixed X11_softare_info changing
[ego.git] / test / move.lua
blob69ec82aa38f5ae048db06c3333acb7732b01a2fb
1 move = ego:smart_class {
2 add = function (self)
3 self.box = ego:rectangle ()
4 end,
6 del = function (self)
7 self.box:hide ()
8 end,
10 move = function (self, x, y)
11 self.box:move (x, y)
12 end,
14 resize = function (self, w, h)
15 self.box:resize (w, h)
16 end,
18 show = function (self)
19 self.box:show ()
20 end,
22 hide = function (self)
23 self.box:del ()
24 end,
26 color_set = function (self, color)
27 self.box.color = color
28 end,
30 clip_set = function (self, clip)
31 self.box.clip = clip
32 end,
34 clip_unset = function (self)
35 self.box:clip_unset ()
36 end