Skip to content

Commit

Permalink
usage warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars committed Jan 7, 2025
1 parent cc887d7 commit 17f5bb8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,8 @@ pub trait WebViewBuilderExtDarwin {
/// Move the window controls to the specified position.
/// Normally this is handled by the Window but because `WebViewBuilder::build()` overwrites the window's NSView the controls will flicker on resizing.
/// Note: This method has no effects if the WebView is injected via `WebViewBuilder::build_as_child();` and there should be no flickers.
/// Note: Do not use this if your chosen window library does not support traffic light insets.
/// Warning: Do not use this if your chosen window library does not support traffic light insets.
/// Warning: Only use this in **decorated** windows with a **hidden titlebar**!
fn with_traffic_light_inset<P: Into<dpi::Position>>(self, position: P) -> Self;
}

Expand Down Expand Up @@ -1931,7 +1932,8 @@ pub trait WebViewExtMacOS {
/// Move the window controls to the specified position.
/// Normally this is handled by the Window but because `WebViewBuilder::build()` overwrites the window's NSView the controls will flicker on resizing.
/// Note: This method has no effects if the WebView is injected via `WebViewBuilder::build_as_child();` and there should be no flickers.
/// Note: Do not use this if your chosen window library does not support traffic light insets.
/// Warning: Do not use this if your chosen window library does not support traffic light insets.
/// Warning: Only use this in **decorated** windows with a **hidden titlebar**!
fn set_traffic_light_inset<P: Into<dpi::Position>>(&self, position: P) -> Result<()>;
}

Expand Down

0 comments on commit 17f5bb8

Please sign in to comment.