tauri_runtime_wry

Struct Wry

source
pub struct Wry<T: UserEvent> { /* private fields */ }
Expand description

A Tauri Runtime wrapper around wry.

Trait Implementations§

source§

impl<T: UserEvent> Debug for Wry<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: UserEvent> Runtime<T> for Wry<T>

source§

type WindowDispatcher = WryWindowDispatcher<T>

The window message dispatcher.
source§

type WebviewDispatcher = WryWebviewDispatcher<T>

The webview message dispatcher.
source§

type Handle = WryHandle<T>

The runtime handle type.
source§

type EventLoopProxy = EventProxy<T>

The proxy type.
source§

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>

Creates an EventLoopProxy that can be used to dispatch user events to the main event loop.
source§

fn handle(&self) -> Self::Handle

Gets a runtime handle.
source§

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>>

Create a new webview.
source§

fn primary_monitor(&self) -> Option<Monitor>

source§

fn monitor_from_point(&self, x: f64, y: f64) -> Option<Monitor>

source§

fn available_monitors(&self) -> Vec<Monitor>

source§

fn cursor_position(&self) -> Result<PhysicalPosition<f64>>

source§

fn set_theme(&self, theme: Option<Theme>)

source§

fn set_activation_policy(&mut self, activation_policy: ActivationPolicy)

Available on macOS only.
Sets the activation policy for the application.
source§

fn show(&self)

Available on macOS only.
Shows the application, but does not automatically focus it.
source§

fn hide(&self)

Available on macOS only.
Hides the application.
source§

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)

Runs an iteration of the runtime event loop and returns control flow to the caller.
source§

fn run<F: FnMut(RunEvent<T>) + 'static>(self, callback: F)

Run the webview runtime.

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,