replace crashing snap with window picker icon on overlay
This commit is contained in:
@@ -71,6 +71,14 @@ export type CaptureRect = {
|
||||
height: number
|
||||
}
|
||||
|
||||
export type WindowInfo = {
|
||||
title: string
|
||||
x: number
|
||||
y: number
|
||||
width: number
|
||||
height: number
|
||||
}
|
||||
|
||||
export type ClickEvent = {
|
||||
time_secs: number
|
||||
x: number
|
||||
@@ -126,6 +134,9 @@ export const api = {
|
||||
hideOverlay: () => invoke<void>("hide_overlay"),
|
||||
setOverlaySize: (width: number, height: number) =>
|
||||
invoke<void>("set_overlay_size", { width, height }),
|
||||
setOverlayToWindow: (x: number, y: number, width: number, height: number) =>
|
||||
invoke<void>("set_overlay_to_window", { x, y, width, height }),
|
||||
listWindows: () => invoke<WindowInfo[]>("list_windows"),
|
||||
getOverlayRect: () => invoke<CaptureRect>("get_overlay_rect"),
|
||||
extractThumbnails: (fps: number) =>
|
||||
invoke<string[]>("extract_thumbnails", { fps }),
|
||||
|
||||
Reference in New Issue
Block a user