Imperivm Modding WikiCKS · FORMATS · GUIDESEspañol
CKS TYPECKS reference

rect

Browse its members and the signatures that accept or return this type.

12 members3 return it10 accept it

Members

12

Expand a member to read its notes or open its full entry. Each overload keeps its own identity.

MemberSignature and description
left

Returns the first dword of a rect value.

Open full entry →
rect
int rect::left()

Returns the first dword of a rect value.

top

Returns the second dword of a rect value.

Open full entry →
rect
int rect::top()

Returns the second dword of a rect value.

right

Returns the third dword of a rect value.

Open full entry →
rect
int rect::right()

Returns the third dword of a rect value.

bottom

Returns the fourth dword of a rect value.

Open full entry →
rect
int rect::bottom()

Returns the fourth dword of a rect value.

width

Returns the inclusive width: right minus left plus one.

Open full entry →
rect
int rect::width()

Returns the inclusive width: right minus left plus one.

height

Returns the height of the rectangle, including its boundaries.

Open full entry →
rect
int rect::height()

Returns the height of the rectangle, including its boundaries.

left

Returns an eight-byte reference pair unchanged for point x and rect left.

Open full entry →
rect
int& rect::left()

Returns an eight-byte reference pair unchanged for point x and rect left.

top

Preserves the first dword of an encoded reference pair and adds four to its second dword for point y and rect top.

Open full entry →
rect
int& rect::top()

Preserves the first dword of an encoded reference pair and adds four to its second dword for point y and rect top.

right

Advances a rect reference address by eight bytes.

Open full entry →
rect
int& rect::right()

Advances a rect reference address by eight bytes.

bottom

Advances a rect reference address by twelve bytes.

Open full entry →
rect
int& rect::bottom()

Advances a rect reference address by twelve bytes.

Set

rect::Set pops four integer coordinates and a rect reference pair, writing them into memory in standard left, top, right, bottom offset order.

Open full entry →
rect
void rect::Set(int, int, int, int)

rect::Set pops four integer coordinates and a rect reference pair, writing them into memory in standard left, top, right, bottom offset order.

Center

Returns the integer center point of the rectangle.

Open full entry →
rect
point rect::Center()

Returns the integer center point of the rectangle.

Return this type

3
MemberSignature and description
IntersectRectsGlobalrect IntersectRects(rect, rect)

IntersectRects returns componentwise signed max,max,min,min of its two four-dword rectangles.

AddRectsGlobalrect AddRects(rect, rect)

Computes the union of two rectangles with signed integer coordinates.

GetMapRectGlobalrect GetMapRect()

Returns the map bounds as a rectangle, in left, top, right, bottom order.

Accept this type

10
MemberSignature and description
point::InRectpointbool point::InRect(rect)

Checks whether the point lies inside the rectangle, including its boundaries.

point::IntoRectpointvoid point::IntoRect(rect)

Limits the point's coordinates to the rectangle's boundaries.

IntersectRectsGlobalrect IntersectRects(rect, rect)

IntersectRects returns componentwise signed max,max,min,min of its two four-dword rectangles.

AddRectsGlobalrect AddRects(rect, rect)

Computes the union of two rectangles with signed integer coordinates.

=Globalvoid =(rect&, rect)Description pending

Description pending.

==Globalbool ==(rect, rect)Description pending

Description pending.

!=Globalbool !=(rect, rect)Description pending

Description pending.

ObjsInRectGlobalQuery ObjsInRect(rect, str)

Builds a query from an inclusive rectangle and a resolved script-class filter.

SetMiniMapRectGlobalvoid SetMiniMapRect(rect)

Consumes a script rectangle, narrows its coordinates to words, shifts/clamps it against native bounds, and updates an existing minimap.

_AdvPlaceAreaRectGlobalvoid _AdvPlaceAreaRect(str, rect, str, str)

Spawns an AdvArea and forwards rectangle, name and string setup.

Coverage and limits

12 / 12 members with a published description.

These lists come from published signatures. “Accept” counts explicit parameters, excluding the method receiver; reference variants (&) are included. No inheritance hierarchy is asserted. Undocumented names, units and effects remain unresolved.