Struct tauri::Wry [−][src]
pub struct Wry { /* fields omitted */ }
This is supported on crate feature
wry
only.Expand description
A Tauri Runtime
wrapper around wry.
Trait Implementations
type Dispatcher = WryDispatcher
type Dispatcher = WryDispatcher
The message dispatcher.
The global shortcut manager type.
The clipboard manager type.
type TrayHandler = SystemTrayHandle
type TrayHandler = SystemTrayHandle
The tray handler type.
Gets the global shortcut manager.
Gets the clipboard manager.
pub fn create_window(
&self,
pending: PendingWindow<Wry>
) -> Result<DetachedWindow<Wry>, Error>
pub fn create_window(
&self,
pending: PendingWindow<Wry>
) -> Result<DetachedWindow<Wry>, Error>
Create a new webview window.
pub fn system_tray(
&self,
system_tray: SystemTray
) -> Result<<Wry as Runtime>::TrayHandler, Error>
pub fn system_tray(
&self,
system_tray: SystemTray
) -> Result<<Wry as Runtime>::TrayHandler, Error>
Adds the icon to the system tray with the specified menu items.
pub fn on_system_tray_event<F>(&mut self, f: F) -> Uuid where
F: 'static + Fn(&SystemTrayEvent) + Send,
pub fn on_system_tray_event<F>(&mut self, f: F) -> Uuid where
F: 'static + Fn(&SystemTrayEvent) + Send,
Registers a system tray event handler.