Feedback
- press ENTER to search or ESC to cancel
Table of content
Globals namespaces
Constants
- Align
- AniDir
- BlendMode
- BrushPattern
- BrushType
- ColorMode
- FilterChannels
- Ink
- MouseButton
- MouseCursor
- RangeType
- SelectionMode
- SpriteSheetDataFormat
- SpriteSheetType
- WebSocketMessageType
Classes/objects
- Brush
- Cel
- Color
- ColorSpace
- Dialog
- Editor
- Events
- Frame
- GraphicsContext
- Image
- ImageSpec
- KeyEvent
- Layer
- MouseEvent
- Palette
- Plugin
- Point
- Properties
- Range
- Rectangle
- Selection
- Site
- Size
- Slice
- Sprite
- Tag
- Tile
- Tileset
- Timer
- Tool
- TouchEvent
- Version
- WebSocket
- Window
Window
References a window of the program. At the moment we can access only the main window using app.window.
Window.width
local width = app.window.width
Returns the width of the main window.
Window.height
local height = app.window.height
Returns the height of the main window.
Window.events
Returns the Events
object to associate functions
that can act like listeners of specific Window
events. E.g.
app.window.events:on('resize',
function(ev)
print('Now the main window is', ev.width, ev.height)
end)
Available events for a Window
:
'resize'
: When the user resizes the window.