Pop.Box/elements/window.moon

19 lines
526 B
Plaintext
Raw Normal View History

2016-08-23 04:22:13 +00:00
--- A generic window element. Supports resizing, minimizing(?), and closing.
--- @classmod window
--- @copyright Paul Liverman III (2016)
--- @license The MIT License (MIT)
element = require "#{(...)\sub 1, -7}/element"
class window extends element
2016-08-23 04:22:13 +00:00
--- Constructor expects nothing, or a data table describing it.
new: (@parent, @data={}) =>
super @parent, @data
@data.type = "window" if @data.type == "element"
2016-08-23 04:22:13 +00:00
--- @todo if data, do stuff about it
setSize: =>
--do more stuff!