diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-11-03 10:07:16 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-11-03 10:07:16 +0000 |
| commit | fa8cefef63feb1d559c40db3cf9407e5bd1ac4df (patch) | |
| tree | c5f4e1d4229fe39d1c13526a32a52d555ccf3494 /otk/image.hh | |
| parent | fcfb532d30f4f0cee5192376145867ec1eada8ad (diff) | |
add an OBDisplay class and the old ScreenInfo class to the toolkit.
wrap the toolkit in the 'otk' namespace
it compiles. broke the timer cache tho.
Diffstat (limited to 'otk/image.hh')
| -rw-r--r-- | otk/image.hh | 13 |
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 |
