Skip to content

Windows Window Controls FFI

import { startWindowsWindowControlsFfi } from "webotron/plugins/windows-window-controls-ffi";
  • startWindowsWindowControlsFfi(view, options?)
const ffiControls = await startWindowsWindowControlsFfi(view, {
title: "webotron",
showCloseButton: true,
debugLogs: false,
});
await ffiControls.stop();
OptionTypePurpose
titlestringCaption text for custom controls.
showMinimizeButtonbooleanShow/hide minimize control.
showMaximizeButtonbooleanShow/hide maximize control.
showCloseButtonbooleanShow/hide close control.
onCloseRequestedcallbackIntercept close behavior.
debugLogsbooleanEnable plugin debug logging.
  • Uses native FFI calls for window geometry and style changes.
  • Useful when you need tighter Windows integration than the PowerShell-based variant.