X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FImage.hh;h=33d2e5b8467ab6c92df6d1d24f60260e68286e3d;hb=23e92e110e467796437d981c0c5bc129c0e20b8e;hp=4d72bc14cf3949f3b0d7947382975339ef34c426;hpb=8794d357e67abddf9fda9db77b235e294d0ec590;p=chaz%2Fopenbox diff --git a/src/Image.hh b/src/Image.hh index 4d72bc14..33d2e5b8 100644 --- a/src/Image.hh +++ b/src/Image.hh @@ -37,7 +37,6 @@ extern "C" { class BImageControl; class BTexture; -class BImageCache; class BImage { private: @@ -59,6 +58,8 @@ private: #endif Pixmap renderPixmap(void); + Pixmap render_solid(const BTexture &texture); + Pixmap render_gradient(const BTexture &texture); XImage *renderXImage(void); @@ -76,23 +77,10 @@ private: public: - BImage(BImageControl *c, unsigned int w, unsigned int h); + BImage(BImageControl *c, int w, int h); ~BImage(void); Pixmap render(const BTexture &texture); - Pixmap render_solid(const BTexture &texture); - Pixmap render_gradient(const BTexture &texture); - - // static methods for the builtin cache - static unsigned long maximumCacheSize(void); - static void setMaximumCacheSize(const unsigned long cache_max); - - static unsigned long cacheTimeout(void); - static void setCacheTimeout(const unsigned long cache_timeout); - -private: - // global image cache - static BImageCache *imagecache; };