summaryrefslogtreecommitdiff
path: root/otk/image.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-11-03 14:29:34 +0000
committerDana Jansens <danakj@orodu.net>2002-11-03 14:29:34 +0000
commit9259ec5732851dd66f7c598d629e3808ac7ab3d8 (patch)
tree5452b84b8937cde5f6977f26c24361cc1c0a5f08 /otk/image.hh
parentad80ef0f667e3b72d9e35d7a93451a1e2dfa0ab6 (diff)
new timer infrastructure. takes a function pointer for the timeout, with a void* parameter (useful for holding a class instance!)
Diffstat (limited to 'otk/image.hh')
-rw-r--r--otk/image.hh11
1 files changed, 6 insertions, 5 deletions
diff --git a/otk/image.hh b/otk/image.hh
index ac5794b5..ed99e124 100644
--- a/otk/image.hh
+++ b/otk/image.hh
@@ -11,7 +11,7 @@ extern "C" {
#include "color.hh"
#include "screeninfo.hh"
-#include "src/timer.hh"
+#include "timer.hh"
namespace otk {
@@ -66,7 +66,7 @@ public:
};
-class BImageControl : public ob::TimeoutHandler {
+class BImageControl {
public:
struct CachedImage {
Pixmap pixmap;
@@ -75,7 +75,8 @@ public:
unsigned long pixel1, pixel2, texture;
};
- BImageControl(const ScreenInfo *scrn,
+ BImageControl(OBTimerQueueManager *timermanager,
+ const ScreenInfo *scrn,
bool _dither= False, int _cpc = 4,
unsigned long cache_timeout = 300000l,
unsigned long cmax = 200l);
@@ -111,12 +112,12 @@ public:
void setDither(bool d) { dither = d; }
void setColorsPerChannel(int cpc);
- virtual void timeout(void);
+ static void timeout(BImageControl *t);
private:
bool dither;
const ScreenInfo *screeninfo;
- ob::OBTimer *timer;
+ OBTimer *timer;
Colormap colormap;