reference monoe.winmain

Lua API Reference

monoe.winmain.title

Changes the title of the main window.

Parameters

NameTypeDescription
titlestringNew window title

monoe.winmain.size

Sets or queries the size of the main window.

Parameters

NameTypeDescription
widthnumber|nilNew width in pixels
heightnumber|nilNew height in pixels

Returns


monoe.winmain.position

Sets or queries the position of the main window.

Parameters

NameTypeDescription
xnumber|nilNew x position
ynumber|nilNew y position

Returns


monoe.winmain.scale

Scales the window.

Parameters

NameTypeDescription
xnumberScale factor X
ynumberScale factor Y

Returns


monoe.winmain.move

Moves the window by a relative offset.

Parameters

NameTypeDescription
dxnumberHorizontal offset
dynumberVertical offset

Returns


monoe.winmain.attach

Attaches an object or its children to the window for rendering.

Parameters

NameTypeDescription
objtableObject with `.uid` or `.root` property

monoe.winmain.center

Returns the center coordinates of the window.

Returns