1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
30 CrossDiagonal = (1l<<8),
42 // parent relative image
43 Parent_Relative = (1l<<17),
44 // fake interlaced image
48 BTexture(unsigned int _screen = ~(0u), BImageControl* _ctrl = 0);
49 BTexture(const std::string &_description,
50 unsigned int _screen = ~(0u), BImageControl* _ctrl = 0);
52 void setColor(const BColor &_color);
53 void setColorTo(const BColor &_colorTo) { ct = _colorTo; }
54 void setBorderColor(const BColor &_borderColor) { bc = _borderColor; }
56 const BColor &color(void) const { return c; }
57 const BColor &colorTo(void) const { return ct; }
58 const BColor &lightColor(void) const { return lc; }
59 const BColor &shadowColor(void) const { return sc; }
60 const BColor &borderColor(void) const { return bc; }
62 unsigned long texture(void) const { return t; }
63 void setTexture(const unsigned long _texture) { t = _texture; }
64 void addTexture(const unsigned long _texture) { t |= _texture; }
66 BTexture &operator=(const BTexture &tt);
67 inline bool operator==(const BTexture &tt)
68 { return (c == tt.c && ct == tt.ct && lc == tt.lc &&
69 sc == tt.sc && t == tt.t); }
70 inline bool operator!=(const BTexture &tt)
71 { return (! operator==(tt)); }
73 unsigned int screen(void) const { return scrn; }
74 void setScreen(const unsigned int _screen);
75 void setImageControl(BImageControl* _ctrl) { ctrl = _ctrl; }
76 const std::string &description(void) const { return descr; }
77 void setDescription(const std::string &d);
79 Pixmap render(const unsigned int width, const unsigned int height,
80 const Pixmap old = 0);
83 BColor c, ct, lc, sc, bc;