mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
enable type declarations
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* 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>;
|
||||
Reference in New Issue
Block a user