PooledWindowProps
Defined in: renderer/PooledWindow.tsx:122
Extends
Section titled “Extends”Omit<BaseWindowProps,PoolExcludedProps>
Properties
Section titled “Properties”alwaysOnTop?
Section titled “alwaysOnTop?”
optionalalwaysOnTop:boolean|AlwaysOnTopLevel
Defined in: shared/types.ts:432
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:402
Background color
Inherited from
Section titled “Inherited from”center?
Section titled “center?”
optionalcenter:boolean
Defined in: shared/types.ts:370
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:126
Content to render inside the window
closable?
Section titled “closable?”
optionalclosable:boolean
Defined in: shared/types.ts:310
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:318
Initial height. Only applied on window creation.
Inherited from
Section titled “Inherited from”defaultWidth?
Section titled “defaultWidth?”
optionaldefaultWidth:number
Defined in: shared/types.ts:315
Initial width. Only applied on window creation.
Inherited from
Section titled “Inherited from”defaultX?
Section titled “defaultX?”
optionaldefaultX:number
Defined in: shared/types.ts:321
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:324
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:429
Whether the window is focusable. Default: true.
Inherited from
Section titled “Inherited from”fullscreen?
Section titled “fullscreen?”
optionalfullscreen:boolean
Defined in: shared/types.ts:443
Enter/exit fullscreen mode
Inherited from
Section titled “Inherited from”fullscreenable?
Section titled “fullscreenable?”
optionalfullscreenable:boolean
Defined in: shared/types.ts:446
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:338
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:454
Ignore mouse events (click-through window)
Inherited from
Section titled “Inherited from”maxHeight?
Section titled “maxHeight?”
optionalmaxHeight:number
Defined in: shared/types.ts:367
Maximum height constraint
Inherited from
Section titled “Inherited from”maximizable?
Section titled “maximizable?”
optionalmaximizable:boolean
Defined in: shared/types.ts:426
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:361
Maximum width constraint
Inherited from
Section titled “Inherited from”minHeight?
Section titled “minHeight?”
optionalminHeight:number
Defined in: shared/types.ts:364
Minimum height constraint
Inherited from
Section titled “Inherited from”minimizable?
Section titled “minimizable?”
optionalminimizable:boolean
Defined in: shared/types.ts:423
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:358
Minimum width constraint
Inherited from
Section titled “Inherited from”movable?
Section titled “movable?”
optionalmovable:boolean
Defined in: shared/types.ts:420
Whether the window is movable. Default: true.
Inherited from
Section titled “Inherited from”
optionalname:string
Defined in: shared/types.ts:484
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:525
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:353
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:528
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:537
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:531
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:534
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:522
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:510
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:516
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:507
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:519
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:513
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:304
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:405
Window opacity (0.0 to 1.0)
Inherited from
Section titled “Inherited from”open:
boolean
Defined in: shared/types.ts:288
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:124
Pool to acquire windows from
resizable?
Section titled “resizable?”
optionalresizable:boolean
Defined in: shared/types.ts:417
Whether the window is resizable. Default: true.
Inherited from
Section titled “Inherited from”showInactive?
Section titled “showInactive?”
optionalshowInactive:boolean
Defined in: shared/types.ts:451
Show window without stealing focus
Inherited from
Section titled “Inherited from”skipTaskbar?
Section titled “skipTaskbar?”
optionalskipTaskbar:boolean
Defined in: shared/types.ts:438
Whether to skip showing in taskbar/dock.
Inherited from
Section titled “Inherited from”title?
Section titled “title?”
optionaltitle:string
Defined in: shared/types.ts:375
Window title
Inherited from
Section titled “Inherited from”titleBarOverlay?
Section titled “titleBarOverlay?”
optionaltitleBarOverlay:TitleBarOverlayOptions
Defined in: shared/types.ts:465
Title bar overlay options (Windows)
Inherited from
Section titled “Inherited from”trafficLightPosition?
Section titled “trafficLightPosition?”
optionaltrafficLightPosition:object
Defined in: shared/types.ts:462
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:414
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:457
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:332
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:344
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:350
Controlled y position. Changes will move the window. Use with onBoundsChange for two-way sync.