summaryrefslogtreecommitdiff
path: root/otk/surface.hh
diff options
context:
space:
mode:
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.