diff --git a/docs/index.html b/docs/index.html index b77e276..b01546b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -84,7 +84,7 @@
generated by LDoc 1.4.3 -Last updated 2017-04-13 08:11:30 +Last updated 2017-04-13 14:28:39
diff --git a/docs/modules/Element.html b/docs/modules/Element.html index 7de58d4..7ad5fd8 100644 --- a/docs/modules/Element.html +++ b/docs/modules/Element.html @@ -491,7 +491,7 @@
generated by LDoc 1.4.3 -Last updated 2017-04-13 08:11:30 +Last updated 2017-04-13 14:28:39
diff --git a/docs/modules/main.html b/docs/modules/main.html index f2e7c8e..e19e770 100644 --- a/docs/modules/main.html +++ b/docs/modules/main.html @@ -105,7 +105,7 @@
generated by LDoc 1.4.3 -Last updated 2017-04-13 08:11:30 +Last updated 2017-04-13 14:28:39
diff --git a/docs/modules/pop.html b/docs/modules/pop.html index 6d3054c..fc77f12 100644 --- a/docs/modules/pop.html +++ b/docs/modules/pop.html @@ -758,7 +758,7 @@ table.insert element.parent, element.parent\removeChild(element),
generated by LDoc 1.4.3 -Last updated 2017-04-13 08:11:30 +Last updated 2017-04-13 14:28:39
diff --git a/docs/modules/util.html b/docs/modules/util.html index f6547a6..b7eb359 100644 --- a/docs/modules/util.html +++ b/docs/modules/util.html @@ -126,7 +126,7 @@
generated by LDoc 1.4.3 -Last updated 2017-04-13 08:11:30 +Last updated 2017-04-13 14:28:39
diff --git a/elements/element.lua b/elements/element.lua index 2bfa6d6..0b5685c 100644 --- a/elements/element.lua +++ b/elements/element.lua @@ -75,6 +75,9 @@ do end return self end, + getPosition = function(self) + return self.data.x, self.data.y + end, setSize = function(self, w, h) if w then self.data.w = w diff --git a/elements/element.moon b/elements/element.moon index 58028ba..3d16ba1 100644 --- a/elements/element.moon +++ b/elements/element.moon @@ -96,6 +96,11 @@ class element return @ + --- @todo doc me + --- @todo rewrite me to return value based on alignment instead of just x/y + getPosition: => + return @data.x, @data.y + --- Sets an element's width/height. Fixes alignment if needed. --- @tparam integer w[opt] Width. --- @tparam integer h[opt] Height.