Struct tauri_runtime_wry::WryDispatcher[][src]

pub struct WryDispatcher { /* fields omitted */ }
Expand description

The Tauri Dispatch for Wry.

Trait Implementations

impl Clone for WryDispatcher[src]

fn clone(&self) -> WryDispatcher[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Dispatch for WryDispatcher[src]

type Runtime = Wry

The runtime this Dispatch runs under.

type WindowBuilder = WindowBuilderWrapper

The winoow builder type.

fn run_on_main_thread<F: FnOnce() + Send + 'static>(&self, f: F) -> Result<()>[src]

Run a task on the main thread.

fn on_window_event<F: Fn(&WindowEvent) + Send + 'static>(&self, f: F) -> Uuid[src]

Registers a window event handler.

fn scale_factor(&self) -> Result<f64>[src]

Returns the scale factor that can be used to map logical pixels to physical pixels, and vice versa.

fn inner_position(&self) -> Result<PhysicalPosition<i32>>[src]

Returns the position of the top-left hand corner of the window’s client area relative to the top-left hand corner of the desktop.

fn outer_position(&self) -> Result<PhysicalPosition<i32>>[src]

Returns the position of the top-left hand corner of the window relative to the top-left hand corner of the desktop.

fn inner_size(&self) -> Result<PhysicalSize<u32>>[src]

Returns the physical size of the window’s client area. Read more

fn outer_size(&self) -> Result<PhysicalSize<u32>>[src]

Returns the physical size of the entire window. Read more

fn is_fullscreen(&self) -> Result<bool>[src]

Gets the window’s current fullscreen state.

fn is_maximized(&self) -> Result<bool>[src]

Gets the window’s current maximized state.

fn current_monitor(&self) -> Result<Option<Monitor>>[src]

Returns the monitor on which the window currently resides. Read more

fn primary_monitor(&self) -> Result<Option<Monitor>>[src]

Returns the primary monitor of the system. Read more

fn available_monitors(&self) -> Result<Vec<Monitor>>[src]

Returns the list of all the monitors available on the system.

fn print(&self) -> Result<()>[src]

Opens the dialog to prints the contents of the webview.

fn create_window<P: Params<Runtime = Self::Runtime>>(
    &mut self,
    pending: PendingWindow<P>
) -> Result<DetachedWindow<P>>
[src]

Create a new webview window.

fn set_resizable(&self, resizable: bool) -> Result<()>[src]

Updates the window resizable flag.

fn set_title<S: Into<String>>(&self, title: S) -> Result<()>[src]

Updates the window title.

fn maximize(&self) -> Result<()>[src]

Maximizes the window.

fn unmaximize(&self) -> Result<()>[src]

Unmaximizes the window.

fn minimize(&self) -> Result<()>[src]

Minimizes the window.

fn unminimize(&self) -> Result<()>[src]

Unminimizes the window.

fn show(&self) -> Result<()>[src]

Shows the window.

fn hide(&self) -> Result<()>[src]

Hides the window.

fn close(&self) -> Result<()>[src]

Closes the window.

fn set_decorations(&self, decorations: bool) -> Result<()>[src]

Updates the hasDecorations flag.

fn set_always_on_top(&self, always_on_top: bool) -> Result<()>[src]

Updates the window alwaysOnTop flag.

fn set_size(&self, size: Size) -> Result<()>[src]

Resizes the window.

fn set_min_size(&self, size: Option<Size>) -> Result<()>[src]

Updates the window min size.

fn set_max_size(&self, size: Option<Size>) -> Result<()>[src]

Updates the window max size.

fn set_position(&self, position: Position) -> Result<()>[src]

Updates the window position.

fn set_fullscreen(&self, fullscreen: bool) -> Result<()>[src]

Updates the window fullscreen state.

fn set_icon(&self, icon: Icon) -> Result<()>[src]

Updates the window icon.

fn start_dragging(&self) -> Result<()>[src]

Starts dragging the window.

fn eval_script<S: Into<String>>(&self, script: S) -> Result<()>[src]

Executes javascript on the window this Dispatch represents.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointable for T

pub const ALIGN: usize

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.