From d8d9b42777ace234f3471918e1210062578f8188 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 20 Jan 2003 06:11:12 +0000 Subject: widegt using new render system --- otk/surface.hh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'otk/surface.hh') diff --git a/otk/surface.hh b/otk/surface.hh index c21a65f3..d325b393 100644 --- a/otk/surface.hh +++ b/otk/surface.hh @@ -18,26 +18,27 @@ class ScreenInfo; class Surface { int _screen; Point _size; - Pixmap _pm; + Pixmap _pixmap; XftDraw *_xftdraw; +protected: void createObjects(); void destroyObjects(); - -protected: - Surface(int screen); - Surface(int screen, const Point &size); - - virtual void setSize(int w, int h); + void setPixmap(XImage *image); + void setPixmap(const Color &color); + public: + Surface(int screen, const Point &size); virtual ~Surface(); inline int screen(void) const { return _screen; } + virtual const Point& size() const { return _size; } virtual int width() const { return _size.x(); } virtual int height() const { return _size.y(); } - virtual Pixmap pixmap() const { return _pm; } // TEMP + + virtual Pixmap pixmap() const { return _pixmap; } // The RenderControl classes use the internal objects in this class to render // to it. Noone else needs them tho, so they are private. -- cgit v1.2.3