mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-18 16:57:19 +02:00
28 lines
646 B
TypeScript
28 lines
646 B
TypeScript
/**
|
|
* Well known window positions.
|
|
*/
|
|
export declare enum Position {
|
|
TopLeft = 0,
|
|
TopRight = 1,
|
|
BottomLeft = 2,
|
|
BottomRight = 3,
|
|
TopCenter = 4,
|
|
BottomCenter = 5,
|
|
LeftCenter = 6,
|
|
RightCenter = 7,
|
|
Center = 8,
|
|
TrayLeft = 9,
|
|
TrayBottomLeft = 10,
|
|
TrayRight = 11,
|
|
TrayBottomRight = 12,
|
|
TrayCenter = 13,
|
|
TrayBottomCenter = 14
|
|
}
|
|
/**
|
|
* Moves the `Window` to the given {@link Position} using `WindowExt.move_window()`
|
|
* All positions are relative to the **current** screen.
|
|
*
|
|
* @param to The {@link Position} to move to.
|
|
*/
|
|
export declare function moveWindow(to: Position): Promise<void>;
|