@tauri-apps/plugin-positioner
Well known window positions.
BottomCenter: 5;
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L18
BottomLeft: 2;
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L15
BottomRight: 3;
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L16
Center: 8;
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L21
LeftCenter: 6;
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L19
RightCenter: 7;
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L20
TopCenter: 4;
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L17
TopLeft: 0;
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L13
TopRight: 1;
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L14
TrayBottomCenter: 14;
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L27
TrayBottomLeft: 10;
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L23
TrayBottomRight: 12;
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L25
TrayCenter: 13;
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L26
TrayLeft: 9;
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L22
TrayRight: 11;
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L24
function handleIconState(event): Promise<void>
Parameter | Type |
---|---|
event | TrayIconEvent |
Promise
<void
>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L55
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
>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L36
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
>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L49
© 2025 Tauri Contributors. CC-BY / MIT