import type { Alignment } from "./Alignment.js"; import type { MonitorId } from "./MonitorId.js"; import type { Point } from "./Point.js"; import type { TsUnknown } from "./TsUnknown.js"; import type { WidgetId } from "./WidgetId.js"; /** * Arguments that could be passed on the trigger widget function, widgets decides if use it or not. */ export type WidgetTriggerPayload = { id: WidgetId; monitorId?: MonitorId | null; instanceId?: string | null; /** * Desired position to show the widget */ desiredPosition?: Point | null; /** * This will be used to align the widget at the desired position * - start will set the widget at the left of point, * - center will set the widget at the center of point, * - end will set the widget at the right of point */ alignX?: Alignment | null; /** * This will be used to align the widget at the desired position * - start will set the widget at the top of point, * - center will set the widget at the center of point, * - end will set the widget at the bottom of point */ alignY?: Alignment | null; /** * Custom arguments to be used by the widget recieving the trigger. * this can be anything, and depends on the widget to evaluate them. */ customArgs?: { [key in string]: TsUnknown; } | null; }; //# sourceMappingURL=WidgetTriggerPayload.d.ts.map