Skip to content

WindowHandle

Defined in: shared/types.ts:603

Window handle returned by useCurrentWindow hook

readonly bounds: Bounds

Defined in: shared/types.ts:623

Current bounds


readonly id: string

Defined in: shared/types.ts:605

Unique window identifier


readonly isFocused: boolean

Defined in: shared/types.ts:611

Current focused state


readonly isFullscreen: boolean

Defined in: shared/types.ts:620

Current fullscreen state


readonly isMaximized: boolean

Defined in: shared/types.ts:614

Current maximized state


readonly isMinimized: boolean

Defined in: shared/types.ts:617

Current minimized state


readonly isReady: boolean

Defined in: shared/types.ts:608

Whether the window is ready and methods are operational

blur(): void

Defined in: shared/types.ts:629

Blur/unfocus the window

void


close(): void

Defined in: shared/types.ts:644

Close the window (respects closable prop)

void


enterFullscreen(): void

Defined in: shared/types.ts:656

Enter fullscreen

void


exitFullscreen(): void

Defined in: shared/types.ts:659

Exit fullscreen

void


focus(): void

Defined in: shared/types.ts:626

Focus the window

void


forceClose(): void

Defined in: shared/types.ts:647

Force close the window (bypasses closable)

void


maximize(): void

Defined in: shared/types.ts:635

Maximize the window

void


minimize(): void

Defined in: shared/types.ts:632

Minimize the window

void


setBounds(bounds): void

Defined in: shared/types.ts:650

Set window bounds

Partial<Bounds>

void


setTitle(title): void

Defined in: shared/types.ts:653

Set window title

string

void


toggleMaximize(): void

Defined in: shared/types.ts:641

Toggle maximize state

void


unmaximize(): void

Defined in: shared/types.ts:638

Unmaximize the window

void