Skip to content

WindowHandle

Defined in: shared/types.ts:551

Window handle returned by useCurrentWindow hook

readonly bounds: Bounds

Defined in: shared/types.ts:571

Current bounds


readonly id: string

Defined in: shared/types.ts:553

Unique window identifier


readonly isFocused: boolean

Defined in: shared/types.ts:559

Current focused state


readonly isFullscreen: boolean

Defined in: shared/types.ts:568

Current fullscreen state


readonly isMaximized: boolean

Defined in: shared/types.ts:562

Current maximized state


readonly isMinimized: boolean

Defined in: shared/types.ts:565

Current minimized state


readonly isReady: boolean

Defined in: shared/types.ts:556

Whether the window is ready and methods are operational

blur(): void

Defined in: shared/types.ts:577

Blur/unfocus the window

void


close(): void

Defined in: shared/types.ts:592

Close the window (respects closable prop)

void


enterFullscreen(): void

Defined in: shared/types.ts:604

Enter fullscreen

void


exitFullscreen(): void

Defined in: shared/types.ts:607

Exit fullscreen

void


focus(): void

Defined in: shared/types.ts:574

Focus the window

void


forceClose(): void

Defined in: shared/types.ts:595

Force close the window (bypasses closable)

void


maximize(): void

Defined in: shared/types.ts:583

Maximize the window

void


minimize(): void

Defined in: shared/types.ts:580

Minimize the window

void


setBounds(bounds): void

Defined in: shared/types.ts:598

Set window bounds

Partial<Bounds>

void


setTitle(title): void

Defined in: shared/types.ts:601

Set window title

string

void


toggleMaximize(): void

Defined in: shared/types.ts:589

Toggle maximize state

void


unmaximize(): void

Defined in: shared/types.ts:586

Unmaximize the window

void