allegro_sys/
monitor.rs

1// Copyright (c) 2014 by SiegeLord
2//
3// All rights reserved. Distributed under ZLib. For full terms see the file LICENSE.
4
5use allegro_util::c_bool;
6use libc::*;
7
8#[repr(C)]
9#[derive(Copy, Clone)]
10pub struct ALLEGRO_MONITOR_INFO
11{
12	pub x1: c_int,
13	pub y1: c_int,
14	pub x2: c_int,
15	pub y2: c_int,
16}
17
18pub const ALLEGRO_DEFAULT_DISPLAY_ADAPTER: i32 = -1;
19
20unsafe extern "C" {
21	pub fn al_get_num_video_adapters() -> c_int;
22	pub fn al_get_monitor_info(adapter: c_int, info: *const ALLEGRO_MONITOR_INFO) -> c_bool;
23}