X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgbase%2Fdisplay.h;h=a827f50f11b1291eabca029380c3f901d73dda50;hb=fcd5f24311fcfe772825a75678e038749401a9be;hp=70efd20627426bed067dbd988b8cac1e1c811c4b;hpb=fbefc4904d290205658209bbe2392b4b7f9e2711;p=libs%2Fgui.git diff --git a/source/gbase/display.h b/source/gbase/display.h index 70efd20..a827f50 100644 --- a/source/gbase/display.h +++ b/source/gbase/display.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of libmspgbase -Copyright © 2007 Mikko Rasa, Mikkosoft Productions +Copyright © 2007-2008 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ @@ -11,7 +11,6 @@ Distributed under the LGPL #include #include #include -#include "types.h" namespace Msp { namespace Graphics { @@ -30,24 +29,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 &);