Skip to content

BitmapRect ​

The rectangle Bitmap.contentBounds returns.

Always available

No import needed. These names are in scope in every file.

BitmapRect struct ​

ts
struct BitmapRect

Axis-aligned bounding rectangle in whole pixels, returned by Bitmap.contentBounds.

BitmapRect.x ​

ts
x: int

Left edge in pixels.

BitmapRect.y ​

ts
y: int

Top edge in pixels.

BitmapRect.w ​

ts
w: int

Width in pixels.

BitmapRect.h ​

ts
h: int

Height in pixels.

Other members of BitmapRect ​

ts
operator eq(other: BitmapRect): boolean
toString(): string

Generated from lang/bitmaprect/index.tks in the ThicketScript repository.