summaryrefslogtreecommitdiff
path: root/otk/image.hh
diff options
context:
space:
mode:
Diffstat (limited to 'otk/image.hh')
-rw-r--r--otk/image.hh13
1 files changed, 7 insertions, 6 deletions
diff --git a/otk/image.hh b/otk/image.hh
index 85ad287d..88165606 100644
--- a/otk/image.hh
+++ b/otk/image.hh
@@ -10,11 +10,14 @@ extern "C" {
#include <list>
#include "timer.hh"
-#include "basedisplay.hh"
#include "color.hh"
+#include "screeninfo.hh"
+
+namespace otk {
class BImageControl;
class BTexture;
+class ScreenInfo;
class BImage {
private:
@@ -72,17 +75,15 @@ public:
unsigned long pixel1, pixel2, texture;
};
- BImageControl(BaseDisplay *dpy, const ScreenInfo *scrn,
+ BImageControl(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; }
@@ -114,7 +115,6 @@ public:
private:
bool dither;
- BaseDisplay *basedisplay;
const ScreenInfo *screeninfo;
BTimer *timer;
@@ -139,6 +139,7 @@ private:
const BColor &c1, const BColor &c2);
};
+}
#endif // __Image_hh