Skip to main content

platform_title_bar_height

Function platform_title_bar_height 

Source
pub fn platform_title_bar_height(window: &Window) -> Pixels
Expand description

Returns the platform-appropriate title bar height.

On Windows, this returns a fixed height of 32px. On other platforms, it scales with the window’s rem size (1.75x) with a minimum of 34px.