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