@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;BottomLeft
Section titled “BottomLeft”BottomLeft: 2;BottomRight
Section titled “BottomRight”BottomRight: 3;Center
Section titled “Center”Center: 8;LeftCenter
Section titled “LeftCenter”LeftCenter: 6;RightCenter
Section titled “RightCenter”RightCenter: 7;TopCenter
Section titled “TopCenter”TopCenter: 4;TopLeft
Section titled “TopLeft”TopLeft: 0;TopRight
Section titled “TopRight”TopRight: 1;TrayBottomCenter
Section titled “TrayBottomCenter”TrayBottomCenter: 14;TrayBottomLeft
Section titled “TrayBottomLeft”TrayBottomLeft: 10;TrayBottomRight
Section titled “TrayBottomRight”TrayBottomRight: 12;TrayCenter
Section titled “TrayCenter”TrayCenter: 13;TrayLeft
Section titled “TrayLeft”TrayLeft: 9;TrayRight
Section titled “TrayRight”TrayRight: 11;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>
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>
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>
© 2026 Tauri Contributors. CC-BY / MIT