2024-07-12 13:51:39 +00:00
|
|
|
import type { fdOutgoingPosition } from '../fd';
|
2024-08-15 02:43:02 +00:00
|
|
|
declare class Dimensions {
|
|
|
|
width: number;
|
|
|
|
height: number;
|
|
|
|
constructor(width: number, height: number);
|
|
|
|
getRatio(): number;
|
|
|
|
}
|
2024-07-12 13:51:39 +00:00
|
|
|
export declare class Display {
|
|
|
|
private screen;
|
|
|
|
private source;
|
|
|
|
private display;
|
|
|
|
private offset;
|
|
|
|
constructor(width: number, height: number);
|
2024-08-09 20:20:07 +00:00
|
|
|
setOffsetX(x: number): void;
|
|
|
|
setOffsetY(y: number): void;
|
2024-07-12 13:51:39 +00:00
|
|
|
setSource(width: number, height: number): void;
|
|
|
|
getDimensions(): fdOutgoingPosition;
|
2024-08-15 02:43:02 +00:00
|
|
|
getScreen(): Dimensions;
|
2024-08-16 04:52:46 +00:00
|
|
|
getSource(): Dimensions;
|
2024-07-12 13:51:39 +00:00
|
|
|
}
|
2024-08-15 02:43:02 +00:00
|
|
|
export type { Dimensions };
|