diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-20 06:11:12 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-20 06:11:12 +0000 |
| commit | d8d9b42777ace234f3471918e1210062578f8188 (patch) | |
| tree | 915e9aa986ba44dda4c357bc834c68b4dc550525 /otk/surface.hh | |
| parent | 0ba441fe8f379ec506000f7fa29f867cb6bc0d51 (diff) | |
widegt using new render system
Diffstat (limited to 'otk/surface.hh')
| -rw-r--r-- | otk/surface.hh | 17 |
1 files changed, 9 insertions, 8 deletions
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. |
