-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.d.ts
More file actions
39 lines (33 loc) · 1.07 KB
/
index.d.ts
File metadata and controls
39 lines (33 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// winf.d.ts
interface Rect {
x: number;
y: number;
width: number;
height: number;
}
type WindowId = number;
declare module "winf" {
/**
* Returns a list of all windows that are open and visible on the system.
* @returns A list of numeric window ids.
*/
export function listWindows(): WindowId[];
/**
* Returns the position and dimensions of a given window.
* @param window - The window to get information for.
* @returns The position and dimensions of the window.
*/
export function windowRect(window: WindowId): Rect;
/**
* Returns the title of a given window, otherwise `null`.
* @param window - The window to get the title for.
* @returns The title of the window or `null` if not available.
*/
export function windowTitle(window: WindowId): string | null;
/**
* Returns a boolean determining if a window is full screen.
* @param window - The window to check for full-screen status.
* @returns `true` if the window is full screen, otherwise `false`.
*/
export function isWindowFullScreen(window: WindowId): boolean;
}