Module flower.Window
The Window class.
Extends:
Info:
- Release: V3.0.0
- Author: Makoto
Functions
Window:openWindow (title, width, height, scale) | Open the window. |
Window:setDefaultWindowSize (targetDevice, landscape, scaleMode) | Set the size of the assumed device. |
Window:updateWindowSize (width, height, scale) | Update the screen and view size. |
Window:onResize (width, height) | Event handler that is called when resizing Window. |
Functions
- Window:openWindow (title, width, height, scale)
-
Open the window.
Initializes the library.
Parameters:
- title (Option)Title of the window
- width (Option)Width of the window
- height (Option)Height of the window
- scale (Option)Scale of the Viewport to the Screen
- Window:setDefaultWindowSize (targetDevice, landscape, scaleMode)
-
Set the size of the assumed device.
Parameters:
- targetDevice
- landscape
- scaleMode
- Window:updateWindowSize (width, height, scale)
-
Update the screen and view size.
Please call if you have to recalculate.
Parameters:
- width Width of the screen
- height Height of the screen
- scale (Option)Scale of the Viewport to the Screen
- Window:onResize (width, height)
-
Event handler that is called when resizing Window.
Parameters:
- width Width of window.
- height Height of window.