diff options
| author | ruki <[email protected]> | 2017-12-23 00:46:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-12-22 22:39:18 +0800 |
| commit | 8e249fefd8265911fe4fe8ef72e489cbc8e326eb (patch) | |
| tree | 39c8fa6e7b2bdb74a5bd98d77900849fab739061 /tests/ui/hello.lua | |
| parent | 9e2b084be73bc0b966c2c43f73403703d64b7228 (diff) | |
import some ui modules
Diffstat (limited to 'tests/ui/hello.lua')
| -rw-r--r-- | tests/ui/hello.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/hello.lua b/tests/ui/hello.lua index 4d3dcbc84..1691d6aee 100644 --- a/tests/ui/hello.lua +++ b/tests/ui/hello.lua @@ -24,7 +24,9 @@ -- imports import("core.ui.log") +import("core.ui.rect") import("core.ui.view") +import("core.ui.label") import("core.ui.event") import("core.ui.application") @@ -39,6 +41,9 @@ function hello:init() -- init title self:menubar():title_set("Menu Bar (Hello)") + + -- add title label + self:desktop():insert(label:new("title", rect {0, 1, 20, 2}, "hello xmake!")) end -- on event |
