1 #ifndef MSP_GRAPHICS_DISPLAY_H_
2 #define MSP_GRAPHICS_DISPLAY_H_
7 #include "errordialog.h"
22 std::list<Monitor> monitors;
23 Monitor *primary_monitor;
24 std::list<VideoMode> modes;
26 ErrorDialog *err_dialog;
29 Display(const std::string &disp_name = std::string());
32 const Private &get_private() const { return *priv; }
34 void add_window(Window &);
35 void remove_window(Window &);
37 const std::list<Monitor> &get_monitors() const { return monitors; }
38 const std::list<VideoMode> &get_modes() const { return modes; }
39 const VideoMode &get_desktop_mode() const;
40 void set_mode(const VideoMode &, bool = false);
42 const VideoMode *find_mode(const VideoMode &) const;
43 const VideoMode *find_mode(unsigned, unsigned) const;
47 bool process_events();
52 } // namespace Graphics