X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fgbase%2Fdrawcontext.h;h=27174793edb063c04b6217c0f3f9774c3d6d088f;hb=7d2b4349289578b8e7f322186a1f251684ddeb01;hp=54ae3b364a0323d3b417844b12bac90486a9a746;hpb=999ca92aa9ee10585c0b2094d84364159253982f;p=libs%2Fgui.git diff --git a/source/gbase/drawcontext.h b/source/gbase/drawcontext.h index 54ae3b3..2717479 100644 --- a/source/gbase/drawcontext.h +++ b/source/gbase/drawcontext.h @@ -1,18 +1,6 @@ -/* $Id$ - -This file is part of libmspgbase -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_GBASE_DRAWCONTEXT_H_ #define MSP_GBASE_DRAWCONTEXT_H_ -#ifndef WIN32 -#include -#include -#endif - namespace Msp { namespace Graphics { @@ -22,21 +10,19 @@ 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 &); ~DrawContext(); Window &get_window() const { return window; } - unsigned get_depth() const { return image->bits_per_pixel; } - unsigned char *get_data() { return reinterpret_cast(image->data); } + unsigned get_depth() const; + unsigned char *get_data(); void update(); };