3 This file is part of libmspgbase
4 Copyright © 2007-2008 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GBASE_DISPLAY_H_
9 #define MSP_GBASE_DISPLAY_H_
26 VideoMode(): width(0), height(0), rate(0) { }
27 VideoMode(unsigned w, unsigned h): width(w), height(h), rate(0) { }
36 std::list<VideoMode> modes;
41 Display(const std::string &disp_name=std::string());
44 const Private &get_private() const { return *priv; }
46 void add_window(Window &);
47 void remove_window(Window &);
49 const std::list<VideoMode> &get_modes() const { return modes; }
50 void set_mode(const VideoMode &);
51 void restore_mode() { set_mode(orig_mode); }
57 } // namespace Graphics