aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-04-18 18:37:15 +1000
committerDavid Walter Seikel2014-04-18 18:37:15 +1000
commit7aa6ef6854d69252294394419b6ac3f834bfcd42 (patch)
treec3abe73c7398f20d307d97b33bb68089e3fa732f /ClientHamr
parentClean up test.skang a little. (diff)
downloadSledjHamr-7aa6ef6854d69252294394419b6ac3f834bfcd42.zip
SledjHamr-7aa6ef6854d69252294394419b6ac3f834bfcd42.tar.gz
SledjHamr-7aa6ef6854d69252294394419b6ac3f834bfcd42.tar.bz2
SledjHamr-7aa6ef6854d69252294394419b6ac3f834bfcd42.tar.xz
A few comments++
Diffstat (limited to 'ClientHamr')
-rw-r--r--ClientHamr/GuiLua/GuiLua.c2
-rw-r--r--ClientHamr/GuiLua/skang.lua17
2 files changed, 13 insertions, 6 deletions
diff --git a/ClientHamr/GuiLua/GuiLua.c b/ClientHamr/GuiLua/GuiLua.c
index 27e01d7..3854bdd 100644
--- a/ClientHamr/GuiLua/GuiLua.c
+++ b/ClientHamr/GuiLua/GuiLua.c
@@ -60,7 +60,7 @@ See if I can use LuaJIT FFI here. Since this will be a library, and
60skang apps could be written in C or Lua, perhaps writing this library to 60skang apps could be written in C or Lua, perhaps writing this library to
61be FFI friendly instead of the usual Lua C binding might be the way to 61be FFI friendly instead of the usual Lua C binding might be the way to
62go? LuaJIT is not ready yet, since it needs include files copied into 62go? LuaJIT is not ready yet, since it needs include files copied into
63Lua files, and does not support macros. 63Lua files, and does not support macros, which EFL uses a lot of.
64 64
65For the "GUI hosted in another app" case, we will need some sort of 65For the "GUI hosted in another app" case, we will need some sort of
66internal window manager running in that other app. 66internal window manager running in that other app.
diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua
index 8a882d2..53ba99b 100644
--- a/ClientHamr/GuiLua/skang.lua
+++ b/ClientHamr/GuiLua/skang.lua
@@ -8,6 +8,7 @@ C will let us -
8 Network stuff. No need to look at Lua socket stuff, we have Ecore_Con. 8 Network stuff. No need to look at Lua socket stuff, we have Ecore_Con.
9 Database stuff. No need to look at Lua SQL stuff, we have esskyuehl. Maybe. 9 Database stuff. No need to look at Lua SQL stuff, we have esskyuehl. Maybe.
10 10
11 Actually, we could have the best of both worlds, since it is currently a C / Lua hybrid. B-)
11]] 12]]
12 13
13 14
@@ -669,11 +670,6 @@ end
669local Mum = 670local Mum =
670{ 671{
671--[[ From an email by Mike Pall - 672--[[ From an email by Mike Pall -
672"Important: create the metatable and its metamethods once and reuse
673the _same_ metatable for _every_ instance."
674
675This is for LuaJIT, he's the author, and concerns performance.
676]]
677 673
678__index = function (parent, key) 674__index = function (parent, key)
679 -- This only works for keys that don't exist. By definition a value of nil means it doesn't exist. 675 -- This only works for keys that don't exist. By definition a value of nil means it doesn't exist.
@@ -753,6 +749,14 @@ end,
753 749
754newMum = function () 750newMum = function ()
755 local result = {} 751 local result = {}
752--[[ From an email by Mike Pall -
753"Important: create the metatable and its metamethods once and reuse
754the _same_ metatable for _every_ instance."
755
756This is for LuaJIT, he's the author, and concerns performance.
757
758TODO - Which is the exact opposite of what we are doing. Perhaps we can fix that?
759]]
756 for k, v in pairs(Mum) do 760 for k, v in pairs(Mum) do
757 result[k] = v 761 result[k] = v
758 end 762 end
@@ -1533,6 +1537,9 @@ Alternate plan -
1533 button:bottom(-10):right(5) -- 10 pixels below the bottom of button, 5 pixels to the right of the right edge of button. 1537 button:bottom(-10):right(5) -- 10 pixels below the bottom of button, 5 pixels to the right of the right edge of button.
1534 button:width("12") -- 12 characters longer than the width of button. 1538 button:width("12") -- 12 characters longer than the width of button.
1535 1539
1540 But then how do we store that so that things move when the thing they are
1541 relative to moves?
1542
1536 1543
1537 Squeal - 1544 Squeal -
1538 Squeal was the database driver interface for SquealStuff, the database 1545 Squeal was the database driver interface for SquealStuff, the database