2024-07-12 13:51:39 +00:00
|
|
|
import type { fdOutgoingPosition } from '../fd';
|
2024-10-22 03:51:38 +00:00
|
|
|
export declare class Dimensions {
|
2024-08-15 02:43:02 +00:00
|
|
|
width: number;
|
|
|
|
height: number;
|
|
|
|
constructor(width: number, height: number);
|
|
|
|
getRatio(): number;
|
|
|
|
}
|
2024-10-22 19:04:25 +00:00
|
|
|
interface Offset {
|
|
|
|
x: number;
|
|
|
|
y: 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-10-22 19:04:25 +00:00
|
|
|
setWidth(width: number): void;
|
|
|
|
setHeight(height: number): void;
|
2024-07-12 13:51:39 +00:00
|
|
|
setSource(width: number, height: number): void;
|
2024-10-22 19:04:25 +00:00
|
|
|
getOutgoingPosition(): fdOutgoingPosition;
|
|
|
|
getDimensions(): Dimensions;
|
|
|
|
getOffset(): Offset;
|
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-10-22 19:04:25 +00:00
|
|
|
export type { Offset };
|