@tauri-apps/plugin-positioner
Enumerations
Section titled “Enumerations”Position
Section titled “Position”Well known window positions.
Enumeration Members
Section titled “Enumeration Members”BottomCenter
Section titled “BottomCenter”BottomCenter: 5;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L18
BottomLeft
Section titled “BottomLeft”BottomLeft: 2;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L15
BottomRight
Section titled “BottomRight”BottomRight: 3;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L16
Center
Section titled “Center”Center: 8;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L21
LeftCenter
Section titled “LeftCenter”LeftCenter: 6;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L19
RightCenter
Section titled “RightCenter”RightCenter: 7;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L20
TopCenter
Section titled “TopCenter”TopCenter: 4;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L17
TopLeft
Section titled “TopLeft”TopLeft: 0;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L13
TopRight
Section titled “TopRight”TopRight: 1;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L14
TrayBottomCenter
Section titled “TrayBottomCenter”TrayBottomCenter: 14;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L27
TrayBottomLeft
Section titled “TrayBottomLeft”TrayBottomLeft: 10;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L23
TrayBottomRight
Section titled “TrayBottomRight”TrayBottomRight: 12;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L25
TrayCenter
Section titled “TrayCenter”TrayCenter: 13;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L26
TrayLeft
Section titled “TrayLeft”TrayLeft: 9;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L22
TrayRight
Section titled “TrayRight”TrayRight: 11;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L24
Functions
Section titled “Functions”handleIconState()
Section titled “handleIconState()”function handleIconState(event): Promise<void>Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
event | TrayIconEvent |
Returns
Section titled “Returns”Promise<void>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L55
moveWindow()
Section titled “moveWindow()”function moveWindow(to): Promise<void>Moves the Window to the given Position using WindowExt.move_window()
All positions are relative to the current screen.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
to | Position | The Position to move to. |
Returns
Section titled “Returns”Promise<void>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L36
moveWindowConstrained()
Section titled “moveWindowConstrained()”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.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
to | Position | The (tray) Position to move to. |
Returns
Section titled “Returns”Promise<void>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/positioner/guest-js/index.ts#L49
© 2026 Tauri Contributors. CC-BY / MIT