1 #ifndef MSP_GRAPHICS_DISPLAY_H_
2 #define MSP_GRAPHICS_DISPLAY_H_
19 VideoMode(): width(0), height(0), rate(0) { }
20 VideoMode(unsigned w, unsigned h): width(w), height(h), rate(0) { }
24 class unsupported_video_mode: public std::runtime_error
27 unsupported_video_mode(const VideoMode &);
28 virtual ~unsupported_video_mode() throw () { }
38 std::list<VideoMode> modes;
43 Display(const std::string &disp_name = std::string());
46 const Private &get_private() const { return *priv; }
48 void add_window(Window &);
49 void remove_window(Window &);
51 const std::list<VideoMode> &get_modes() const { return modes; }
52 const VideoMode &get_desktop_mode() const { return orig_mode; }
53 void set_mode(const VideoMode &);
54 void restore_mode() { set_mode(orig_mode); }
58 bool process_events();
63 } // namespace Graphics