Skip to content
M2O Scripting APIScripting reference
Data shapeClient APIGenerated

Render2DNode

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

Base handle for one resource-owned native Render2D object.

bringToFront(): boolean

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

Moves this node to the front of its siblings.

boolean


destroy(): boolean

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

Destroys this node and all descendants.

boolean


moveBefore(sibling): boolean

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

Moves this node before a sibling.

Render2DNode

boolean


sendToBack(): boolean

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

Moves this node behind its siblings.

boolean


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

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

Sets the normalized clipping rectangle.

number

number

number

number

boolean


setParent(parent): boolean

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

Moves this node under a container or the canvas root.

Render2DContainer | null

boolean

readonly canvasId: number

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

Owning canvas identifier.


clipping: boolean

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

Node clipping state.


readonly clipRect: Render2DRect

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

Current normalized clipping rectangle.


readonly destroyed: boolean

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

Whether this handle is no longer valid.


readonly id: number

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

Opaque node identifier.


nonOverlapGroup: number

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

Native non-overlap group.


readonly parentId: number

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

Parent node identifier, or zero for the canvas root.


pixelClipping: boolean

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

Pixel clipping state.


position: Vector2

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

Normalized position local to the parent.


size: Vector2

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

Normalized node size.


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

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

Native node type.


useAllMonitors: boolean

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

Whether the node spans all monitors.


visible: boolean

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

Node visibility.