[tekui-devel] tekui: Cursor border was still in the installation procedure, fi...
Timm S. Mueller
tmueller at schulze-mueller.de
Thu Aug 28 11:33:16 CEST 2008
details: http://hg.teklib.org/tekui/rev/766fdd447f58
changeset: 8:766fdd447f58
user: Timm S. Mueller <tmueller at schulze-mueller.de>
date: Thu Aug 28 11:32:46 2008 +0200
description:
Cursor border was still in the installation procedure, fixed; Frame class now
implements drawBorder() as documented; Gauge, Slider: now override refresh()
and do not call Child:refresh() inside draw() anymore; Slightly improved
documentation
diffs (truncated from 273 to 100 lines):
diff -r 5fc5280440ef -r 766fdd447f58 tek/ui/Makefile
--- a/tek/ui/Makefile Wed Aug 27 00:48:45 2008 +0200
+++ b/tek/ui/Makefile Thu Aug 28 11:32:46 2008 +0200
@@ -15,7 +15,7 @@ CLASSES = \
class/scrollgroup.lua class/slider.lua class/spacer.lua \
class/pagegroup.lua class/text.lua class/textinput.lua class/theme.lua \
class/vectorimage.lua class/window.lua
-BORDERS = border/default.lua border/cursor.lua
+BORDERS = border/default.lua
HOOKS = hook/ripple.lua
STYLES = style/default.css
FONTS = font/Vera.ttf font/VeraMono.ttf
diff -r 5fc5280440ef -r 766fdd447f58 tek/ui/class/area.lua
--- a/tek/ui/class/area.lua Wed Aug 27 00:48:45 2008 +0200
+++ b/tek/ui/class/area.lua Thu Aug 28 11:32:46 2008 +0200
@@ -103,21 +103,22 @@
-- - {{width}}
--
-- IMPLEMENTS::
--- - Area:askMinMax() - Query minimum and maximum dimensions
--- - Area:checkFocus() - Check if the element can receive the focus
--- - Area:draw() - Draws the element
+-- - Area:askMinMax() - Queries element's minimum and maximum dimensions
+-- - Area:checkFocus() - Checks if the element can receive the focus
+-- - Area:draw() - Paints the element
-- - Area:getElement() - Returns an element's neighbours
--- - Area:getElementByXY() - Check if the element covers a coordinate
--- - Area:hide() - Removes an Area from its Display and Drawable
--- - Area:layout() - Layout the element into a rectangle
--- - Area:markDamage() - Pass a damage rectangle to an element
--- - Area:passMsg() - Filters an input message
--- - Area:punch() - Subtract Element from a [[#tek.lib.region : Region]]
--- - Area:refresh() - Redraws an element
--- - Area:relayout() - Search and relayouts an element
--- - Area:rethinkLayout() - Causes relayout of the Area and its group
--- - Area:setState() - Sets the Background attribute of an element.
--- - Area:show() - Passes an Area a Display and Drawable
+-- - Area:getElementByXY() - Checks if the element covers a coordinate
+-- - Area:hide() - Disconnects the element from a Display and Drawable
+-- - Area:layout() - Layouts the element into a rectangle
+-- - Area:markDamage() - Notifies the element of a damage
+-- - Area:passMsg() - Passes an input message to the element
+-- - Area:punch() - Subtracts the outline of the element from a
+-- [[#tek.lib.region : Region]]
+-- - Area:refresh() - [internal] Repaints the element if necessary
+-- - Area:relayout() - [internal] Relayouts the element if necessary
+-- - Area:rethinkLayout() - Causes a relayout of the element and its group
+-- - Area:setState() - Sets the background attribute of an element
+-- - Area:show() - Connects the element to a Display and Drawable
--
-- OVERRIDES::
-- - Element:cleanup()
diff -r 5fc5280440ef -r 766fdd447f58 tek/ui/class/element.lua
--- a/tek/ui/class/element.lua Wed Aug 27 00:48:45 2008 +0200
+++ b/tek/ui/class/element.lua Thu Aug 28 11:32:46 2008 +0200
@@ -37,10 +37,10 @@
--
-- IMPLEMENTS::
-- - Element:cleanup() - Unlinks the element from its environment
--- - Element:connect() - Connects the element to a parent object
+-- - Element:connect() - Connects the element to a parent element
-- - Element:decodeProperties() - Decodes the element's style attributes
-- - Element:disconnect() - Disconnects the element from its parent
--- - Element:getProperties() - Retrieves style properties
+-- - Element:getProperties() - Retrieves an element's style properties
-- - Element:getProperty() - Retrieves a single style property
-- - Element:setup() - Links the element to its environment
--
@@ -125,7 +125,7 @@ end
end
-------------------------------------------------------------------------------
--- Element:decodeProperties(props): Invokes the element's
+-- Element:decodeProperties(props): [Internal] Invokes the element's
-- Element:getProperties() function, possibly multiple times, passing it
-- (in turn) the decoded properties from the element's {{Style}} attribute,
-- and global properties from one or more style sheets.
diff -r 5fc5280440ef -r 766fdd447f58 tek/ui/class/frame.lua
--- a/tek/ui/class/frame.lua Wed Aug 27 00:48:45 2008 +0200
+++ b/tek/ui/class/frame.lua Thu Aug 28 11:32:46 2008 +0200
@@ -68,8 +68,8 @@
-- - {{border-width}}
--
-- IMPLEMENTS::
--- - Frame:drawBorder() - Draws one of the element's borders
--- - Frame:getBorder() - Returns one of the element's borders
+-- - Frame:drawBorder() - Draws the element's border
+-- - Frame:getBorder() - Queries the element's border
--
-- OVERRIDES::
-- - Element:cleanup()
@@ -98,7 +98,7 @@ local unpack = unpack
local unpack = unpack
module("tek.ui.class.frame", tek.ui.class.area)
-_VERSION = "Frame 5.0"
+_VERSION = "Frame 6.0"
local Frame = _M
More information about the tekui-devel
mailing list