--- rxvt-unicode/src/rxvttoolkit.h 2006/02/02 18:04:46 1.23 +++ rxvt-unicode/src/rxvttoolkit.h 2006/02/18 14:14:43 1.24 @@ -107,6 +107,33 @@ ///////////////////////////////////////////////////////////////////////////// +struct rxvt_screen; + +struct rxvt_drawable { + rxvt_screen *screen; + Drawable drawable; + operator Drawable() { return drawable; } + +#if XFT + XftDraw *xftdrawable; + operator XftDraw *(); +#endif + + rxvt_drawable (rxvt_screen *screen, Drawable drawable) + : screen(screen), +#if XFT + xftdrawable(0), +#endif + drawable(drawable) + { } + +#if XFT + ~rxvt_drawable (); +#endif +}; + +///////////////////////////////////////////////////////////////////////////// + #ifdef USE_XIM struct rxvt_xim : refcounted { void destroy (); @@ -128,6 +155,16 @@ Visual *visual; Colormap cmap; +#if XFT + // scratch pixmap + rxvt_drawable *scratch_area; + int scratch_w, scratch_h; + + rxvt_drawable &scratch_drawable (int w, int h); + + rxvt_screen (); +#endif + void set (rxvt_display *disp); void set (rxvt_display *disp, int bitdepth); void clear ();