diff options
Diffstat (limited to 'src/FbTk/Texture.hh')
-rw-r--r-- | src/FbTk/Texture.hh | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/src/FbTk/Texture.hh b/src/FbTk/Texture.hh index ea846dc..903d01f 100644 --- a/src/FbTk/Texture.hh +++ b/src/FbTk/Texture.hh | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Texture.hh,v 1.1 2002/11/26 16:01:27 fluxgen Exp $ | 25 | // $Id: Texture.hh,v 1.2 2002/12/01 13:42:14 rathnor Exp $ |
26 | 26 | ||
27 | #ifndef FBTK_TEXTURE_HH | 27 | #ifndef FBTK_TEXTURE_HH |
28 | #define FBTK_TEXTURE_HH | 28 | #define FBTK_TEXTURE_HH |
@@ -32,64 +32,64 @@ | |||
32 | namespace FbTk { | 32 | namespace FbTk { |
33 | 33 | ||
34 | /** | 34 | /** |
35 | Holds texture type and info | 35 | Holds texture type and info |
36 | */ | 36 | */ |
37 | class Texture { | 37 | class Texture { |
38 | public: | 38 | public: |
39 | 39 | ||
40 | enum Bevel { | 40 | enum Bevel { |
41 | FLAT = 0x00002, | 41 | FLAT = 0x00002, |
42 | SUNKEN = 0x00004, | 42 | SUNKEN = 0x00004, |
43 | RAISED = 0x00008 | 43 | RAISED = 0x00008 |
44 | }; | 44 | }; |
45 | 45 | ||
46 | enum Textures { | 46 | enum Textures { |
47 | NONE = 0x00000, | 47 | NONE = 0x00000, |
48 | SOLID = 0x00010, | 48 | SOLID = 0x00010, |
49 | GRADIENT = 0x00020 | 49 | GRADIENT = 0x00020 |
50 | }; | 50 | }; |
51 | 51 | ||
52 | enum Gradients { | 52 | enum Gradients { |
53 | HORIZONTAL = 0x00040, | 53 | HORIZONTAL = 0x00040, |
54 | VERTICAL = 0x00080, | 54 | VERTICAL = 0x00080, |
55 | DIAGONAL = 0x00100, | 55 | DIAGONAL = 0x00100, |
56 | CROSSDIAGONAL = 0x00200, | 56 | CROSSDIAGONAL = 0x00200, |
57 | RECTANGLE = 0x00400, | 57 | RECTANGLE = 0x00400, |
58 | PYRAMID = 0x00800, | 58 | PYRAMID = 0x00800, |
59 | PIPECROSS = 0x01000, | 59 | PIPECROSS = 0x01000, |
60 | ELLIPTIC = 0x02000 | 60 | ELLIPTIC = 0x02000 |
61 | }; | 61 | }; |
62 | 62 | ||
63 | enum { | 63 | enum { |
64 | BEVEL1 = 0x04000, | 64 | BEVEL1 = 0x04000, |
65 | BEVEL2 = 0x08000, // bevel types | 65 | BEVEL2 = 0x08000, // bevel types |
66 | INVERT = 0x010000, //inverted image | 66 | INVERT = 0x010000, //inverted image |
67 | PARENTRELATIVE = 0x20000, | 67 | PARENTRELATIVE = 0x20000, |
68 | INTERLACED = 0x40000 | 68 | INTERLACED = 0x40000 |
69 | }; | 69 | }; |
70 | 70 | ||
71 | Texture():m_type(0) { } | 71 | Texture():m_type(0) { } |
72 | 72 | ||
73 | void setType(unsigned long t) { m_type = t; } | 73 | void setType(unsigned long t) { m_type = t; } |
74 | void addType(unsigned long t) { m_type |= t; } | 74 | void addType(unsigned long t) { m_type |= t; } |
75 | void setFromString(const char * const str); | 75 | void setFromString(const char * const str); |
76 | 76 | ||
77 | Color &color() { return m_color; } | 77 | Color &color() { return m_color; } |
78 | Color &colorTo() { return m_color_to; } | 78 | Color &colorTo() { return m_color_to; } |
79 | Color &hiColor() { return m_hicolor; } | 79 | Color &hiColor() { return m_hicolor; } |
80 | Color &loColor() { return m_locolor; } | 80 | Color &loColor() { return m_locolor; } |
81 | 81 | ||
82 | const Color &color() const { return m_color; } | 82 | const Color &color() const { return m_color; } |
83 | const Color &colorTo() const { return m_color_to; } | 83 | const Color &colorTo() const { return m_color_to; } |
84 | const Color &hiColor() const { return m_hicolor; } | 84 | const Color &hiColor() const { return m_hicolor; } |
85 | const Color &loColor() const { return m_locolor; } | 85 | const Color &loColor() const { return m_locolor; } |
86 | 86 | ||
87 | inline unsigned long type() const { return m_type; } | 87 | inline unsigned long type() const { return m_type; } |
88 | 88 | ||
89 | 89 | ||
90 | private: | 90 | private: |
91 | FbTk::Color m_color, m_color_to, m_hicolor, m_locolor; | 91 | FbTk::Color m_color, m_color_to, m_hicolor, m_locolor; |
92 | unsigned long m_type; | 92 | unsigned long m_type; |
93 | }; | 93 | }; |
94 | 94 | ||
95 | }; // end namespace FbTk | 95 | }; // end namespace FbTk |