toastsShow
Standard way of showing toasts. For the main window, this is called with null in Window.end().
For floating windows or other widgets, pass non-null id. Then it shows toasts that were previously added with non-null subwindow_id, and they are shown on top of the current subwindow.
Toasts are shown in rect centered horizontally and 70% down vertically.
Only valid between Window.beginand Window.end.
Parameters
- id:?Id
- ?Id
- rect:Rect.Natural
- Rect.Natural
Source
Implementation
pub fn toastsShow(id: ?Id, rect: Rect.Natural) void {
currentWindow().toastsShow(id, rect);
}