[][src]Function tetra::window::get_current_monitor_width

pub fn get_current_monitor_width(ctx: &Context) -> Result<i32>

Get the width of the monitor that the window is currently on.

Errors

  • TetraError::PlatformError will be returned if the monitor state was inaccessible.