diff options
author | David Walter Seikel | 2014-05-11 05:40:27 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-11 05:40:27 +1000 |
commit | 062cfdcc1b213d5cecd907a367dee51046e2eb7b (patch) | |
tree | d9df5b851518cad53452a611f17604e62033d218 /src/GuiLua | |
parent | Add internal window title bar, and dragging them around. Plus some related c... (diff) | |
download | SledjHamr-062cfdcc1b213d5cecd907a367dee51046e2eb7b.zip SledjHamr-062cfdcc1b213d5cecd907a367dee51046e2eb7b.tar.gz SledjHamr-062cfdcc1b213d5cecd907a367dee51046e2eb7b.tar.bz2 SledjHamr-062cfdcc1b213d5cecd907a367dee51046e2eb7b.tar.xz |
Add a rectangle to pad out those that don't use the winFang box, and have them make their widdgets relative to that.
Diffstat (limited to 'src/GuiLua')
-rw-r--r-- | src/GuiLua/GuiLua.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/GuiLua/GuiLua.c b/src/GuiLua/GuiLua.c index 09c3fe9..2e16927 100644 --- a/src/GuiLua/GuiLua.c +++ b/src/GuiLua/GuiLua.c | |||
@@ -175,10 +175,13 @@ static int widget(lua_State *L) | |||
175 | winFang *win = NULL; | 175 | winFang *win = NULL; |
176 | char *type = "button"; | 176 | char *type = "button"; |
177 | char *title = ":"; | 177 | char *title = ":"; |
178 | int x = 1, y = 1, w = WIDTH/3, h = HEIGHT/3; | 178 | int x = 1, y = 1, w = WIDTH/3, h = HEIGHT/3, cy; |
179 | 179 | ||
180 | pull_lua(L, 1, "*window $type $title %x %y %w %h", &win, &type, &title, &x, &y, &w, &h); | 180 | pull_lua(L, 1, "*window $type $title %x %y %w %h", &win, &type, &title, &x, &y, &w, &h); |
181 | 181 | ||
182 | evas_object_geometry_get(win->content, NULL, &cy, NULL, NULL); | ||
183 | y += cy; | ||
184 | |||
182 | // Poor mans introspection, until I write real introspection into EFL. | 185 | // Poor mans introspection, until I write real introspection into EFL. |
183 | // TODO - The alternative is to just lookup the ELM_*_CLASS in a hash table? | 186 | // TODO - The alternative is to just lookup the ELM_*_CLASS in a hash table? |
184 | if (strcmp(type, "button") == 0) | 187 | if (strcmp(type, "button") == 0) |