|
@@ -591,7 +591,7 @@ impl<'a, R: Runtime, M: Manager<R>> WebviewWindowBuilder<'a, R, M> {
|
|
|
/// - **Windows:**
|
|
|
/// - `false` has no effect on decorated window, shadows are always ON.
|
|
|
/// - `true` will make ndecorated window have a 1px white border,
|
|
|
- /// and on Windows 11, it will have a rounded corners.
|
|
|
+ /// and on Windows 11, it will have a rounded corners.
|
|
|
/// - **Linux:** Unsupported.
|
|
|
#[must_use]
|
|
|
pub fn shadow(mut self, enable: bool) -> Self {
|
|
@@ -876,7 +876,7 @@ impl<'a, R: Runtime, M: Manager<R>> WebviewWindowBuilder<'a, R, M> {
|
|
|
///
|
|
|
/// - **Windows**: Controls WebView2's [`IsZoomControlEnabled`](https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/winrt/microsoft_web_webview2_core/corewebview2settings?view=webview2-winrt-1.0.2420.47#iszoomcontrolenabled) setting.
|
|
|
/// - **MacOS / Linux**: Injects a polyfill that zooms in and out with `ctrl/command` + `-/=`,
|
|
|
- /// 20% in each step, ranging from 20% to 1000%. Requires `webview:allow-set-webview-zoom` permission
|
|
|
+ /// 20% in each step, ranging from 20% to 1000%. Requires `webview:allow-set-webview-zoom` permission
|
|
|
///
|
|
|
/// - **Android / iOS**: Unsupported.
|
|
|
#[must_use]
|
|
@@ -1031,7 +1031,7 @@ impl<R: Runtime> WebviewWindow<R> {
|
|
|
/// ## 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.
|
|
|
+ /// window, if you need to set it, use [`AppHandle::set_menu`] instead.
|
|
|
#[cfg_attr(target_os = "macos", allow(unused_variables))]
|
|
|
pub fn set_menu(&self, menu: Menu<R>) -> crate::Result<Option<Menu<R>>> {
|
|
|
self.webview.window().set_menu(menu)
|
|
@@ -1042,7 +1042,7 @@ impl<R: Runtime> WebviewWindow<R> {
|
|
|
/// ## 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.
|
|
|
+ /// window, if you need to remove it, use [`AppHandle::remove_menu`] instead.
|
|
|
pub fn remove_menu(&self) -> crate::Result<Option<Menu<R>>> {
|
|
|
self.webview.window().remove_menu()
|
|
|
}
|
|
@@ -1395,7 +1395,7 @@ impl<R: Runtime> WebviewWindow<R> {
|
|
|
/// - **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.
|
|
|
+ /// and on Windows 11, it will have a rounded corners.
|
|
|
/// - **Linux:** Unsupported.
|
|
|
pub fn set_shadow(&self, enable: bool) -> crate::Result<()> {
|
|
|
self.webview.window().set_shadow(enable)
|
|
@@ -1680,7 +1680,7 @@ impl<R: Runtime> WebviewWindow<R> {
|
|
|
/// ## 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.
|
|
|
+ /// This is a private API on macOS, so you cannot use this if your application will be published on the App Store.
|
|
|
///
|
|
|
/// # Examples
|
|
|
///
|
|
@@ -1705,7 +1705,7 @@ impl<R: Runtime> WebviewWindow<R> {
|
|
|
/// ## 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.
|
|
|
+ /// 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
|
|
@@ -1738,7 +1738,7 @@ impl<R: Runtime> WebviewWindow<R> {
|
|
|
/// ## 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.
|
|
|
+ /// 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
|