2017-01-10 20:57:02 +00:00
|
|
|
--- A generic window element. Built-in support for minimize, maximize, and close
|
|
|
|
--- buttons, as well as drag-to-resize and drag-to-move. Title bar customizable.
|
2016-08-23 04:22:13 +00:00
|
|
|
--- @classmod window
|
|
|
|
--- @copyright Paul Liverman III (2016)
|
|
|
|
--- @license The MIT License (MIT)
|
|
|
|
|
2016-10-31 05:19:24 +00:00
|
|
|
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={}) =>
|
2016-10-31 05:19:24 +00:00
|
|
|
super @parent, @data
|
|
|
|
|
2016-11-25 03:37:53 +00:00
|
|
|
@data.type = "window"
|
2016-10-31 06:40:40 +00:00
|
|
|
|
2016-08-23 04:22:13 +00:00
|
|
|
--- @todo if data, do stuff about it
|
|
|
|
|
2017-01-10 20:57:02 +00:00
|
|
|
--setSize: =>
|
2016-08-23 04:22:13 +00:00
|
|
|
--do more stuff!
|