1 #ifndef MSP_GRAPHICS_DISPLAY_H_
2 #define MSP_GRAPHICS_DISPLAY_H_
20 VideoMode(): width(0), height(0), rate(0) { }
21 VideoMode(unsigned w, unsigned h): width(w), height(h), rate(0) { }
25 class unsupported_video_mode: public std::runtime_error
28 unsupported_video_mode(const VideoMode &);
29 virtual ~unsupported_video_mode() throw () { }
39 std::list<VideoMode> modes;
44 Display(const std::string &disp_name = std::string());
47 const Private &get_private() const { return *priv; }
49 void add_window(Window &);
50 void remove_window(Window &);
52 const std::list<VideoMode> &get_modes() const { return modes; }
53 void set_mode(const VideoMode &);
54 void restore_mode() { set_mode(orig_mode); }
60 } // namespace Graphics