@ahmic/autoit-js
Version:
Node.js bindings for AutoItX3.dll
42 lines (41 loc) • 1.24 kB
TypeScript
import koffi from 'koffi';
/**
* Represents a rectangle with coordinates for the left, top, right, and bottom edges.
*/
export interface IRect {
/**
* The left coordinate of the rectangle. Can be used as the X coordinate of the window/control.
*/
left: number;
/**
* The top coordinate of the rectangle. Can be used as the Y coordinate of the window/control.
*/
top: number;
/**
* The right coordinate of the rectangle. Can be used as the width of the window/control.
*/
right: number;
/**
* The bottom coordinate of the rectangle. Can be used as the height of the window/control.
*/
bottom: number;
}
/**
* Serves as a `RECT` struct compatible object.
*
* @see https://learn.microsoft.com/en-us/windows/win32/api/windef/ns-windef-rect
*/
export declare class Rect implements IRect {
left: number;
top: number;
right: number;
bottom: number;
/**
* Creates a new Rect object with the specified coordinates.
*
* @param rect The coordinates of the rectangle. All properties default to 0.
*/
constructor(rect?: Partial<IRect>);
}
export declare const RECT: koffi.IKoffiCType;
export declare const LPRECT: koffi.IKoffiCType;