X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fgbase%2Fdisplay.h;h=1648fa4c8a9ab0bb25cbe7b4118cf2a06455fd19;hb=c9626e6953c16efc66575eff80c4c0de2f739041;hp=70efd20627426bed067dbd988b8cac1e1c811c4b;hpb=999ca92aa9ee10585c0b2094d84364159253982f;p=libs%2Fgui.git diff --git a/source/gbase/display.h b/source/gbase/display.h index 70efd20..1648fa4 100644 --- a/source/gbase/display.h +++ b/source/gbase/display.h @@ -1,17 +1,9 @@ -/* $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 #include #include -#include "types.h" namespace Msp { namespace Graphics { @@ -30,24 +22,22 @@ struct VideoMode class Display { +public: + struct Private; + private: -#ifndef WIN32 - ::Display *display; -#endif std::list modes; VideoMode orig_mode; - std::map windows; + Private *priv; public: Display(const std::string &disp_name=std::string()); ~Display(); -#ifndef WIN32 - ::Display *get_display() const { return display; } -#endif + const Private &get_private() const { return *priv; } - void add_window(Window *); - void remove_window(Window *); + void add_window(Window &); + void remove_window(Window &); const std::list &get_modes() const { return modes; } void set_mode(const VideoMode &);