Skip to main content

OverlayOptions

Electron APIs / overlay / OverlayOptions

Overlay configuration options for creating or modifying an overlay window.

Control over:

  • Input passthrough behavior.
  • Overlay window stacking behavior.
  • Keyboard input interception.

Example

const options: OverlayOptions = {
passthrough: "noPassThrough",
zOrder: "default",
ignoreKeyboardInput: false,
};

Extended by

Properties

PropertyTypeDescription
ignoreKeyboardInput?booleanControls whether the overlay intercepts keyboard input. true—the overlay won't intercept keyboard input. Default false
passthrough?PassthroughTypeControls how input is handled by the overlay window. Default 'noPassThrough' See PassthroughType.
strictToGameWindow?booleanWhen true, the overlay window is strictly confined to the game window boundaries. This prevents the overlay from being moved outside the game window area. Default false Since 1.9.0
zOrder?ZOrderTypeControls the z-order (stacking order) of the overlay window. Default 'default' See ZOrderType.