pub struct Wry<T: UserEvent> { /* private fields */ }
Expand description
A Tauri Runtime
wrapper around wry.
Trait Implementations§
Source§impl<T: UserEvent> Runtime<T> for Wry<T>
impl<T: UserEvent> Runtime<T> for Wry<T>
Source§type WindowDispatcher = WryWindowDispatcher<T>
type WindowDispatcher = WryWindowDispatcher<T>
The window message dispatcher.
Source§type WebviewDispatcher = WryWebviewDispatcher<T>
type WebviewDispatcher = WryWebviewDispatcher<T>
The webview message dispatcher.
Source§type EventLoopProxy = EventProxy<T>
type EventLoopProxy = EventProxy<T>
The proxy type.
Source§fn new(args: RuntimeInitArgs) -> Result<Self>
fn new(args: RuntimeInitArgs) -> Result<Self>
Creates a new webview runtime. Must be used on the main thread.
Source§fn new_any_thread(args: RuntimeInitArgs) -> Result<Self>
fn new_any_thread(args: RuntimeInitArgs) -> Result<Self>
Available on Windows or Linux only.
Creates a new webview runtime on any thread.
Source§fn create_proxy(&self) -> EventProxy<T>
fn create_proxy(&self) -> EventProxy<T>
Creates an
EventLoopProxy
that can be used to dispatch user events to the main event loop.Source§fn create_window<F: Fn(RawWindow<'_>) + Send + 'static>(
&self,
pending: PendingWindow<T, Self>,
after_window_creation: Option<F>,
) -> Result<DetachedWindow<T, Self>>
fn create_window<F: Fn(RawWindow<'_>) + Send + 'static>( &self, pending: PendingWindow<T, Self>, after_window_creation: Option<F>, ) -> Result<DetachedWindow<T, Self>>
Create a new window.
Source§fn create_webview(
&self,
window_id: WindowId,
pending: PendingWebview<T, Self>,
) -> Result<DetachedWebview<T, Self>>
fn create_webview( &self, window_id: WindowId, pending: PendingWebview<T, Self>, ) -> Result<DetachedWebview<T, Self>>
Create a new webview.
fn primary_monitor(&self) -> Option<Monitor>
fn monitor_from_point(&self, x: f64, y: f64) -> Option<Monitor>
fn available_monitors(&self) -> Vec<Monitor>
fn cursor_position(&self) -> Result<PhysicalPosition<f64>>
fn set_theme(&self, theme: Option<Theme>)
Source§fn set_device_event_filter(&mut self, filter: DeviceEventFilter)
fn set_device_event_filter(&mut self, filter: DeviceEventFilter)
Change the device event filter mode. Read more
Source§fn run_iteration<F: FnMut(RunEvent<T>) + 'static>(&mut self, callback: F)
fn run_iteration<F: FnMut(RunEvent<T>) + 'static>(&mut self, callback: F)
Runs an iteration of the runtime event loop and returns control flow to the caller.
Auto Trait Implementations§
impl<T> Freeze for Wry<T>
impl<T> !RefUnwindSafe for Wry<T>
impl<T> !Send for Wry<T>
impl<T> !Sync for Wry<T>
impl<T> Unpin for Wry<T>where
T: Unpin,
impl<T> !UnwindSafe for Wry<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more