Lua:createRegion
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