-- 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