]>
Dogcows Code - chaz/openbox/blob - otk/texture.hh
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 Texture(unsigned int _screen
= ~(0u), ImageControl
* _ctrl
= 0);
49 Texture(const std::string
&_description
,
50 unsigned int _screen
= ~(0u), ImageControl
* _ctrl
= 0);
52 void setColor(const Color
&_color
);
53 void setColorTo(const Color
&_colorTo
) { ct
= _colorTo
; }
54 void setBorderColor(const Color
&_borderColor
) { bc
= _borderColor
; }
56 const Color
&color(void) const { return c
; }
57 const Color
&colorTo(void) const { return ct
; }
58 const Color
&lightColor(void) const { return lc
; }
59 const Color
&shadowColor(void) const { return sc
; }
60 const Color
&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
; }
67 Texture
&operator=(const Texture
&tt
);
69 inline bool operator==(const Texture
&tt
)
70 { return (c
== tt
.c
&& ct
== tt
.ct
&& lc
== tt
.lc
&&
71 sc
== tt
.sc
&& t
== tt
.t
); }
72 inline bool operator!=(const Texture
&tt
)
73 { return (! operator==(tt
)); }
75 unsigned int screen(void) const { return scrn
; }
76 void setScreen(const unsigned int _screen
);
77 void setImageControl(ImageControl
* _ctrl
) { ctrl
= _ctrl
; }
78 const std::string
&description(void) const { return descr
; }
79 void setDescription(const std::string
&d
);
81 Pixmap
render(const unsigned int width
, const unsigned int height
,
82 const Pixmap old
= 0);
85 Color c
, ct
, lc
, sc
, bc
;
This page took 0.036733 seconds and 4 git commands to generate.