diff options
author | fluxgen <fluxgen> | 2001-12-29 10:27:41 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2001-12-29 10:27:41 (GMT) |
commit | e0dce8166ca9406a50e908569bb294ce57a76b7f (patch) | |
tree | 9a589ad1dbe55dd4cd1585eae8ac20293a6058e8 /src/Image.hh | |
parent | be3bbcdf3a7c89c09934fe26ee1754a033341616 (diff) | |
download | fluxbox-e0dce8166ca9406a50e908569bb294ce57a76b7f.zip fluxbox-e0dce8166ca9406a50e908569bb294ce57a76b7f.tar.bz2 |
Updated texture constants
Diffstat (limited to 'src/Image.hh')
-rw-r--r-- | src/Image.hh | 66 |
1 files changed, 28 insertions, 38 deletions
diff --git a/src/Image.hh b/src/Image.hh index 3811e69..a86a60a 100644 --- a/src/Image.hh +++ b/src/Image.hh | |||
@@ -27,6 +27,13 @@ | |||
27 | 27 | ||
28 | #include "Timer.hh" | 28 | #include "Timer.hh" |
29 | 29 | ||
30 | #ifndef _BASEDISPLAY_HH_ | ||
31 | #include "BaseDisplay.hh" | ||
32 | #endif | ||
33 | #ifndef _LINKEDLIST_HH_ | ||
34 | #include "LinkedList.hh" | ||
35 | #endif | ||
36 | |||
30 | class BImage; | 37 | class BImage; |
31 | class BImageControl; | 38 | class BImageControl; |
32 | 39 | ||
@@ -75,43 +82,6 @@ public: | |||
75 | }; | 82 | }; |
76 | 83 | ||
77 | 84 | ||
78 | // bevel options | ||
79 | #define BImage_Flat (1l<<1) | ||
80 | #define BImage_Sunken (1l<<2) | ||
81 | #define BImage_Raised (1l<<3) | ||
82 | |||
83 | // textures | ||
84 | #define BImage_Solid (1l<<4) | ||
85 | #define BImage_Gradient (1l<<5) | ||
86 | |||
87 | // gradients | ||
88 | #define BImage_Horizontal (1l<<6) | ||
89 | #define BImage_Vertical (1l<<7) | ||
90 | #define BImage_Diagonal (1l<<8) | ||
91 | #define BImage_CrossDiagonal (1l<<9) | ||
92 | #define BImage_Rectangle (1l<<10) | ||
93 | #define BImage_Pyramid (1l<<11) | ||
94 | #define BImage_PipeCross (1l<<12) | ||
95 | #define BImage_Elliptic (1l<<13) | ||
96 | |||
97 | // bevel types | ||
98 | #define BImage_Bevel1 (1l<<14) | ||
99 | #define BImage_Bevel2 (1l<<15) | ||
100 | |||
101 | // inverted image | ||
102 | #define BImage_Invert (1l<<16) | ||
103 | |||
104 | // parent relative image | ||
105 | #define BImage_ParentRelative (1l<<17) | ||
106 | |||
107 | #ifdef INTERLACE | ||
108 | // fake interlaced image | ||
109 | # define BImage_Interlaced (1l<<18) | ||
110 | #endif // INTERLACE | ||
111 | |||
112 | #include "BaseDisplay.hh" | ||
113 | #include "LinkedList.hh" | ||
114 | |||
115 | 85 | ||
116 | class BImage { | 86 | class BImage { |
117 | private: | 87 | private: |
@@ -149,7 +119,27 @@ protected: | |||
149 | 119 | ||
150 | 120 | ||
151 | public: | 121 | public: |
152 | BImage(BImageControl *, unsigned int, unsigned int); | 122 | enum Bevel{FLAT=0x00002, SUNKEN=0x00004, RAISED=0x00008}; |
123 | enum Textures{SOLID=0x00010, GRADIENT=0x00020}; | ||
124 | enum Gradients{ | ||
125 | HORIZONTAL=0x00040, | ||
126 | VERTICAL=0x00080, | ||
127 | DIAGONAL=0x00100, | ||
128 | CROSSDIAGONAL=0x00200, | ||
129 | RECTANGLE=0x00400, | ||
130 | PYRAMID=0x00800, | ||
131 | PIPECROSS=0x01000, | ||
132 | ELLIPTIC=0x02000 | ||
133 | }; | ||
134 | |||
135 | enum { | ||
136 | BEVEL1=0x04000, BEVEL2=0x08000, // bevel types | ||
137 | INVERT=0x010000, //inverted image | ||
138 | PARENTRELATIVE=0x20000, | ||
139 | INTERLACED=0x40000 | ||
140 | }; | ||
141 | |||
142 | BImage(BImageControl *, unsigned int, unsigned int); | ||
153 | ~BImage(void); | 143 | ~BImage(void); |
154 | 144 | ||
155 | Pixmap render(BTexture *); | 145 | Pixmap render(BTexture *); |