window.js
Creates a Windows
Objects
Creates a window. Its main div is accessible as menu.div
, its content as menu.content
.
The type can contain:
- OAT.WindowData.TYPE_WIN
- OAT.WindowData.TYPE_MAC
- OAT.WindowData.TYPE_ROUND
- OAT.WindowData.TYPE_RECT
- OAT.WindowData.TYPE_AUTO
Argument paramsObj has the following properties:
- min - should the 'minimize' button be present?
- max - should the 'maximize' button be present?
- close - should the 'close' button be present?
- move - should the window be movable?
- resize - should the window be resizable?
- x - left coordinate
- y - top coordinate
- w - width
- h - height
- title - window's title
- magnetsH - array of elements to horizontally snap to
- magnetsV - array of elements to vertically snap to