Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
docs: add JSDoc comments to window factory functions
Scott Lexium0bde3594211a
diff --git a/electron/windows.ts b/electron/windows.tsindex 35a28b39d..dcd9f92bd 100644--- a/electron/windows.ts+++ b/electron/windows.ts@@ -17,6 +17,11 @@ ipcMain.on("hud-overlay-hide", () => {}});+/**+ * Creates the always-on-top HUD overlay window centred at the bottom of the+ * primary display. The window is frameless, transparent, and follows the user+ * across macOS Spaces so it is never lost when switching virtual desktops.+ */export function createHudOverlayWindow(): BrowserWindow {const primaryDisplay = screen.getPrimaryDisplay();const { workArea } = primaryDisplay;@@ -80,6 +85,10 @@ export function createHudOverlayWindow(): BrowserWindow {return win;}+/**+ * Creates the main editor window. Starts maximised with a hidden title bar on+ * macOS. This window is not always-on-top and appears in the taskbar/dock.+ */export function createEditorWindow(): BrowserWindow {const isMac = process.platform === "darwin";@@ -126,6 +135,10 @@ export function createEditorWindow(): BrowserWindow {return win;}+/**+ * Creates the floating source-selector window used to pick a screen or window+ * to record. Frameless, transparent, and follows the user across macOS Spaces.+ */export function createSourceSelectorWindow(): BrowserWindow {const { width, height } = screen.getPrimaryDisplay().workAreaSize;