[tekui-devel] tekui: renamed getActiveByXY() to getSelectedByXY(); added
Timm S. Mueller
tmueller at neoscientists.org
Wed Mar 19 18:40:57 CET 2008
details: http://hg.teklib.org/tekui/rev/0a66c9190f13
changeset: 368:0a66c9190f13
user: Timm S. Mueller <tmueller at neoscientists.org>
date: Sun Mar 16 22:05:55 2008 +0100
description:
renamed getActiveByXY() to getSelectedByXY(); added
Window:getWindowDimensions(), openWindow and rethinkLayout rewritten
diffs (truncated from 362 to 100 lines):
diff -r bc7358845305 -r 0a66c9190f13 tek/class/ui/area.lua
--- a/tek/class/ui/area.lua Sun Mar 16 20:48:23 2008 +0100
+++ b/tek/class/ui/area.lua Sun Mar 16 22:05:55 2008 +0100
@@ -30,7 +30,7 @@ local floor = math.floor
local floor = math.floor
module("tek.class.ui.area", tek.class.ui.element)
-_VERSION = "Area 4.4"
+_VERSION = "Area 4.5"
local Area = _M
-------------------------------------------------------------------------------
@@ -320,13 +320,13 @@ end
end
-------------------------------------------------------------------------------
--- self = area:getActiveByXY(x, y): Returns itself if the element covers
+-- self = area:getSelectedByXY(x, y): Returns itself if the element covers
-- the specified coordinate and can be activated. Note: As an Area cannot
-- be activated, this implementation always returns '''nil'''. See also
--- Gadget:getActiveByXY().
--------------------------------------------------------------------------------
-
-function Area:getActiveByXY()
+-- Gadget:getSelectedByXY().
+-------------------------------------------------------------------------------
+
+function Area:getSelectedByXY()
end
-------------------------------------------------------------------------------
diff -r bc7358845305 -r 0a66c9190f13 tek/class/ui/canvas.lua
--- a/tek/class/ui/canvas.lua Sun Mar 16 20:48:23 2008 +0100
+++ b/tek/class/ui/canvas.lua Sun Mar 16 22:05:55 2008 +0100
@@ -16,7 +16,7 @@ local overlap = ui.Region.overlapCoords
local overlap = ui.Region.overlapCoords
module("tek.class.ui.canvas", tek.class.ui.frame)
-_VERSION = "Canvas 0.5"
+_VERSION = "Canvas 0.6"
local Canvas = _M
local DEF_CANVASAREA_MARGIN = { 0, 0, 0, 0 }
@@ -216,12 +216,12 @@ end
end
-------------------------------------------------------------------------------
--- getActiveByXY:
--------------------------------------------------------------------------------
-
-function Canvas:getActiveByXY(x, y)
- local sx, sy = self:checkArea(x, y)
- return sx and self.Object:getActiveByXY(x - sx, y - sy)
+-- getSelectedByXY:
+-------------------------------------------------------------------------------
+
+function Canvas:getSelectedByXY(x, y)
+ local sx, sy = self:checkArea(x, y)
+ return sx and self.Object:getSelectedByXY(x - sx, y - sy)
end
-------------------------------------------------------------------------------
diff -r bc7358845305 -r 0a66c9190f13 tek/class/ui/gadget.lua
--- a/tek/class/ui/gadget.lua Sun Mar 16 20:48:23 2008 +0100
+++ b/tek/class/ui/gadget.lua Sun Mar 16 22:05:55 2008 +0100
@@ -22,7 +22,7 @@ local Frame = ui.Frame
local Frame = ui.Frame
module("tek.class.ui.gadget", tek.class.ui.frame)
-_VERSION = "Gadget 1.7"
+_VERSION = "Gadget 1.8"
local Gadget = _M
@@ -144,14 +144,14 @@ end
end
-------------------------------------------------------------------------------
--- self = getActiveByXY(x, y): This function is called to notify the
+-- self = getSelectedByXY(x, y): This function is called to notify the
-- element of mouse pointer position. The x/y coordinates will usually
-- be taken into account to determine if the mouse pointer at this
-- position would activate the element. In this case, the element
-- ({{self}}) is returned.
-------------------------------------------------------------------------------
-function Gadget:getActiveByXY(x, y)
+function Gadget:getSelectedByXY(x, y)
return not self.Disabled and self:getElementByXY(x, y)
end
diff -r bc7358845305 -r 0a66c9190f13 tek/class/ui/group.lua
--- a/tek/class/ui/group.lua Sun Mar 16 20:48:23 2008 +0100
+++ b/tek/class/ui/group.lua Sun Mar 16 22:05:55 2008 +0100
@@ -20,7 +20,7 @@ local unpack = unpack
local unpack = unpack
module("tek.class.ui.group", tek.class.ui.frame)
-_VERSION = "Group 1.13"
+_VERSION = "Group 1.14"
More information about the tekui-devel
mailing list