OptionalmodeOverlay behavior preset. Defaults to hud. At creation, hud is strictly display-only and defaults to transparent, click-through, non-focusable, no-activate, always-on-top, and hidden from the taskbar. window permits interactive controls and initially defaults to an opaque, focusable, resizable utility window. Later mode changes reset mutable fields but preserve the create-time transparent value.
OptionaltitleNative window title. Defaults to PowerKeys Overlay for hud and PowerKeys for window.
OptionalchromeNative window chrome. Defaults to none for hud and custom for window; system uses the operating-system title bar and borders.
OptionaldraggableWhether the rendered overlay can be dragged. Defaults to false for hud and true for window. Enabling this on a hud also disables clickThrough unless clickThrough is explicitly supplied.
OptionaldragOptional modifier key required before dragging starts. Accepted case-insensitively: Ctrl/Control, Shift, Alt/Menu, Win/Meta/Super, or a left/right-specific form such as LCtrl, LeftControl, RShift, RightAlt, LWin, or RightSuper. Spaces, hyphens, and underscores are ignored. An invalid non-empty name throws when options are applied; an empty string clears the modifier.
OptionalresizableWhether the native window can be resized by the user. Defaults to false for hud and true for window.
OptionalminMinimum rendered-content width in positive integer physical pixels. Applied only when minHeight is also set. Once set, it remains until replaced or a mode change resets the options; null is invalid and does not clear it.
OptionalminMinimum rendered-content height in positive integer physical pixels. Applied only when minWidth is also set. Once set, it remains until replaced or a mode change resets the options; null is invalid and does not clear it.
OptionalmaxMaximum rendered-content width in positive integer physical pixels. Applied only when maxHeight is also set. Once set, it remains until replaced or a mode change resets the options; null is invalid and does not clear it.
OptionalmaxMaximum rendered-content height in positive integer physical pixels. Applied only when maxWidth is also set. Once set, it remains until replaced or a mode change resets the options; null is invalid and does not clear it.
OptionalalwaysWhether the overlay stays above other windows. Defaults to true for hud and false for window.
OptionalskipWhether the overlay is hidden from the taskbar. Defaults to true for hud and false for window.
OptionalclickWhether pointer input passes through to windows underneath. Defaults to true for hud and false for window.
OptionalfocusableWhether the overlay can receive keyboard focus. Defaults to false for hud and true for window.
OptionalnoWhether Show avoids activating or stealing focus from the current foreground window. Defaults to true for hud and false for window.
OptionalopacityWhole-window opacity. Finite values are clamped to the inclusive 0..1 range; defaults to 1.
OptionalcontentWhether the overlay content should be hidden from screen capture when the platform supports it. Defaults to false.
OptionaltransparentWhether the native webview background supports transparency. This is applied only by CreateOverlay, defaulting to true for hud and false for window. Later Show or SetWindowOptions calls may repeat the existing value, but attempting to change it throws; mode changes preserve it.
OptionalwidthRendered client/content width in positive integer physical pixels. Defaults to 320 for hud and 360 for window.
OptionalheightRendered client/content height in positive integer physical pixels. Defaults to 160 for hud and 240 for window.
OptionalxAbsolute x coordinate of the rendered content's top-left edge in virtual-desktop physical pixels. When supplied, x overrides anchor and offsetX on that axis and remains until replaced or a mode change resets the options; null is invalid and does not restore anchor placement.
OptionalyAbsolute y coordinate of the rendered content's top-left edge in virtual-desktop physical pixels. When supplied, y overrides anchor and offsetY on that axis and remains until replaced or a mode change resets the options; null is invalid and does not restore anchor placement.
OptionalanchorAnchor within targetWindowId's outer physical bounds, or within the complete virtual desktop when no target is set. Half-pixel anchor results round to the nearest physical pixel. Defaults to top-left; invalid strings are rejected.
OptionaloffsetSigned integer physical-pixel offset from the resolved anchor on x. Used only when x is omitted; defaults to 0.
OptionaloffsetSigned integer physical-pixel offset from the resolved anchor on y. Used only when y is omitted; defaults to 0.
OptionaltargetOptional WindowInfo.id whose outer native bounds are followed every 250 ms once detected. A target assigned after creation is detected within about one second. Anchor placement is recomputed as the target moves or resizes. If the id cannot be resolved, the overlay stays hidden instead of falling back to the virtual desktop; the target tracker then clears this field and OnTargetLost fires once. An empty string clears the target; null is treated as omitted and does not clear it.
OptionalstyleCSS-like style for the rendered overlay root. CreateOverlay sets this initial style and SetWindowOptions replaces the whole style map; SetStyle merges instead. Renderer/CSS values use CSS logical pixels and are intentionally separate from native physical-pixel window geometry.
Detached overlay or utility-window options. Geometry is expressed as integer physical pixels in the Windows virtual-desktop coordinate space, matching Screen, Mouse, and Window. The x/y origin can be negative on monitors left of or above the primary monitor. Window geometry describes the rendered client/content area, not the invisible native frame or shadow. Cross-monitor moves reapply the requested physical content size after Windows processes its DPI transition, so no caller-side DPI scaling is needed. Options passed to SetWindowOptions or Show are partial updates; changing mode resets unspecified mutable fields to that mode's defaults. Native webview transparency is create-only and is preserved across later mode changes.