Skip to content
M2O Scripting APIScripting reference
Runtime classClient APIGenerated

Render2DNode

Defined in: client/api.d.ts:399

Base handle for one resource-owned native Render2D object.

new Render2DNode(): Render2DNode

Render2DNode

bringToFront(): boolean

Defined in: client/api.d.ts:483

Moves this node to the front of its siblings.

boolean


destroy(): boolean

Defined in: client/api.d.ts:493

Destroys this node and all descendants.

boolean


moveBefore(sibling): boolean

Defined in: client/api.d.ts:478

Moves this node before a sibling.

Render2DNode

boolean


sendToBack(): boolean

Defined in: client/api.d.ts:488

Moves this node behind its siblings.

boolean


setClipRect(left, top, right, bottom): boolean

Defined in: client/api.d.ts:468

Sets the normalized clipping rectangle.

number

number

number

number

boolean


setParent(parent): boolean

Defined in: client/api.d.ts:473

Moves this node under a container or the canvas root.

Render2DContainer | null

boolean

readonly canvasId: number

Defined in: client/api.d.ts:408

Owning canvas identifier.


clipping: boolean

Defined in: client/api.d.ts:443

Node clipping state.


readonly clipRect: Render2DRect

Defined in: client/api.d.ts:463

Current normalized clipping rectangle.


readonly destroyed: boolean

Defined in: client/api.d.ts:423

Whether this handle is no longer valid.


readonly id: number

Defined in: client/api.d.ts:403

Opaque node identifier.


nonOverlapGroup: number

Defined in: client/api.d.ts:458

Native non-overlap group.


readonly parentId: number

Defined in: client/api.d.ts:413

Parent node identifier, or zero for the canvas root.


pixelClipping: boolean

Defined in: client/api.d.ts:448

Pixel clipping state.


position: Vector2

Defined in: client/api.d.ts:433

Normalized position local to the parent.


size: Vector2

Defined in: client/api.d.ts:438

Normalized node size.


readonly type: "container" | "rectangle" | "text" | "texture"

Defined in: client/api.d.ts:418

Native node type.


useAllMonitors: boolean

Defined in: client/api.d.ts:453

Whether the node spans all monitors.


visible: boolean

Defined in: client/api.d.ts:428

Node visibility.