Struct tauri_runtime_wry::WryDispatcher
source · [−]pub struct WryDispatcher<T: UserEvent> { /* private fields */ }
Trait Implementations
sourceimpl<T: Clone + UserEvent> Clone for WryDispatcher<T>
impl<T: Clone + UserEvent> Clone for WryDispatcher<T>
sourcefn clone(&self) -> WryDispatcher<T>
fn clone(&self) -> WryDispatcher<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug + UserEvent> Debug for WryDispatcher<T>
impl<T: Debug + UserEvent> Debug for WryDispatcher<T>
sourceimpl<T: UserEvent> Dispatch<T> for WryDispatcher<T>
impl<T: UserEvent> Dispatch<T> for WryDispatcher<T>
sourcefn is_devtools_open(&self) -> Result<bool>
fn is_devtools_open(&self) -> Result<bool>
Gets the devtools window’s current open state.
sourcefn is_decorated(&self) -> Result<bool>
fn is_decorated(&self) -> Result<bool>
Gets the window’s current decoration state.
sourcefn is_resizable(&self) -> Result<bool>
fn is_resizable(&self) -> Result<bool>
Gets the window’s current resizable state.
type WindowBuilder = WindowBuilderWrapper
type WindowBuilder = WindowBuilderWrapper
The winoow builder type.
sourcefn run_on_main_thread<F: FnOnce() + Send + 'static>(&self, f: F) -> Result<()>
fn run_on_main_thread<F: FnOnce() + Send + 'static>(&self, f: F) -> Result<()>
Run a task on the main thread.
sourcefn on_window_event<F: Fn(&WindowEvent) + Send + 'static>(&self, f: F) -> Uuid
fn on_window_event<F: Fn(&WindowEvent) + Send + 'static>(&self, f: F) -> Uuid
Registers a window event handler.
Registers a window event handler.
sourcefn open_devtools(&self)
fn open_devtools(&self)
Open the web inspector which is usually called devtools.
sourcefn close_devtools(&self)
fn close_devtools(&self)
Close the web inspector which is usually called devtools.
sourcefn scale_factor(&self) -> Result<f64>
fn scale_factor(&self) -> Result<f64>
Returns the scale factor that can be used to map logical pixels to physical pixels, and vice versa.
sourcefn inner_position(&self) -> Result<PhysicalPosition<i32>>
fn inner_position(&self) -> Result<PhysicalPosition<i32>>
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.
sourcefn outer_position(&self) -> Result<PhysicalPosition<i32>>
fn outer_position(&self) -> Result<PhysicalPosition<i32>>
Returns the position of the top-left hand corner of the window relative to the top-left hand corner of the desktop.
sourcefn inner_size(&self) -> Result<PhysicalSize<u32>>
fn inner_size(&self) -> Result<PhysicalSize<u32>>
Returns the physical size of the window’s client area. Read more
sourcefn outer_size(&self) -> Result<PhysicalSize<u32>>
fn outer_size(&self) -> Result<PhysicalSize<u32>>
Returns the physical size of the entire window. Read more
sourcefn is_fullscreen(&self) -> Result<bool>
fn is_fullscreen(&self) -> Result<bool>
Gets the window’s current fullscreen state.
sourcefn is_maximized(&self) -> Result<bool>
fn is_maximized(&self) -> Result<bool>
Gets the window’s current maximized state.
sourcefn is_visible(&self) -> Result<bool>
fn is_visible(&self) -> Result<bool>
Gets the window’s current vibility state.
Gets the window menu current visibility state.
sourcefn current_monitor(&self) -> Result<Option<Monitor>>
fn current_monitor(&self) -> Result<Option<Monitor>>
Returns the monitor on which the window currently resides. Read more
sourcefn primary_monitor(&self) -> Result<Option<Monitor>>
fn primary_monitor(&self) -> Result<Option<Monitor>>
Returns the primary monitor of the system. Read more
sourcefn available_monitors(&self) -> Result<Vec<Monitor>>
fn available_monitors(&self) -> Result<Vec<Monitor>>
Returns the list of all the monitors available on the system.
sourcefn request_user_attention(
&self,
request_type: Option<UserAttentionType>
) -> Result<()>
fn request_user_attention(
&self,
request_type: Option<UserAttentionType>
) -> Result<()>
Requests user attention to the window. Read more
sourcefn create_window(
&mut self,
pending: PendingWindow<T, Self::Runtime>
) -> Result<DetachedWindow<T, Self::Runtime>>
fn create_window(
&mut self,
pending: PendingWindow<T, Self::Runtime>
) -> Result<DetachedWindow<T, Self::Runtime>>
Create a new webview window.
sourcefn set_resizable(&self, resizable: bool) -> Result<()>
fn set_resizable(&self, resizable: bool) -> Result<()>
Updates the window resizable flag.
sourcefn unmaximize(&self) -> Result<()>
fn unmaximize(&self) -> Result<()>
Unmaximizes the window.
sourcefn unminimize(&self) -> Result<()>
fn unminimize(&self) -> Result<()>
Unminimizes the window.
Shows the window menu.
Hides the window menu.
sourcefn set_decorations(&self, decorations: bool) -> Result<()>
fn set_decorations(&self, decorations: bool) -> Result<()>
Updates the hasDecorations flag.
sourcefn set_always_on_top(&self, always_on_top: bool) -> Result<()>
fn set_always_on_top(&self, always_on_top: bool) -> Result<()>
Updates the window alwaysOnTop flag.
sourcefn set_position(&self, position: Position) -> Result<()>
fn set_position(&self, position: Position) -> Result<()>
Updates the window position.
sourcefn set_fullscreen(&self, fullscreen: bool) -> Result<()>
fn set_fullscreen(&self, fullscreen: bool) -> Result<()>
Updates the window fullscreen state.
sourcefn set_icon(&self, icon: WindowIcon) -> Result<()>
fn set_icon(&self, icon: WindowIcon) -> Result<()>
Updates the window icon.
sourcefn set_skip_taskbar(&self, skip: bool) -> Result<()>
fn set_skip_taskbar(&self, skip: bool) -> Result<()>
Whether to show the window icon in the task bar or not.
sourcefn start_dragging(&self) -> Result<()>
fn start_dragging(&self) -> Result<()>
Starts dragging the window.
sourcefn eval_script<S: Into<String>>(&self, script: S) -> Result<()>
fn eval_script<S: Into<String>>(&self, script: S) -> Result<()>
Executes javascript on the window this Dispatch
represents.
Applies the specified update
to the menu item associated with the given id
.
impl<T: UserEvent> Sync for WryDispatcher<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for WryDispatcher<T>
impl<T> Send for WryDispatcher<T>
impl<T> Unpin for WryDispatcher<T>
impl<T> !UnwindSafe for WryDispatcher<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more