]> git.tdb.fi Git - libs/gui.git/blobdiff - source/display.h
Reorganize files to separate gbase and input
[libs/gui.git] / source / display.h
diff --git a/source/display.h b/source/display.h
deleted file mode 100644 (file)
index 70efd20..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-/* $Id$
-
-This file is part of libmspgbase
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
-#ifndef MSP_GBASE_DISPLAY_H_
-#define MSP_GBASE_DISPLAY_H_
-
-#include <list>
-#include <map>
-#include <string>
-#include "types.h"
-
-namespace Msp {
-namespace Graphics {
-
-class Window;
-
-struct VideoMode
-{
-       unsigned width;
-       unsigned height;
-       unsigned rate;
-
-       VideoMode(): width(0), height(0), rate(0) { }
-       VideoMode(unsigned w, unsigned h): width(w), height(h), rate(0) { }
-};
-
-class Display
-{
-private:
-#ifndef WIN32
-       ::Display *display;
-#endif
-       std::list<VideoMode> modes;
-       VideoMode orig_mode;
-       std::map<WindowHandle, Window *> windows;
-
-public:
-       Display(const std::string &disp_name=std::string());
-       ~Display();
-
-#ifndef WIN32
-       ::Display *get_display() const { return display; }
-#endif
-
-       void add_window(Window *);
-       void remove_window(Window *);
-
-       const std::list<VideoMode> &get_modes() const { return modes; }
-       void set_mode(const VideoMode &);
-       void restore_mode() { set_mode(orig_mode); }
-
-       void tick();
-       void check_error();
-};
-
-} // namespace Graphics
-} // namespace Msp
-
-#endif