pub struct VersoWindowDispatcher<T: UserEvent> { /* private fields */ }
Expand description
The Tauri [WindowDispatch
] for VersoRuntime
.
Trait Implementations§
Source§impl<T: Clone + UserEvent> Clone for VersoWindowDispatcher<T>
impl<T: Clone + UserEvent> Clone for VersoWindowDispatcher<T>
Source§fn clone(&self) -> VersoWindowDispatcher<T>
fn clone(&self) -> VersoWindowDispatcher<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<T: UserEvent> Debug for VersoWindowDispatcher<T>
impl<T: UserEvent> Debug for VersoWindowDispatcher<T>
Source§impl<T: UserEvent> WindowDispatch<T> for VersoWindowDispatcher<T>
impl<T: UserEvent> WindowDispatch<T> for VersoWindowDispatcher<T>
Source§fn on_window_event<F: Fn(&WindowEvent) + Send + 'static>(
&self,
f: F,
) -> WindowEventId
fn on_window_event<F: Fn(&WindowEvent) + Send + 'static>( &self, f: F, ) -> WindowEventId
Currently only [WindowEvent::CloseRequested
] will be emitted
Source§fn 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.
§Platform-specific
Wayland: always return PhysicalPosition { x: 0, y: 0 }
Source§fn 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.
§Platform-specific
Wayland: always return PhysicalPosition { x: 0, y: 0 }
Source§fn is_focused(&self) -> Result<bool>
fn is_focused(&self) -> Result<bool>
Unsupported, always returns false
Source§fn is_decorated(&self) -> Result<bool>
fn is_decorated(&self) -> Result<bool>
Unsupported, always returns false
Source§fn is_resizable(&self) -> Result<bool>
fn is_resizable(&self) -> Result<bool>
Unsupported, always returns true
Source§fn is_maximizable(&self) -> Result<bool>
fn is_maximizable(&self) -> Result<bool>
Unsupported, always returns true
Source§fn is_minimizable(&self) -> Result<bool>
fn is_minimizable(&self) -> Result<bool>
Unsupported, always returns true
Source§fn is_closable(&self) -> Result<bool>
fn is_closable(&self) -> Result<bool>
Unsupported, always returns true
Source§fn current_monitor(&self) -> Result<Option<Monitor>>
fn current_monitor(&self) -> Result<Option<Monitor>>
Unsupported, always returns None
Source§fn request_user_attention(
&self,
request_type: Option<UserAttentionType>,
) -> Result<()>
fn request_user_attention( &self, request_type: Option<UserAttentionType>, ) -> Result<()>
Unsupported, has no effect when called
Source§fn create_window<F: Fn(RawWindow<'_>) + Send + 'static>(
&mut self,
pending: PendingWindow<T, Self::Runtime>,
after_window_creation: Option<F>,
) -> Result<DetachedWindow<T, Self::Runtime>>
fn create_window<F: Fn(RawWindow<'_>) + Send + 'static>( &mut self, pending: PendingWindow<T, Self::Runtime>, after_window_creation: Option<F>, ) -> Result<DetachedWindow<T, Self::Runtime>>
after_window_creation
not supported
Only creating the window with a webview is supported,
will return [tauri_runtime::Error::CreateWindow
] if there is no [PendingWindow::webview
]
Source§fn create_webview(
&mut self,
pending: PendingWebview<T, Self::Runtime>,
) -> Result<DetachedWebview<T, Self::Runtime>>
fn create_webview( &mut self, pending: PendingWebview<T, Self::Runtime>, ) -> Result<DetachedWebview<T, Self::Runtime>>
Unsupported, always fail with [tauri_runtime::Error::CreateWindow
]
Source§fn set_resizable(&self, resizable: bool) -> Result<()>
fn set_resizable(&self, resizable: bool) -> Result<()>
Unsupported, has no effect when called
Source§fn set_maximizable(&self, maximizable: bool) -> Result<()>
fn set_maximizable(&self, maximizable: bool) -> Result<()>
Unsupported, has no effect when called
Source§fn set_minimizable(&self, minimizable: bool) -> Result<()>
fn set_minimizable(&self, minimizable: bool) -> Result<()>
Unsupported, has no effect when called
Source§fn set_closable(&self, closable: bool) -> Result<()>
fn set_closable(&self, closable: bool) -> Result<()>
Unsupported, has no effect when called
Source§fn set_decorations(&self, decorations: bool) -> Result<()>
fn set_decorations(&self, decorations: bool) -> Result<()>
Unsupported, has no effect when called
Source§fn set_shadow(&self, shadow: bool) -> Result<()>
fn set_shadow(&self, shadow: bool) -> Result<()>
Unsupported, has no effect when called
Source§fn set_visible_on_all_workspaces(
&self,
visible_on_all_workspaces: bool,
) -> Result<()>
fn set_visible_on_all_workspaces( &self, visible_on_all_workspaces: bool, ) -> Result<()>
Unsupported, has no effect when called
Source§fn set_content_protected(&self, protected: bool) -> Result<()>
fn set_content_protected(&self, protected: bool) -> Result<()>
Unsupported, has no effect when called
Source§fn set_min_size(&self, size: Option<Size>) -> Result<()>
fn set_min_size(&self, size: Option<Size>) -> Result<()>
Unsupported, has no effect when called
Source§fn set_max_size(&self, size: Option<Size>) -> Result<()>
fn set_max_size(&self, size: Option<Size>) -> Result<()>
Unsupported, has no effect when called
Source§fn set_skip_taskbar(&self, skip: bool) -> Result<()>
fn set_skip_taskbar(&self, skip: bool) -> Result<()>
Unsupported, has no effect when called
Source§fn set_cursor_grab(&self, grab: bool) -> Result<()>
fn set_cursor_grab(&self, grab: bool) -> Result<()>
Unsupported, has no effect when called
Source§fn set_cursor_visible(&self, visible: bool) -> Result<()>
fn set_cursor_visible(&self, visible: bool) -> Result<()>
Unsupported, has no effect when called
Source§fn set_cursor_icon(&self, icon: CursorIcon) -> Result<()>
fn set_cursor_icon(&self, icon: CursorIcon) -> Result<()>
Unsupported, has no effect when called
Source§fn set_cursor_position<Pos: Into<Position>>(&self, position: Pos) -> Result<()>
fn set_cursor_position<Pos: Into<Position>>(&self, position: Pos) -> Result<()>
Unsupported, has no effect when called
Source§fn set_ignore_cursor_events(&self, ignore: bool) -> Result<()>
fn set_ignore_cursor_events(&self, ignore: bool) -> Result<()>
Unsupported, has no effect when called
Source§fn start_resize_dragging(&self, direction: ResizeDirection) -> Result<()>
fn start_resize_dragging(&self, direction: ResizeDirection) -> Result<()>
Unsupported, has no effect when called
Source§fn set_progress_bar(&self, progress_state: ProgressBarState) -> Result<()>
fn set_progress_bar(&self, progress_state: ProgressBarState) -> Result<()>
Unsupported, has no effect when called
Source§fn set_badge_count(
&self,
count: Option<i64>,
desktop_filename: Option<String>,
) -> Result<()>
fn set_badge_count( &self, count: Option<i64>, desktop_filename: Option<String>, ) -> Result<()>
Unsupported, has no effect when called
Source§fn set_badge_label(&self, label: Option<String>) -> Result<()>
fn set_badge_label(&self, label: Option<String>) -> Result<()>
Unsupported, has no effect when called
Source§fn set_overlay_icon(&self, icon: Option<Icon<'_>>) -> Result<()>
fn set_overlay_icon(&self, icon: Option<Icon<'_>>) -> Result<()>
Unsupported, has no effect when called
Source§fn set_title_bar_style(&self, style: TitleBarStyle) -> Result<()>
fn set_title_bar_style(&self, style: TitleBarStyle) -> Result<()>
Unsupported, has no effect when called
Source§fn set_size_constraints(&self, constraints: WindowSizeConstraints) -> Result<()>
fn set_size_constraints(&self, constraints: WindowSizeConstraints) -> Result<()>
Unsupported, has no effect when called
Source§fn set_enabled(&self, enabled: bool) -> Result<()>
fn set_enabled(&self, enabled: bool) -> Result<()>
Unsupported, has no effect when called
Source§fn is_enabled(&self) -> Result<bool>
fn is_enabled(&self) -> Result<bool>
Unsupported, always returns true
Source§fn set_background_color(&self, color: Option<Color>) -> Result<()>
fn set_background_color(&self, color: Option<Color>) -> Result<()>
Unsupported, has no effect when called
Source§fn window_handle(&self) -> Result<WindowHandle<'_>, HandleError>
fn window_handle(&self) -> Result<WindowHandle<'_>, HandleError>
Unsupported, will always return an error
Source§fn is_always_on_top(&self) -> Result<bool>
fn is_always_on_top(&self) -> Result<bool>
Unsupported, always returns false
Source§fn set_traffic_light_position(&self, position: Position) -> Result<()>
fn set_traffic_light_position(&self, position: Position) -> Result<()>
Unsupported, has no effect when called
Source§type Runtime = VersoRuntime<T>
type Runtime = VersoRuntime<T>
WindowDispatch
] runs under.