/** * A rectangle with x and y as start points inside the canvas, and width / height to define the size. */ export declare class Rect { x: number; y: number; width: number; height: number; constructor(x?: number, y?: number, width?: number, height?: number); /** * Set the position of the rectangle in pixel. */ setPosition(x: number, y: number): void; /** * Set the entire rect. */ setRect(x: number, y: number, width: number, height: number): void; /** * Check if a coordinate is inside the rectangle. */ pointInRect(x: number, y: number): boolean; }