]>
Dogcows Code - chaz/openbox/blob - src/texture.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
27 CrossDiagonal
= (1l<<8),
39 // parent relative image
40 Parent_Relative
= (1l<<17),
41 // fake interlaced image
45 BTexture(const BaseDisplay
* const _display
= 0,
46 unsigned int _screen
= ~(0u), BImageControl
* _ctrl
= 0);
47 BTexture(const std::string
&_description
,
48 const BaseDisplay
* const _display
= 0,
49 unsigned int _screen
= ~(0u), BImageControl
* _ctrl
= 0);
51 void setColor(const BColor
&_color
);
52 void setColorTo(const BColor
&_colorTo
) { ct
= _colorTo
; }
53 void setBorderColor(const BColor
&_borderColor
) { bc
= _borderColor
; }
55 const BColor
&color(void) const { return c
; }
56 const BColor
&colorTo(void) const { return ct
; }
57 const BColor
&lightColor(void) const { return lc
; }
58 const BColor
&shadowColor(void) const { return sc
; }
59 const BColor
&borderColor(void) const { return bc
; }
61 unsigned long texture(void) const { return t
; }
62 void setTexture(const unsigned long _texture
) { t
= _texture
; }
63 void addTexture(const unsigned long _texture
) { t
|= _texture
; }
65 BTexture
&operator=(const BTexture
&tt
);
66 inline bool operator==(const BTexture
&tt
)
67 { return (c
== tt
.c
&& ct
== tt
.ct
&& lc
== tt
.lc
&&
68 sc
== tt
.sc
&& t
== tt
.t
); }
69 inline bool operator!=(const BTexture
&tt
)
70 { return (! operator==(tt
)); }
72 const BaseDisplay
*display(void) const { return dpy
; }
73 unsigned int screen(void) const { return scrn
; }
74 void setDisplay(const BaseDisplay
* const _display
,
75 const unsigned int _screen
);
76 void setImageControl(BImageControl
* _ctrl
) { ctrl
= _ctrl
; }
77 const std::string
&description(void) const { return descr
; }
78 void setDescription(const std::string
&d
);
80 Pixmap
render(const unsigned int width
, const unsigned int height
,
81 const Pixmap old
= 0);
84 BColor c
, ct
, lc
, sc
, bc
;
87 const BaseDisplay
*dpy
;
This page took 0.045607 seconds and 5 git commands to generate.