mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
Add eframe::WindowChromeMetrics (macOS only) (#8015)
When using `egui::ViewportBuilder::with_fullsize_content_view` one must be careful not to paint anything where the "traffic light" buttons are: <img width="87" height="47" alt="image" src="https://github.com/user-attachments/assets/0e878c8e-7141-4fed-bbc8-4d542ddb5251" /> `eframe::WindowChromeMetrics` helps you with that!
This commit is contained in:
@@ -190,6 +190,9 @@ pub use web::{WebLogger, WebRunner};
|
||||
#[cfg(any(feature = "glow", feature = "wgpu_no_default_features"))]
|
||||
mod native;
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
pub use native::macos::WindowChromeMetrics;
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
#[cfg(any(feature = "glow", feature = "wgpu_no_default_features"))]
|
||||
pub use native::run::EframeWinitApplication;
|
||||
|
||||
Reference in New Issue
Block a user