Skip to main content
Module

x/sdl_ts/mod.ts>SDL.Rect

SDL TypeScript bindings.
Go to Latest
class SDL.Rect
implements AllocatableStruct
Re-export
import { SDL } from "https://deno.land/x/sdl_ts@v0.0.1/mod.ts";
const { Rect } = SDL;

Constructors

new
Rect(command: StructCommand)
new
Rect(props: Partial<Rect>)
new
Rect(
x: i32,
y: i32,
w: i32,
h: i32,
)
new
Rect(
_1?: StructCommand | Partial<Rect> | i32,
_2?: i32,
_3?: i32,
_4?: i32,
)

Properties

private
readonly
_view: PlatformDataView<Rect>
readonly
_data: Uint8Array | PointerValue<Rect>
h: i32
w: i32
x: i32
y: i32

Static Properties

SIZE_IN_BYTES: number

Static Methods

of(data: Uint8Array | PointerValue<Rect>): Rect | null