Rectangle

constructor()

Allocate a new Rectangle.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.


constructor(scope: <Error class: unknown class>)

Allocate a new Rectangle using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

scope

The AutofreeScope to allocate this structure in.


constructor(x: <Error class: unknown class>, y: <Error class: unknown class>, width: <Error class: unknown class>, height: <Error class: unknown class>)

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

X coordinate of the left side of the rectangle.

y

Y coordinate of the the top side of the rectangle.

width

width of the rectangle.

height

height of the rectangle.


constructor(x: <Error class: unknown class>, y: <Error class: unknown class>, width: <Error class: unknown class>, height: <Error class: unknown class>, scope: <Error class: unknown class>)

Allocate a new Rectangle using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

x

X coordinate of the left side of the rectangle.

y

Y coordinate of the the top side of the rectangle.

width

width of the rectangle.

height

height of the rectangle.

scope

The AutofreeScope to allocate this structure in.


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)