Windows Window Controls FFI
Import
Section titled “Import”import { startWindowsWindowControlsFfi } from "webotron/plugins/windows-window-controls-ffi";Entry Point
Section titled “Entry Point”startWindowsWindowControlsFfi(view, options?)
const ffiControls = await startWindowsWindowControlsFfi(view, { title: "webotron", showCloseButton: true, debugLogs: false,});
await ffiControls.stop();Options
Section titled “Options”| Option | Type | Purpose |
|---|---|---|
title | string | Caption text for custom controls. |
showMinimizeButton | boolean | Show/hide minimize control. |
showMaximizeButton | boolean | Show/hide maximize control. |
showCloseButton | boolean | Show/hide close control. |
onCloseRequested | callback | Intercept close behavior. |
debugLogs | boolean | Enable plugin debug logging. |
What It Does
Section titled “What It Does”- Uses native FFI calls for window geometry and style changes.
- Useful when you need tighter Windows integration than the PowerShell-based variant.