Struct tauri::webview::WebviewWindow
source · pub struct WebviewWindow<R: Runtime = Wry> { /* private fields */ }
Expand description
A type that wraps a [Window
] together with a Webview
.
Implementations§
source§impl<R: Runtime> WebviewWindow<R>
impl<R: Runtime> WebviewWindow<R>
Base webview window functions.
sourcepub fn builder<M: Manager<R>, L: Into<String>>(
manager: &M,
label: L,
url: WebviewUrl
) -> WebviewWindowBuilder<'_, R, M>
pub fn builder<M: Manager<R>, L: Into<String>>( manager: &M, label: L, url: WebviewUrl ) -> WebviewWindowBuilder<'_, R, M>
Initializes a WebviewWindowBuilder
with the given window label and webview URL.
Data URLs are only supported with the webview-data-url
feature flag.
sourcepub fn run_on_main_thread<F: FnOnce() + Send + 'static>(
&self,
f: F
) -> Result<()>
pub fn run_on_main_thread<F: FnOnce() + Send + 'static>( &self, f: F ) -> Result<()>
Runs the given closure on the main thread.
sourcepub fn on_window_event<F: Fn(&WindowEvent) + Send + 'static>(&self, f: F)
pub fn on_window_event<F: Fn(&WindowEvent) + Send + 'static>(&self, f: F)
Registers a window event listener.
source§impl<R: Runtime> WebviewWindow<R>
impl<R: Runtime> WebviewWindow<R>
Menu APIs
Registers a global menu event listener.
Note that this handler is called for any menu event, whether it is coming from this window, another window or from the tray icon menu.
Also note that this handler will not be called if the window used to register it was closed.
§Examples
use tauri::menu::{Menu, Submenu, MenuItem};
tauri::Builder::default()
.setup(|app| {
let handle = app.handle();
let save_menu_item = MenuItem::new(handle, "Save", true, None::<&str>)?;
let menu = Menu::with_items(handle, &[
&Submenu::with_items(handle, "File", true, &[
&save_menu_item,
])?,
])?;
let webview_window = tauri::window::WindowBuilder::new(app, "editor")
.menu(menu)
.build()
.unwrap();
webview_window.on_menu_event(move |window, event| {
if event.id == save_menu_item.id() {
// save menu item
}
});
Ok(())
});
Returns this window menu .
Sets the window menu and returns the previous one.
§Platform-specific:
- macOS: Unsupported. The menu on macOS is app-wide and not specific to one
window, if you need to set it, use
AppHandle::set_menu
instead.
Removes the window menu and returns it.
§Platform-specific:
- macOS: Unsupported. The menu on macOS is app-wide and not specific to one
window, if you need to remove it, use
AppHandle::remove_menu
instead.
Hides the window menu.
Shows the window menu.
Shows the window menu.
Shows the specified menu as a context menu at the cursor position.
Shows the specified menu as a context menu at the specified position.
The position is relative to the window’s top-left corner.
source§impl<R: Runtime> WebviewWindow<R>
impl<R: Runtime> WebviewWindow<R>
Window getters.
sourcepub fn scale_factor(&self) -> Result<f64>
pub fn scale_factor(&self) -> Result<f64>
Returns the scale factor that can be used to map logical pixels to physical pixels, and vice versa.
sourcepub fn inner_position(&self) -> Result<PhysicalPosition<i32>>
pub 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.
sourcepub fn outer_position(&self) -> Result<PhysicalPosition<i32>>
pub 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.
sourcepub fn inner_size(&self) -> Result<PhysicalSize<u32>>
pub fn inner_size(&self) -> Result<PhysicalSize<u32>>
Returns the physical size of the window’s client area.
The client area is the content of the window, excluding the title bar and borders.
sourcepub fn outer_size(&self) -> Result<PhysicalSize<u32>>
pub fn outer_size(&self) -> Result<PhysicalSize<u32>>
Returns the physical size of the entire window.
These dimensions include the title bar and borders. If you don’t want that (and you usually don’t), use inner_size instead.
sourcepub fn is_fullscreen(&self) -> Result<bool>
pub fn is_fullscreen(&self) -> Result<bool>
Gets the window’s current fullscreen state.
sourcepub fn is_minimized(&self) -> Result<bool>
pub fn is_minimized(&self) -> Result<bool>
Gets the window’s current minimized state.
sourcepub fn is_maximized(&self) -> Result<bool>
pub fn is_maximized(&self) -> Result<bool>
Gets the window’s current maximized state.
sourcepub fn is_focused(&self) -> Result<bool>
pub fn is_focused(&self) -> Result<bool>
Gets the window’s current focus state.
sourcepub fn is_decorated(&self) -> Result<bool>
pub fn is_decorated(&self) -> Result<bool>
Gets the window’s current decoration state.
sourcepub fn is_resizable(&self) -> Result<bool>
pub fn is_resizable(&self) -> Result<bool>
Gets the window’s current resizable state.
sourcepub fn is_maximizable(&self) -> Result<bool>
pub fn is_maximizable(&self) -> Result<bool>
Gets the window’s native maximize button state
§Platform-specific
- Linux / iOS / Android: Unsupported.
sourcepub fn is_minimizable(&self) -> Result<bool>
pub fn is_minimizable(&self) -> Result<bool>
Gets the window’s native minimize button state
§Platform-specific
- Linux / iOS / Android: Unsupported.
sourcepub fn is_closable(&self) -> Result<bool>
pub fn is_closable(&self) -> Result<bool>
sourcepub fn is_visible(&self) -> Result<bool>
pub fn is_visible(&self) -> Result<bool>
Gets the window’s current visibility state.
sourcepub fn current_monitor(&self) -> Result<Option<Monitor>>
pub fn current_monitor(&self) -> Result<Option<Monitor>>
Returns the monitor on which the window currently resides.
Returns None if current monitor can’t be detected.
sourcepub fn primary_monitor(&self) -> Result<Option<Monitor>>
pub fn primary_monitor(&self) -> Result<Option<Monitor>>
Returns the primary monitor of the system.
Returns None if it can’t identify any monitor as a primary one.
sourcepub fn available_monitors(&self) -> Result<Vec<Monitor>>
pub fn available_monitors(&self) -> Result<Vec<Monitor>>
Returns the list of all the monitors available on the system.
sourcepub fn gtk_window(&self) -> Result<ApplicationWindow>
pub fn gtk_window(&self) -> Result<ApplicationWindow>
Returns the ApplicationWindow
from gtk crate that is used by this window.
Note that this type can only be used on the main thread.
sourcepub fn default_vbox(&self) -> Result<Box>
pub fn default_vbox(&self) -> Result<Box>
Returns the vertical gtk::Box
that is added by default as the sole child of this window.
Note that this type can only be used on the main thread.
source§impl<R: Runtime> WebviewWindow<R>
impl<R: Runtime> WebviewWindow<R>
Desktop window setters and actions.
sourcepub fn request_user_attention(
&self,
request_type: Option<UserAttentionType>
) -> Result<()>
pub fn request_user_attention( &self, request_type: Option<UserAttentionType> ) -> Result<()>
Requests user attention to the window, this has no effect if the application
is already focused. How requesting for user attention manifests is platform dependent,
see UserAttentionType
for details.
Providing None
will unset the request for user attention. Unsetting the request for
user attention might not be done automatically by the WM when the window receives input.
§Platform-specific
- macOS:
None
has no effect. - Linux: Urgency levels have the same effect.
sourcepub fn set_resizable(&self, resizable: bool) -> Result<()>
pub fn set_resizable(&self, resizable: bool) -> Result<()>
Determines if this window should be resizable. When resizable is set to false, native window’s maximize button is automatically disabled.
sourcepub fn set_maximizable(&self, maximizable: bool) -> Result<()>
pub fn set_maximizable(&self, maximizable: bool) -> Result<()>
Determines if this window’s native maximize button should be enabled. If resizable is set to false, this setting is ignored.
§Platform-specific
- macOS: Disables the “zoom” button in the window titlebar, which is also used to enter fullscreen mode.
- Linux / iOS / Android: Unsupported.
sourcepub fn set_minimizable(&self, minimizable: bool) -> Result<()>
pub fn set_minimizable(&self, minimizable: bool) -> Result<()>
Determines if this window’s native minimize button should be enabled.
§Platform-specific
- Linux / iOS / Android: Unsupported.
sourcepub fn set_closable(&self, closable: bool) -> Result<()>
pub fn set_closable(&self, closable: bool) -> Result<()>
Determines if this window’s native close button should be enabled.
§Platform-specific
- Linux: “GTK+ will do its best to convince the window manager not to show a close button. Depending on the system, this function may not have any effect when called on a window that is already visible”
- iOS / Android: Unsupported.
sourcepub fn unmaximize(&self) -> Result<()>
pub fn unmaximize(&self) -> Result<()>
Un-maximizes this window.
sourcepub fn unminimize(&self) -> Result<()>
pub fn unminimize(&self) -> Result<()>
Un-minimizes this window.
sourcepub fn close(&self) -> Result<()>
pub fn close(&self) -> Result<()>
Closes this window. It emits [crate::RunEvent::CloseRequested
] first like a user-initiated close request so you can intercept it.
sourcepub fn destroy(&self) -> Result<()>
pub fn destroy(&self) -> Result<()>
Destroys this window. Similar to Self::close
but does not emit any events and force close the window instead.
sourcepub fn set_decorations(&self, decorations: bool) -> Result<()>
pub fn set_decorations(&self, decorations: bool) -> Result<()>
Determines if this window should be decorated.
sourcepub fn set_shadow(&self, enable: bool) -> Result<()>
pub fn set_shadow(&self, enable: bool) -> Result<()>
Determines if this window should have shadow.
§Platform-specific
- Windows:
false
has no effect on decorated window, shadow are always ON.true
will make ndecorated window have a 1px white border, and on Windows 11, it will have a rounded corners.
- Linux: Unsupported.
sourcepub fn set_effects<E: Into<Option<WindowEffectsConfig>>>(
&self,
effects: E
) -> Result<()>
pub fn set_effects<E: Into<Option<WindowEffectsConfig>>>( &self, effects: E ) -> Result<()>
Sets window effects, pass None
to clear any effects applied if possible.
Requires the window to be transparent.
See crate::window::EffectsBuilder
for a convenient builder for crate::utils::config::WindowEffectsConfig
.
use tauri::{Manager, window::{Color, Effect, EffectState, EffectsBuilder}};
tauri::Builder::default()
.setup(|app| {
let webview_window = app.get_webview_window("main").unwrap();
webview_window.set_effects(
EffectsBuilder::new()
.effect(Effect::Popover)
.state(EffectState::Active)
.radius(5.)
.color(Color(0, 0, 0, 255))
.build(),
)?;
Ok(())
});
§Platform-specific:
- Windows: If using decorations or shadows, you may want to try this workaround https://github.com/tauri-apps/tao/issues/72#issuecomment-975607891
- Linux: Unsupported
sourcepub fn set_always_on_bottom(&self, always_on_bottom: bool) -> Result<()>
pub fn set_always_on_bottom(&self, always_on_bottom: bool) -> Result<()>
Determines if this window should always be below other windows.
sourcepub fn set_always_on_top(&self, always_on_top: bool) -> Result<()>
pub fn set_always_on_top(&self, always_on_top: bool) -> Result<()>
Determines if this window should always be on top of other windows.
sourcepub fn set_visible_on_all_workspaces(
&self,
visible_on_all_workspaces: bool
) -> Result<()>
pub fn set_visible_on_all_workspaces( &self, visible_on_all_workspaces: bool ) -> Result<()>
Sets whether the window should be visible on all workspaces or virtual desktops.
sourcepub fn set_content_protected(&self, protected: bool) -> Result<()>
pub fn set_content_protected(&self, protected: bool) -> Result<()>
Prevents the window contents from being captured by other apps.
sourcepub fn set_min_size<S: Into<Size>>(&self, size: Option<S>) -> Result<()>
pub fn set_min_size<S: Into<Size>>(&self, size: Option<S>) -> Result<()>
Sets this window’s minimum size.
sourcepub fn set_max_size<S: Into<Size>>(&self, size: Option<S>) -> Result<()>
pub fn set_max_size<S: Into<Size>>(&self, size: Option<S>) -> Result<()>
Sets this window’s maximum size.
sourcepub fn set_position<Pos: Into<Position>>(&self, position: Pos) -> Result<()>
pub fn set_position<Pos: Into<Position>>(&self, position: Pos) -> Result<()>
Sets this window’s position.
sourcepub fn set_fullscreen(&self, fullscreen: bool) -> Result<()>
pub fn set_fullscreen(&self, fullscreen: bool) -> Result<()>
Determines if this window should be fullscreen.
sourcepub fn set_skip_taskbar(&self, skip: bool) -> Result<()>
pub fn set_skip_taskbar(&self, skip: bool) -> Result<()>
sourcepub fn set_cursor_grab(&self, grab: bool) -> Result<()>
pub fn set_cursor_grab(&self, grab: bool) -> Result<()>
Grabs the cursor, preventing it from leaving the window.
There’s no guarantee that the cursor will be hidden. You should hide it by yourself if you want so.
§Platform-specific
- Linux: Unsupported.
- macOS: This locks the cursor in a fixed location, which looks visually awkward.
sourcepub fn set_cursor_visible(&self, visible: bool) -> Result<()>
pub fn set_cursor_visible(&self, visible: bool) -> Result<()>
Modifies the cursor’s visibility.
If false
, this will hide the cursor. If true
, this will show the cursor.
§Platform-specific
- Windows: The cursor is only hidden within the confines of the window.
- macOS: The cursor is hidden as long as the window has input focus, even if the cursor is outside of the window.
sourcepub fn set_cursor_icon(&self, icon: CursorIcon) -> Result<()>
pub fn set_cursor_icon(&self, icon: CursorIcon) -> Result<()>
Modifies the cursor icon of the window.
sourcepub fn set_cursor_position<Pos: Into<Position>>(
&self,
position: Pos
) -> Result<()>
pub fn set_cursor_position<Pos: Into<Position>>( &self, position: Pos ) -> Result<()>
Changes the position of the cursor in window coordinates.
sourcepub fn set_ignore_cursor_events(&self, ignore: bool) -> Result<()>
pub fn set_ignore_cursor_events(&self, ignore: bool) -> Result<()>
Ignores the window cursor events.
sourcepub fn start_dragging(&self) -> Result<()>
pub fn start_dragging(&self) -> Result<()>
Starts dragging the window.
sourcepub fn set_progress_bar(&self, progress_state: ProgressBarState) -> Result<()>
pub fn set_progress_bar(&self, progress_state: ProgressBarState) -> Result<()>
Sets the taskbar progress state.
§Platform-specific
- Linux / macOS: Progress bar is app-wide and not specific to this window.
- Linux: Only supported desktop environments with
libunity
(e.g. GNOME). - iOS / Android: Unsupported.
source§impl<R: Runtime> WebviewWindow<R>
impl<R: Runtime> WebviewWindow<R>
Desktop webview setters and actions.
source§impl<R: Runtime> WebviewWindow<R>
impl<R: Runtime> WebviewWindow<R>
Webview APIs.
sourcepub fn with_webview<F: FnOnce(PlatformWebview) + Send + 'static>(
&self,
f: F
) -> Result<()>
pub fn with_webview<F: FnOnce(PlatformWebview) + Send + 'static>( &self, f: F ) -> Result<()>
Executes a closure, providing it with the webview handle that is specific to the current platform.
The closure is executed on the main thread.
§Examples
#[cfg(target_os = "macos")]
#[macro_use]
extern crate objc;
use tauri::Manager;
fn main() {
tauri::Builder::default()
.setup(|app| {
let main_webview = app.get_webview_window("main").unwrap();
main_webview.with_webview(|webview| {
#[cfg(target_os = "linux")]
{
// see https://docs.rs/webkit2gtk/2.0.0/webkit2gtk/struct.WebView.html
// and https://docs.rs/webkit2gtk/2.0.0/webkit2gtk/trait.WebViewExt.html
use webkit2gtk::WebViewExt;
webview.inner().set_zoom_level(4.);
}
#[cfg(windows)]
unsafe {
// see https://docs.rs/webview2-com/0.19.1/webview2_com/Microsoft/Web/WebView2/Win32/struct.ICoreWebView2Controller.html
webview.controller().SetZoomFactor(4.).unwrap();
}
#[cfg(target_os = "macos")]
unsafe {
let () = msg_send![webview.inner(), setPageZoom: 4.];
let () = msg_send![webview.controller(), removeAllUserScripts];
let bg_color: cocoa::base::id = msg_send![class!(NSColor), colorWithDeviceRed:0.5 green:0.2 blue:0.4 alpha:1.];
let () = msg_send![webview.ns_window(), setBackgroundColor: bg_color];
}
#[cfg(target_os = "android")]
{
use jni::objects::JValue;
webview.jni_handle().exec(|env, _, webview| {
env.call_method(webview, "zoomBy", "(F)V", &[JValue::Float(4.)]).unwrap();
})
}
});
Ok(())
});
}
Navigates the webview to the defined url.
sourcepub fn on_message(
self,
request: InvokeRequest,
responder: Box<OwnedInvokeResponder<R>>
)
pub fn on_message( self, request: InvokeRequest, responder: Box<OwnedInvokeResponder<R>> )
Handles this window receiving an crate::webview::InvokeRequest
.
sourcepub fn open_devtools(&self)
Available on debug-assertions enabled or crate feature devtools
only.
pub fn open_devtools(&self)
devtools
only.Opens the developer tools window (Web Inspector).
The devtools is only enabled on debug builds or with the devtools
feature flag.
§Platform-specific
- macOS: Only supported on macOS 10.15+. This is a private API on macOS, so you cannot use this if your application will be published on the App Store.
§Examples
use tauri::Manager;
tauri::Builder::default()
.setup(|app| {
#[cfg(debug_assertions)]
app.get_webview("main").unwrap().open_devtools();
Ok(())
});
sourcepub fn close_devtools(&self)
Available on debug-assertions enabled or crate feature devtools
only.
pub fn close_devtools(&self)
devtools
only.Closes the developer tools window (Web Inspector).
The devtools is only enabled on debug builds or with the devtools
feature flag.
§Platform-specific
- macOS: Only supported on macOS 10.15+. This is a private API on macOS, so you cannot use this if your application will be published on the App Store.
- Windows: Unsupported.
§Examples
use tauri::Manager;
tauri::Builder::default()
.setup(|app| {
#[cfg(debug_assertions)]
{
let webview = app.get_webview("main").unwrap();
webview.open_devtools();
std::thread::spawn(move || {
std::thread::sleep(std::time::Duration::from_secs(10));
webview.close_devtools();
});
}
Ok(())
});
sourcepub fn is_devtools_open(&self) -> bool
Available on debug-assertions enabled or crate feature devtools
only.
pub fn is_devtools_open(&self) -> bool
devtools
only.Checks if the developer tools window (Web Inspector) is opened.
The devtools is only enabled on debug builds or with the devtools
feature flag.
§Platform-specific
- macOS: Only supported on macOS 10.15+. This is a private API on macOS, so you cannot use this if your application will be published on the App Store.
- Windows: Unsupported.
§Examples
use tauri::Manager;
tauri::Builder::default()
.setup(|app| {
#[cfg(debug_assertions)]
{
let webview = app.get_webview("main").unwrap();
if !webview.is_devtools_open() {
webview.open_devtools();
}
}
Ok(())
});
source§impl<R: Runtime> WebviewWindow<R>
impl<R: Runtime> WebviewWindow<R>
Event system APIs.
sourcepub fn listen<F>(&self, event: impl Into<String>, handler: F) -> EventId
pub fn listen<F>(&self, event: impl Into<String>, handler: F) -> EventId
Listen to an event on this webview window.
§Examples
use tauri::Manager;
tauri::Builder::default()
.setup(|app| {
let webview = app.get_webview("main").unwrap();
webview.listen("component-loaded", move |event| {
println!("window just loaded a component");
});
Ok(())
});
sourcepub fn unlisten(&self, id: EventId)
pub fn unlisten(&self, id: EventId)
Unlisten to an event on this webview window.
§Examples
use tauri::Manager;
tauri::Builder::default()
.setup(|app| {
let webview = app.get_webview("main").unwrap();
let webview_ = webview.clone();
let handler = webview.listen("component-loaded", move |event| {
println!("webview just loaded a component");
// we no longer need to listen to the event
// we also could have used `webview.once` instead
webview_.unlisten(event.id());
});
// stop listening to the event when you do not need it anymore
webview.unlisten(handler);
Ok(())
});
Trait Implementations§
source§impl<R: Runtime> Clone for WebviewWindow<R>
impl<R: Runtime> Clone for WebviewWindow<R>
source§impl<'de, R: Runtime> CommandArg<'de, R> for WebviewWindow<R>
impl<'de, R: Runtime> CommandArg<'de, R> for WebviewWindow<R>
source§fn from_command(command: CommandItem<'de, R>) -> Result<Self, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<Self, InvokeError>
Grabs the [Window
] from the CommandItem
. This will never fail.
source§impl<R: Runtime> HasDisplayHandle for WebviewWindow<R>
impl<R: Runtime> HasDisplayHandle for WebviewWindow<R>
source§fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>
fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>
source§impl<R: Runtime> HasWindowHandle for WebviewWindow<R>
impl<R: Runtime> HasWindowHandle for WebviewWindow<R>
source§fn window_handle(&self) -> Result<WindowHandle<'_>, HandleError>
fn window_handle(&self) -> Result<WindowHandle<'_>, HandleError>
source§impl<R: Runtime> Manager<R> for WebviewWindow<R>
impl<R: Runtime> Manager<R> for WebviewWindow<R>
source§fn resources_table(&self) -> MutexGuard<'_, ResourceTable>
fn resources_table(&self) -> MutexGuard<'_, ResourceTable>
source§fn app_handle(&self) -> &AppHandle<R>
fn app_handle(&self) -> &AppHandle<R>
source§fn package_info(&self) -> &PackageInfo
fn package_info(&self) -> &PackageInfo
PackageInfo
the manager was created with.source§fn get_window(&self, label: &str) -> Option<Window<R>>
fn get_window(&self, label: &str) -> Option<Window<R>>
unstable
only.source§fn get_focused_window(&self) -> Option<Window<R>>
fn get_focused_window(&self) -> Option<Window<R>>
unstable
only.None
if there is not any focused window.source§fn windows(&self) -> HashMap<String, Window<R>>
fn windows(&self) -> HashMap<String, Window<R>>
unstable
only.source§fn get_webview(&self, label: &str) -> Option<Webview<R>>
fn get_webview(&self, label: &str) -> Option<Webview<R>>
unstable
only.source§fn webviews(&self) -> HashMap<String, Webview<R>>
fn webviews(&self) -> HashMap<String, Webview<R>>
unstable
only.source§fn get_webview_window(&self, label: &str) -> Option<WebviewWindow<R>>
fn get_webview_window(&self, label: &str) -> Option<WebviewWindow<R>>
source§fn webview_windows(&self) -> HashMap<String, WebviewWindow<R>>
fn webview_windows(&self) -> HashMap<String, WebviewWindow<R>>
source§fn manage<T>(&self, state: T) -> bool
fn manage<T>(&self, state: T) -> bool
state
to the state managed by the application. Read moresource§fn try_state<T>(&self) -> Option<State<'_, T>>
fn try_state<T>(&self) -> Option<State<'_, T>>
T
. Read moresource§fn asset_protocol_scope(&self) -> Scope
fn asset_protocol_scope(&self) -> Scope
source§fn path(&self) -> &PathResolver<R>
fn path(&self) -> &PathResolver<R>
source§fn add_capability(&self, capability: impl RuntimeCapability) -> Result<()>
fn add_capability(&self, capability: impl RuntimeCapability) -> Result<()>
source§impl<R: Runtime> PartialEq for WebviewWindow<R>
impl<R: Runtime> PartialEq for WebviewWindow<R>
impl<R: Runtime> Eq for WebviewWindow<R>
Auto Trait Implementations§
impl<R> Freeze for WebviewWindow<R>where
<R as Runtime<EventLoopMessage>>::Handle: Freeze,
<R as Runtime<EventLoopMessage>>::WebviewDispatcher: Freeze,
impl<R = Wry<EventLoopMessage>> !RefUnwindSafe for WebviewWindow<R>
impl<R> Send for WebviewWindow<R>
impl<R> Sync for WebviewWindow<R>
impl<R> Unpin for WebviewWindow<R>where
<R as Runtime<EventLoopMessage>>::Handle: Unpin,
<R as Runtime<EventLoopMessage>>::WebviewDispatcher: Unpin,
impl<R = Wry<EventLoopMessage>> !UnwindSafe for WebviewWindow<R>
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<T> HasRawDisplayHandle for Twhere
T: HasDisplayHandle + ?Sized,
impl<T> HasRawDisplayHandle for Twhere
T: HasDisplayHandle + ?Sized,
source§fn raw_display_handle(&self) -> Result<RawDisplayHandle, HandleError>
fn raw_display_handle(&self) -> Result<RawDisplayHandle, HandleError>
HasDisplayHandle
insteadsource§impl<T> HasRawWindowHandle for Twhere
T: HasWindowHandle + ?Sized,
impl<T> HasRawWindowHandle for Twhere
T: HasWindowHandle + ?Sized,
source§fn raw_window_handle(&self) -> Result<RawWindowHandle, HandleError>
fn raw_window_handle(&self) -> Result<RawWindowHandle, HandleError>
HasWindowHandle
instead