3 This file is part of libmspgbase
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GBASE_DISPLAY_H_
9 #define MSP_GBASE_DISPLAY_H_
27 VideoMode(): width(0), height(0), rate(0) { }
28 VideoMode(unsigned w, unsigned h): width(w), height(h), rate(0) { }
37 std::list<VideoMode> modes;
39 std::map<WindowHandle, Window *> windows;
42 Display(const std::string &disp_name=std::string());
46 ::Display *get_display() const { return display; }
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