aboutsummaryrefslogtreecommitdiff
path: root/src/Image.hh
diff options
context:
space:
mode:
authorunknown <unknown>2002-01-11 11:59:54 (GMT)
committerunknown <unknown>2002-01-11 11:59:54 (GMT)
commit61661d638e34b3ce6c986d5a53b8c08c1051d422 (patch)
treef0b87676e95070afee163f76902efd0c4d5b5fe6 /src/Image.hh
parentf98c3c9045397bd9497621deb55b310366f8a5de (diff)
parenta3d2a1cf0a5ab724e19a91915fe97842f52260d5 (diff)
downloadfluxbox-c325ffaa4e094163340f957e87463c8a526b4d5b.zip
fluxbox-c325ffaa4e094163340f957e87463c8a526b4d5b.tar.bz2
This commit was manufactured by cvs2svn to create tagRelease-0_1_6
'Release-0_1_6'.
Diffstat (limited to 'src/Image.hh')
-rw-r--r--src/Image.hh71
1 files changed, 33 insertions, 38 deletions
diff --git a/src/Image.hh b/src/Image.hh
index 3811e69..672c632 100644
--- a/src/Image.hh
+++ b/src/Image.hh
@@ -1,3 +1,6 @@
1// Image.hh for Fluxbox Window Manager
2// Copyright (c) 2001 - 2002 Henrik Kinnunen (fluxbox@linuxmail.org)
3//
1// Image.hh for Blackbox - an X11 Window manager 4// Image.hh for Blackbox - an X11 Window manager
2// Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net) 5// Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net)
3// 6//
@@ -19,6 +22,8 @@
19// 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
20// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
21 24
25// $Id: Image.hh,v 1.3 2002/01/09 14:11:20 fluxgen Exp $
26
22#ifndef _IMAGE_HH_ 27#ifndef _IMAGE_HH_
23#define _IMAGE_HH_ 28#define _IMAGE_HH_
24 29
@@ -27,6 +32,13 @@
27 32
28#include "Timer.hh" 33#include "Timer.hh"
29 34
35#ifndef _BASEDISPLAY_HH_
36#include "BaseDisplay.hh"
37#endif
38#ifndef _LINKEDLIST_HH_
39#include "LinkedList.hh"
40#endif
41
30class BImage; 42class BImage;
31class BImageControl; 43class BImageControl;
32 44
@@ -75,43 +87,6 @@ public:
75}; 87};
76 88
77 89
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 90
116class BImage { 91class BImage {
117private: 92private:
@@ -149,7 +124,27 @@ protected:
149 124
150 125
151public: 126public:
152 BImage(BImageControl *, unsigned int, unsigned int); 127 enum Bevel{FLAT=0x00002, SUNKEN=0x00004, RAISED=0x00008};
128 enum Textures{SOLID=0x00010, GRADIENT=0x00020};
129 enum Gradients{
130 HORIZONTAL=0x00040,
131 VERTICAL=0x00080,
132 DIAGONAL=0x00100,
133 CROSSDIAGONAL=0x00200,
134 RECTANGLE=0x00400,
135 PYRAMID=0x00800,
136 PIPECROSS=0x01000,
137 ELLIPTIC=0x02000
138 };
139
140 enum {
141 BEVEL1=0x04000, BEVEL2=0x08000, // bevel types
142 INVERT=0x010000, //inverted image
143 PARENTRELATIVE=0x20000,
144 INTERLACED=0x40000
145 };
146
147 BImage(BImageControl *, unsigned int, unsigned int);
153 ~BImage(void); 148 ~BImage(void);
154 149
155 Pixmap render(BTexture *); 150 Pixmap render(BTexture *);