1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
6 #include "truerendercontrol.hh"
7 #include "pseudorendercontrol.hh"
11 #define _XFT_NO_COMPAT_ // no Xft 1 API
12 #include <X11/Xft/Xft.h>
28 void destroyObjects();
30 void setPixmap(XImage *image);
31 void setPixmap(const RenderColor &color);
34 Surface(int screen, const Point &size);
37 inline int screen(void) const { return _screen; }
39 virtual const Point& size() const { return _size; }
40 virtual int width() const { return _size.x(); }
41 virtual int height() const { return _size.y(); }
43 virtual Pixmap pixmap() const { return _pixmap; }
45 // The RenderControl classes use the internal objects in this class to render
46 // to it. Noone else needs them tho, so they are private.
47 friend class RenderControl;
48 friend class TrueRenderControl;
49 friend class PseudoRenderControl;
54 #endif // __surface_hh