Lua:createRegion

From Cheat Engine
Revision as of 18:53, 23 June 2026 by Leunsel (talk | contribs) (Initial page creation.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

Parameter Type Description
None This function does not take parameters.

Returns

Region — A new, empty Region object.

Examples

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

See Also

Main Pages