Skip to main content

workspace_aspect_ratio

Function workspace_aspect_ratio 

fn workspace_aspect_ratio(workspace_area: &WorkspaceArea) -> f64
Expand description

Return the workspace area’s aspect ratio (width / height) including the frame padding the tiler accounts for.

§Arguments

  • workspace_area - Available workspace minus the daemon console.

§Returns

Aspect ratio as a f64 for use by both the tiler and the navigation grid.