@tauri-apps/plugin-positioner
Esta página aún no está disponible en tu idioma.
Well known window positions.
BottomCenter: 5;BottomLeft: 2;BottomRight: 3;Center: 8;LeftCenter: 6;RightCenter: 7;TopCenter: 4;TopLeft: 0;TopRight: 1;TrayBottomCenter: 14;TrayBottomLeft: 10;TrayBottomRight: 12;TrayCenter: 13;TrayLeft: 9;TrayRight: 11;function handleIconState(event): Promise<void>| Parameter | Type |
|---|---|
event | TrayIconEvent |
Promise<void>
function moveWindow(to): Promise<void>Moves the Window to the given Position using WindowExt.move_window()
All positions are relative to the current screen.
| Parameter | Type | Description |
|---|---|---|
to | Position | The Position to move to. |
Promise<void>
function moveWindowConstrained(to): Promise<void>Moves the Window to the given Position using WindowExt.move_window_constrained()
This move operation constrains the window to the screen dimensions in case of tray-icon positions.
| Parameter | Type | Description |
|---|---|---|
to | Position | The (tray) Position to move to. |
Promise<void>
© 2025 Tauri Contributors. CC-BY / MIT