summaryrefslogtreecommitdiff
path: root/otk/texture.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-11-03 10:07:16 +0000
committerDana Jansens <danakj@orodu.net>2002-11-03 10:07:16 +0000
commitfa8cefef63feb1d559c40db3cf9407e5bd1ac4df (patch)
treec5f4e1d4229fe39d1c13526a32a52d555ccf3494 /otk/texture.hh
parentfcfb532d30f4f0cee5192376145867ec1eada8ad (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/texture.hh')
-rw-r--r--otk/texture.hh16
1 files changed, 8 insertions, 8 deletions
diff --git a/otk/texture.hh b/otk/texture.hh
index 514a0584..d887a337 100644
--- a/otk/texture.hh
+++ b/otk/texture.hh
@@ -4,10 +4,13 @@
#include "color.hh"
#include "util.hh"
-class BImageControl;
#include <string>
+namespace otk {
+
+class BImageControl;
+
class BTexture {
public:
enum Type {
@@ -42,10 +45,8 @@ public:
Interlaced = (1l<<18)
};
- BTexture(const BaseDisplay * const _display = 0,
- unsigned int _screen = ~(0u), BImageControl* _ctrl = 0);
+ BTexture(unsigned int _screen = ~(0u), BImageControl* _ctrl = 0);
BTexture(const std::string &_description,
- const BaseDisplay * const _display = 0,
unsigned int _screen = ~(0u), BImageControl* _ctrl = 0);
void setColor(const BColor &_color);
@@ -69,10 +70,8 @@ public:
inline bool operator!=(const BTexture &tt)
{ return (! operator==(tt)); }
- const BaseDisplay *display(void) const { return dpy; }
unsigned int screen(void) const { return scrn; }
- void setDisplay(const BaseDisplay * const _display,
- const unsigned int _screen);
+ void setScreen(const unsigned int _screen);
void setImageControl(BImageControl* _ctrl) { ctrl = _ctrl; }
const std::string &description(void) const { return descr; }
void setDescription(const std::string &d);
@@ -84,9 +83,10 @@ private:
BColor c, ct, lc, sc, bc;
std::string descr;
unsigned long t;
- const BaseDisplay *dpy;
BImageControl *ctrl;
unsigned int scrn;
};
+}
+
#endif // TEXTURE_HH