@tauri-apps/plugin-positioner
Enumerations
Position
Well known window positions.
Enumeration Members
BottomCenter
BottomCenter: 5;
Source: undefined
BottomLeft
BottomLeft: 2;
Source: undefined
BottomRight
BottomRight: 3;
Source: undefined
Center
Center: 8;
Source: undefined
LeftCenter
LeftCenter: 6;
Source: undefined
RightCenter
RightCenter: 7;
Source: undefined
TopCenter
TopCenter: 4;
Source: undefined
TopLeft
TopLeft: 0;
Source: undefined
TopRight
TopRight: 1;
Source: undefined
TrayBottomCenter
TrayBottomCenter: 14;
Source: undefined
TrayBottomLeft
TrayBottomLeft: 10;
Source: undefined
TrayBottomRight
TrayBottomRight: 12;
Source: undefined
TrayCenter
TrayCenter: 13;
Source: undefined
TrayLeft
TrayLeft: 9;
Source: undefined
TrayRight
TrayRight: 11;
Source: undefined
Functions
handleIconState()
function handleIconState(event): Promise<void>
Parameters
Parameter | Type |
---|---|
event | TrayIconEvent |
Returns
Promise
<void
>
Source: undefined
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
Parameter | Type | Description |
---|---|---|
to | Position | The Position to move to. |
Returns
Promise
<void
>
Source: undefined
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
Parameter | Type | Description |
---|---|---|
to | Position | The (tray) Position to move to. |
Returns
Promise
<void
>
Source: undefined
Tauri v2.3 中文网 - 粤ICP备13048890号
Nodejs.cn 旗下网站