]> git.tdb.fi Git - libs/gui.git/blobdiff - source/gbase/drawcontext.h
Hide the platform-specific parts of other classes as well
[libs/gui.git] / source / gbase / drawcontext.h
index b21ac3cde57714bbdc8c05d75bf594a718ff808f..1411294072bbe0625d63d63ff97b1b5114827436 100644 (file)
@@ -1,18 +1,13 @@
 /* $Id$
 
 This file is part of libmspgbase
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
+Copyright © 200 Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
 #ifndef MSP_GBASE_DRAWCONTEXT_H_
 #define MSP_GBASE_DRAWCONTEXT_H_
 
-#ifndef WIN32
-#include <X11/Xlib.h>
-#include <X11/extensions/XShm.h>
-#endif
-
 namespace Msp {
 namespace Graphics {
 
@@ -22,13 +17,11 @@ class Window;
 class DrawContext
 {
 private:
+       struct Private;
+
        Display &display;
        Window &window;
-#ifndef WIN32
-       XImage *image;
-       bool use_shm;
-       XShmSegmentInfo shminfo;
-#endif
+       Private *priv;
 
 public:
        DrawContext(Window &);