# Add Rectangle To Region
Grammar — Add a state|Positive/Negative rectangle (minx, miny, maxx, maxy) to r
Flags —Native
|Action
Adds a rectangle to a region.
# Arguments
region
— Regionbool
<preset::Region_State> — Statefixed
— Min Xfixed
— Min Yfixed
— Max Xfixed
— Max Y
Returns — void
native void RegionAddRect(
region r,
bool positive,
fixed minx,
fixed miny,
fixed maxx,
fixed maxy,
);
# Related
Category: Region / Creation
- Convert Circle To Region —
region
— RegionCircle - Convert Rectangle To Region —
region
— RegionRect - Add Circle To Region —
void
— RegionAddCircle - Add Rectangle To Region —
void
— RegionAddRect - Add Region To Region —
void
— RegionAddRegion
# Examples
— None found —