tauri-plugin-positioner-api
Version:
Helps positioning your tauri windows.
30 lines (28 loc) • 659 B
TypeScript
/**
* Well known window positions.
*/
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.
*/
declare function move_window(to: Position): void;
export { Position, move_window };