Function raylib::core::window::get_monitor_info [−][src]
pub fn get_monitor_info(monitor: i32) -> Result<MonitorInfo, IntoStringError>
Expand description
Gets the attributes of the monitor as well as the name fails if monitor name is not a utf8 string
use std::ffi::IntoStringError;
use raylib::prelude::*;
fn main() -> Result<(), IntoStringError> {
let count = get_monitor_count();
for i in (0..count) {
println!("{:?}", get_monitor_info(i)?);
}
Ok(())
}