Layout functions

A layout represents a layout in the project at runtime. Only one layout can be running at a time.

Layout properties

layout.runtime
A reference back to the runtime.

layout.event_sheet
A reference to the layout's event sheet, or null if it does not have one.

layout.name
The layout's name.

layout.width
layout.height
The size of the layout, in pixels.

layout.unbounded_scrolling
A boolean indicating the 'unbounded scrolling' setting.

layout.layers[]
An array of layers on the layout.

Layout functions

layout.scrollToX(x)
layout.scrollToY(y)
Scroll the layout to the given coordinates.

Tags: