#include <list>
-#include "timer.hh"
-#include "basedisplay.hh"
#include "color.hh"
+#include "screeninfo.hh"
+#include "timer.hh"
+
+namespace otk {
class BImageControl;
class BTexture;
+class ScreenInfo;
class BImage {
private:
};
-class BImageControl : public TimeoutHandler {
+class BImageControl {
public:
struct CachedImage {
Pixmap pixmap;
unsigned long pixel1, pixel2, texture;
};
- BImageControl(BaseDisplay *dpy, const ScreenInfo *scrn,
+ BImageControl(OBTimerQueueManager *timermanager,
+ const ScreenInfo *scrn,
bool _dither= False, int _cpc = 4,
unsigned long cache_timeout = 300000l,
unsigned long cmax = 200l);
virtual ~BImageControl(void);
- inline BaseDisplay *getBaseDisplay(void) const { return basedisplay; }
-
inline bool doDither(void) { return dither; }
- inline const ScreenInfo *getScreenInfo(void) { return screeninfo; }
+ inline const ScreenInfo* getScreenInfo() const { return screeninfo; }
inline Window getDrawable(void) const { return window; }
void setDither(bool d) { dither = d; }
void setColorsPerChannel(int cpc);
- virtual void timeout(void);
+ static void timeout(BImageControl *t);
private:
bool dither;
- BaseDisplay *basedisplay;
const ScreenInfo *screeninfo;
- BTimer *timer;
+ OBTimer *timer;
Colormap colormap;
const BColor &c1, const BColor &c2);
};
+}
#endif // __Image_hh