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 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_activation_policy(&mut self, activation_policy: ActivationPolicy)
fn set_activation_policy(&mut self, activation_policy: ActivationPolicy)
Available on macOS only.
Sets the activation policy for the application.
Source§fn show(&self)
fn show(&self)
Available on macOS only.
Shows the application, but does not automatically focus it.
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