PooledWindowProps
Defined in: renderer/PooledWindow.tsx:143
Extends
Section titled “Extends”Omit<BaseWindowProps,PoolExcludedProps>
Properties
Section titled “Properties”alwaysOnTop?
Section titled “alwaysOnTop?”
optionalalwaysOnTop:boolean|AlwaysOnTopLevel
Defined in: shared/types.ts:484
Whether the window should always be on top.
Inherited from
Section titled “Inherited from”backgroundColor?
Section titled “backgroundColor?”
optionalbackgroundColor:string
Defined in: shared/types.ts:454
Background color
Inherited from
Section titled “Inherited from”center?
Section titled “center?”
optionalcenter:boolean
Defined in: shared/types.ts:422
Center the window on creation. Default: true if no x/y specified.
Inherited from
Section titled “Inherited from”children
Section titled “children”children:
ReactNode
Defined in: renderer/PooledWindow.tsx:147
Content to render inside the window
closable?
Section titled “closable?”
optionalclosable:boolean
Defined in: shared/types.ts:362
Whether the user can close the window. Default: true. When false, the close button is hidden/disabled.
Inherited from
Section titled “Inherited from”defaultHeight?
Section titled “defaultHeight?”
optionaldefaultHeight:number
Defined in: shared/types.ts:370
Initial height. Only applied on window creation.
Inherited from
Section titled “Inherited from”defaultWidth?
Section titled “defaultWidth?”
optionaldefaultWidth:number
Defined in: shared/types.ts:367
Initial width. Only applied on window creation.
Inherited from
Section titled “Inherited from”defaultX?
Section titled “defaultX?”
optionaldefaultX:number
Defined in: shared/types.ts:373
Initial x position. Only applied on window creation.
Inherited from
Section titled “Inherited from”defaultY?
Section titled “defaultY?”
optionaldefaultY:number
Defined in: shared/types.ts:376
Initial y position. Only applied on window creation.
Inherited from
Section titled “Inherited from”focusable?
Section titled “focusable?”
optionalfocusable:boolean
Defined in: shared/types.ts:481
Whether the window is focusable. Default: true.
Inherited from
Section titled “Inherited from”fullscreen?
Section titled “fullscreen?”
optionalfullscreen:boolean
Defined in: shared/types.ts:495
Enter/exit fullscreen mode
Inherited from
Section titled “Inherited from”fullscreenable?
Section titled “fullscreenable?”
optionalfullscreenable:boolean
Defined in: shared/types.ts:498
Whether the window can enter fullscreen. Default: true.
Inherited from
Section titled “Inherited from”height?
Section titled “height?”
optionalheight:number
Defined in: shared/types.ts:390
Controlled height. Changes will resize the window. Use with onBoundsChange for two-way sync.
Inherited from
Section titled “Inherited from”ignoreMouseEvents?
Section titled “ignoreMouseEvents?”
optionalignoreMouseEvents:boolean
Defined in: shared/types.ts:506
Ignore mouse events (click-through window)
Inherited from
Section titled “Inherited from”maxHeight?
Section titled “maxHeight?”
optionalmaxHeight:number
Defined in: shared/types.ts:419
Maximum height constraint
Inherited from
Section titled “Inherited from”maximizable?
Section titled “maximizable?”
optionalmaximizable:boolean
Defined in: shared/types.ts:478
Whether the window can be maximized. Default: true.
Inherited from
Section titled “Inherited from”maxWidth?
Section titled “maxWidth?”
optionalmaxWidth:number
Defined in: shared/types.ts:413
Maximum width constraint
Inherited from
Section titled “Inherited from”minHeight?
Section titled “minHeight?”
optionalminHeight:number
Defined in: shared/types.ts:416
Minimum height constraint
Inherited from
Section titled “Inherited from”minimizable?
Section titled “minimizable?”
optionalminimizable:boolean
Defined in: shared/types.ts:475
Whether the window can be minimized. Default: true.
Inherited from
Section titled “Inherited from”minWidth?
Section titled “minWidth?”
optionalminWidth:number
Defined in: shared/types.ts:410
Minimum width constraint
Inherited from
Section titled “Inherited from”movable?
Section titled “movable?”
optionalmovable:boolean
Defined in: shared/types.ts:472
Whether the window is movable. Default: true.
Inherited from
Section titled “Inherited from”
optionalname:string
Defined in: shared/types.ts:536
Debug name for DevTools and error messages. Useful for identifying windows in multi-window apps.
Inherited from
Section titled “Inherited from”onBlur()?
Section titled “onBlur()?”
optionalonBlur: () =>void
Defined in: shared/types.ts:577
Fired when the window loses focus
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”onBoundsChange()?
Section titled “onBoundsChange()?”
optionalonBoundsChange: (bounds) =>void
Defined in: shared/types.ts:405
Callback fired when window bounds change (resize or move). Debounced internally.
Parameters
Section titled “Parameters”bounds
Section titled “bounds”Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”onClose()?
Section titled “onClose()?”
optionalonClose: () =>void
Defined in: shared/types.ts:580
Fired when the window is destroyed (for any reason — user close, programmatic, unmount)
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”onDisplayChange()?
Section titled “onDisplayChange()?”
optionalonDisplayChange: (display) =>void
Defined in: shared/types.ts:589
Fired when window moves to a different display
Parameters
Section titled “Parameters”display
Section titled “display”Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”onEnterFullscreen()?
Section titled “onEnterFullscreen()?”
optionalonEnterFullscreen: () =>void
Defined in: shared/types.ts:583
Fired when window enters fullscreen
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”onExitFullscreen()?
Section titled “onExitFullscreen()?”
optionalonExitFullscreen: () =>void
Defined in: shared/types.ts:586
Fired when window exits fullscreen (maps to Electron’s ‘leave-full-screen’ event)
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”onFocus()?
Section titled “onFocus()?”
optionalonFocus: () =>void
Defined in: shared/types.ts:574
Fired when the window gains focus
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”onMaximize()?
Section titled “onMaximize()?”
optionalonMaximize: () =>void
Defined in: shared/types.ts:562
Fired when window is maximized
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”onMinimize()?
Section titled “onMinimize()?”
optionalonMinimize: () =>void
Defined in: shared/types.ts:568
Fired when window is minimized
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”onReady()?
Section titled “onReady()?”
optionalonReady: () =>void
Defined in: shared/types.ts:559
Fired when window is ready and content is mounted
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”onRestore()?
Section titled “onRestore()?”
optionalonRestore: () =>void
Defined in: shared/types.ts:571
Fired when window is restored from minimized
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”onUnmaximize()?
Section titled “onUnmaximize()?”
optionalonUnmaximize: () =>void
Defined in: shared/types.ts:565
Fired when window is unmaximized
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”onUserClose()?
Section titled “onUserClose()?”
optionalonUserClose: () =>void
Defined in: shared/types.ts:356
Called when the user initiates a close (e.g., clicks the X button).
Fires during Electron’s close event — the window is about to close
but hasn’t yet. Use this to sync your open state back to false.
The window will close on its own; your open={false} is for your
state consistency, not to drive the close.
This is a notification, not an interceptor. To prevent close, set
closable={false} proactively (e.g., closable={!hasUnsavedChanges}).
onClose (a separate callback) fires after the window is fully
destroyed, for any reason (user, programmatic, unmount).
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”opacity?
Section titled “opacity?”
optionalopacity:number
Defined in: shared/types.ts:457
Window opacity (0.0 to 1.0)
Inherited from
Section titled “Inherited from”open:
boolean
Defined in: shared/types.ts:340
Whether the window should be open/visible. When true, the window is created/shown. When false, the window is destroyed.
Inherited from
Section titled “Inherited from”pool:
WindowPoolDefinition
Defined in: renderer/PooledWindow.tsx:145
Pool to acquire windows from
resizable?
Section titled “resizable?”
optionalresizable:boolean
Defined in: shared/types.ts:469
Whether the window is resizable. Default: true.
Inherited from
Section titled “Inherited from”showInactive?
Section titled “showInactive?”
optionalshowInactive:boolean
Defined in: shared/types.ts:503
Show window without stealing focus
Inherited from
Section titled “Inherited from”skipTaskbar?
Section titled “skipTaskbar?”
optionalskipTaskbar:boolean
Defined in: shared/types.ts:490
Whether to skip showing in taskbar/dock.
Inherited from
Section titled “Inherited from”title?
Section titled “title?”
optionaltitle:string
Defined in: shared/types.ts:427
Window title
Inherited from
Section titled “Inherited from”titleBarOverlay?
Section titled “titleBarOverlay?”
optionaltitleBarOverlay:TitleBarOverlayOptions
Defined in: shared/types.ts:517
Title bar overlay options (Windows)
Inherited from
Section titled “Inherited from”trafficLightPosition?
Section titled “trafficLightPosition?”
optionaltrafficLightPosition:object
Defined in: shared/types.ts:514
Traffic light (close/minimize/maximize) button position (macOS)
x:
number
y:
number
Inherited from
Section titled “Inherited from”WindowProps.trafficLightPosition
visible?
Section titled “visible?”
optionalvisible:boolean
Defined in: shared/types.ts:466
Whether the window is visible. Default: true.
Set to false to hide the window without destroying it (state is preserved).
Unlike open, which controls the window’s existence, visible controls whether it’s shown.
Inherited from
Section titled “Inherited from”visibleOnAllWorkspaces?
Section titled “visibleOnAllWorkspaces?”
optionalvisibleOnAllWorkspaces:boolean
Defined in: shared/types.ts:509
Visible on all workspaces/virtual desktops
Inherited from
Section titled “Inherited from”WindowProps.visibleOnAllWorkspaces
width?
Section titled “width?”
optionalwidth:number
Defined in: shared/types.ts:384
Controlled width. Changes will resize the window. Use with onBoundsChange for two-way sync.
Inherited from
Section titled “Inherited from”
optionalx:number
Defined in: shared/types.ts:396
Controlled x position. Changes will move the window. Use with onBoundsChange for two-way sync.
Inherited from
Section titled “Inherited from”
optionaly:number
Defined in: shared/types.ts:402
Controlled y position. Changes will move the window. Use with onBoundsChange for two-way sync.