Struct tauri::Wry [−][src]
pub struct Wry { /* fields omitted */ }
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<P>(
&self,
pending: PendingWindow<P>
) -> Result<DetachedWindow<P>, Error> where
P: Params<Runtime = Wry>,
pub fn create_window<P>(
&self,
pending: PendingWindow<P>
) -> Result<DetachedWindow<P>, Error> where
P: Params<Runtime = Wry>,
Create a new webview window.
pub fn system_tray<I>(
&self,
system_tray: SystemTray<I>
) -> Result<<Wry as Runtime>::TrayHandler, Error> where
I: MenuId,
pub fn system_tray<I>(
&self,
system_tray: SystemTray<I>
) -> Result<<Wry as Runtime>::TrayHandler, Error> where
I: MenuId,
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.
Auto Trait Implementations
impl !RefUnwindSafe for Wry
impl !UnwindSafe for Wry