diff options
author | chai <chaifix@163.com> | 2018-09-06 20:35:03 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-09-06 20:35:03 +0800 |
commit | e8c0a474ef001caaede8e955d1f99f3d6c542e8d (patch) | |
tree | 9aa3f1213ebc5708bbaf96f1bc6f43125e228f85 /JGUI/JGUI.lua | |
parent | ab354cd16eb42e897b1b1ea09c39ddfd8b8c1ab0 (diff) |
*update
Diffstat (limited to 'JGUI/JGUI.lua')
-rw-r--r-- | JGUI/JGUI.lua | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/JGUI/JGUI.lua b/JGUI/JGUI.lua new file mode 100644 index 0000000..6f82896 --- /dev/null +++ b/JGUI/JGUI.lua @@ -0,0 +1,36 @@ + +-- panel +local JGUI = {} + +local Widget = { + -- common properties + name, -- name + x, y, width, height, -- boundary + swallow, -- swallow event or not by default + -- event callbacks + onClick, -- clicked callback + onHover, -- hover callback + -- common functions + onEvent, +} +function Widget.onEvent(clicked, ) + +end + +local Panel = { + widgets = {}, +} + + +------------------------------------ +-- +------------------------------------ +JGUI.newButton = function() + +end + +JGUI.newPanel = function() + +end + + |