Lua:createRegion

From Cheat Engine
Jump to navigation Jump to search

<> Reference

function createRegion() : Region

Creates an empty Region object.

Use a Region to build a custom window shape or clipping area, for example by adding rectangles or polygons before assigning it to a control.

Function Parameters[edit]

Parameter Type Description
None This function does not take parameters.

Returns[edit]

Region — A new, empty Region object.

Examples[edit]

local region = createRegion()
region.addRectangle(0, 0, 200, 100)

See Also[edit]

Main Pages