public sealed record MacOSWindowOptions : IEquatable<MacOSWindowOptions> The title bar of a macOS embedded window: its style and where its traffic lights sit.
Remarks
Only the macOS WKWebView window applies these options; Windows, Linux, installed browsers and custom window hosts ignore them. A DesktopWindowOptions.Frameless or DesktopWindowOptions.Kiosk window has no title bar, so it ignores them too, and DesktopHost.Validate reports the ignored option.
A window with a MacOSTitleBarStyle.Hidden or MacOSTitleBarStyle.Transparent title bar, and a frameless window, moves when the user drags a part of the page marked with the CSS app-region: drag (or -webkit-app-region: drag) and no-drag declarations that Electron uses; see the package README.
Constructors
MacOSWindowOptions
public MacOSWindowOptions() No documentation.
Properties
TitleBar
public MacOSTitleBarStyle TitleBar { get; init; } Gets the title bar style: MacOSTitleBarStyle.Default, the default, for the standard title bar.
TrafficLightPosition
public Point? TrafficLightPosition { get; init; } Gets the position of the close button's top-left corner from the window's top-left corner, in points, or null, the default, for AppKit's position. The minimize and zoom buttons follow it with AppKit's spacing.
Remarks
Applies with a MacOSTitleBarStyle.Hidden or MacOSTitleBarStyle.Transparent title bar, for example to line the buttons up with the page's own header; both coordinates must not be negative. The title bar becomes as high as a button plus twice the vertical position, so the buttons stay centered in it, as with Electron's trafficLightPosition.