summaryrefslogtreecommitdiff
path: root/otk/surface.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-20 06:11:12 +0000
committerDana Jansens <danakj@orodu.net>2003-01-20 06:11:12 +0000
commitd8d9b42777ace234f3471918e1210062578f8188 (patch)
tree915e9aa986ba44dda4c357bc834c68b4dc550525 /otk/surface.hh
parent0ba441fe8f379ec506000f7fa29f867cb6bc0d51 (diff)
widegt using new render system
Diffstat (limited to 'otk/surface.hh')
-rw-r--r--otk/surface.hh17
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.