import { XYBounds } from './bounds'; import { ScreenXY } from './screen-xy'; /** * 屏幕坐标范围 * @remark Represents a rectangular area in pixel coordinates. */ export declare class ScreenBounds extends XYBounds { /** * 最小屏幕坐标 * @remark The top left corner of the rectangle. */ min: ScreenXY; /** * 最大屏幕坐标 * @remark The bottom right corner of the rectangle. */ max: ScreenXY; /** * 构造函数 * @param {ScreenXY | ScreenXY[]} a - 屏幕坐标或屏幕坐标数组 * @param {ScreenXY} b - 屏幕坐标 */ constructor(a?: ScreenXY | ScreenXY[], b?: ScreenXY); /** * 获取中心点 * @param {boolean} round - 是否取整 * @return {ScreenXY} 返回中心点 */ getCenter(round?: boolean): ScreenXY; /** * 获取左下角 * @return {ScreenXY} 返回左下角 */ getBottomLeft(): ScreenXY; /** * 获取右上角 * @return {ScreenXY} 返回右上角 */ getTopRight(): ScreenXY; /** * 缓冲范围 * @param {number} pixel - 缓冲像素 */ pad(pixel: number): void; }