Difference between revisions of "Lua:createRegion"
Jump to navigation
Jump to search
(Initial page creation.) |
m (Added related function template.) |
||
| Line 21: | Line 21: | ||
===Examples=== | ===Examples=== | ||
| − | < | + | <syntaxhighlight lang="lua" line> |
local region = createRegion() | local region = createRegion() | ||
region.addRectangle(0, 0, 200, 100) | region.addRectangle(0, 0, 200, 100) | ||
| − | </ | + | </syntaxhighlight> |
{{LuaSeeAlso}} | {{LuaSeeAlso}} | ||
| + | |||
| + | {{Creation}} | ||
Latest revision as of 23:56, 26 June 2026
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]
1 local region = createRegion()
2 region.addRectangle(0, 0, 200, 100)