Skip to main content
Module

x/sdl2/mod.ts>Rect

SDL2 module for Deno
Go to Latest
class Rect
import { Rect } from "https://deno.land/x/sdl2@0.7.0/mod.ts";

A structure that contains the definition of a rectangle, with the origin at the upper left.

Constructors

new
Rect(
x: number,
y: number,
w: number,
h: number,
)

Properties

readonly
height

The height of the rectangle.

readonly
width

The width of the rectangle.

readonly
x

The x coordinate of the rectangle.

readonly
y

The y coordinate of the rectangle.

[_raw]: Uint32Array