Rectangle
Allocate a new Rectangle.
This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.
Allocate a new Rectangle using the provided AutofreeScope.
The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped
.
Parameters
The AutofreeScope to allocate this structure in.
Allocate a new Rectangle.
This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.
Parameters
X coordinate of the left side of the rectangle.
Y coordinate of the the top side of the rectangle.
width of the rectangle.
height of the rectangle.
Allocate a new Rectangle using the provided AutofreeScope.
The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped
.
Parameters
X coordinate of the left side of the rectangle.
Y coordinate of the the top side of the rectangle.
width of the rectangle.
height of the rectangle.
The AutofreeScope to allocate this structure in.