1 #ifndef __al_included_allegro5_monitor_h 2 #define __al_included_allegro5_monitor_h 3 4 #include "allegro5/base.h" 5 6 #ifdef __cplusplus 7 extern "C" { 8 #endif 9 10 11 /* Type: ALLEGRO_MONITOR_INFO 12 */ 13 typedef struct ALLEGRO_MONITOR_INFO 14 { 15 int x1; 16 int y1; 17 int x2; 18 int y2; 19 } ALLEGRO_MONITOR_INFO; 20 21 enum { 22 ALLEGRO_DEFAULT_DISPLAY_ADAPTER = -1 23 }; 24 25 AL_FUNC(int, al_get_num_video_adapters, (void)); 26 AL_FUNC(bool, al_get_monitor_info, (int adapter, ALLEGRO_MONITOR_INFO *info)); 27 AL_FUNC(int, al_get_monitor_dpi, (int adapter)); 28 #if defined(ALLEGRO_UNSTABLE) || defined(ALLEGRO_INTERNAL_UNSTABLE) || defined(ALLEGRO_SRC) 29 AL_FUNC(int, al_get_monitor_refresh_rate, (int adapter)); 30 #endif 31 32 #ifdef __cplusplus 33 } 34 #endif 35 36 #endif 37 38 /* vim: set ts=8 sts=3 sw=3 et: */ 39