X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FImage.hh;h=94cb3c6015507ef2b1527411cb154d16d41be4e6;hb=5b8ec886237aff9ede99feb66721f8ac7a44d2ed;hp=4d72bc14cf3949f3b0d7947382975339ef34c426;hpb=8794d357e67abddf9fda9db77b235e294d0ec590;p=chaz%2Fopenbox diff --git a/src/Image.hh b/src/Image.hh index 4d72bc14..94cb3c60 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,12 +58,15 @@ private: #endif Pixmap renderPixmap(void); + Pixmap render_solid(const BTexture &texture); + Pixmap render_gradient(const BTexture &texture); XImage *renderXImage(void); void invert(void); void bevel1(void); void bevel2(void); + void border(const BTexture &texture); void dgradient(void); void egradient(void); void hgradient(void); @@ -76,23 +78,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; };