class BImage {
private:
- BImageControl *control;
+ BImageControl &control;
#ifdef INTERLACE
Bool interlaced;
public:
- BImage(BImageControl *, unsigned int, unsigned int);
+ BImage(BImageControl &, unsigned int, unsigned int);
~BImage(void);
Pixmap render(BTexture *);
class BImageControl : public TimeoutHandler {
private:
Bool dither;
- BaseDisplay *basedisplay;
- ScreenInfo *screeninfo;
+ BaseDisplay &basedisplay;
+ ScreenInfo &screeninfo;
#ifdef TIMEDCACHE
BTimer *timer;
#endif // TIMEDCACHE
public:
- BImageControl(BaseDisplay *, ScreenInfo *, Bool = False, int = 4,
+ BImageControl(BaseDisplay &, ScreenInfo &, Bool = False, int = 4,
unsigned long = 300000l, unsigned long = 200l);
virtual ~BImageControl(void);
- inline BaseDisplay *getBaseDisplay(void) { return basedisplay; }
+ inline BaseDisplay &getBaseDisplay(void) { return basedisplay; }
inline const Bool &doDither(void) { return dither; }
- inline ScreenInfo *getScreenInfo(void) { return screeninfo; }
+ inline ScreenInfo &getScreenInfo(void) { return screeninfo; }
inline const Window &getDrawable(void) const { return window; }
- inline Visual *getVisual(void) { return screeninfo->getVisual(); }
+ inline Visual *getVisual(void) { return screeninfo.getVisual(); }
inline const int &getBitsPerPixel(void) const { return bits_per_pixel; }
inline const int &getDepth(void) const { return screen_depth; }
unsigned int **, unsigned int **);
void setDither(Bool d) { dither = d; }
void setColorsPerChannel(int);
- void parseTexture(BTexture *, char *);
- void parseColor(BColor *, char * = 0);
+ void parseTexture(BTexture *, const char *);
+ void parseColor(BColor *, const char * = 0);
virtual void timeout(void);
};