2 * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
3 * Copyright (C) 2004-2008 Kim Woelders
5 * Permission is hereby granted, free of charge, to any person obtaining a copy
6 * of this software and associated documentation files (the "Software"), to
7 * deal in the Software without restriction, including without limitation the
8 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9 * sell copies of the Software, and to permit persons to whom the Software is
10 * furnished to do so, subject to the following conditions:
12 * The above copyright notice and this permission notice shall be included in
13 * all copies of the Software, its documentation and marketing & publicity
14 * materials, and acknowledgment shall be given in the documentation, materials
15 * and software packages that this Software was used.
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
21 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35 #define BEVEL_DOUBLE 4
36 #define BEVEL_WIDEDOUBLE 5
37 #define BEVEL_THINPOINT 6
38 #define BEVEL_THICKPOINT 7
40 #define FILL_STRETCH 0
43 #define FILL_INT_TILE_H 4
44 #define FILL_INT_TILE_V 8
46 /* Selective Transparency item types */
52 #define ST_MENU_ITEM 5
57 #define ST_WARPLIST 10
60 #define ICLASS_ATTR_OPAQUE 0x00 /* No transparency */
61 #define ICLASS_ATTR_BG 0x01 /* Background transparency */
62 #define ICLASS_ATTR_GLASS 0x02 /* Glass transparency */
63 #define ICLASS_ATTR_NO_CLIP 0x04 /* Don't apply clip mask */
64 #define ICLASS_ATTR_USE_CM 0x08 /* Use colormodifier */
66 /* ImageclassApplyCopy flags */
67 #define IC_FLAG_NONE 0x00 /* No flags */
68 #define IC_FLAG_WRITABLE 0x01 /* Provide writable pixmaps */
69 #define IC_FLAG_MAKE_MASK 0x02 /* Make mask */
70 #define IC_FLAG_FULL_SIZE 0x04 /* Make full size pixmaps */
73 int ImageclassConfigLoad(FILE * fs);
75 #ifdef ENABLE_THEME_TRANSPARENCY
76 void TransparencySet(int transparency);
77 int TransparencyEnabled(void);
78 int TransparencyUpdateNeeded(void);
79 int ImageclassIsTransparent(ImageClass * ic);
81 #define TransparencyEnabled() 0
82 #define TransparencyUpdateNeeded() 0
83 #define ImageclassIsTransparent(ic) 0
86 ImageClass *ImageclassFind(const char *name, int fallback);
87 ImageClass *ImageclassAlloc(const char *name, int fallback);
88 void ImageclassFree(ImageClass * ic);
89 const char *ImageclassGetName(ImageClass * ic);
90 EImageBorder *ImageclassGetPadding(ImageClass * ic);
91 ImageState *ImageclassGetImageState(ImageClass * ic, int state,
92 int active, int sticky);
93 ImageClass *ImageclassCreateSimple(const char *name, const char *image);
94 ImageClass *ImageclassGetBlack(void);
95 EImage *ImageclassGetImage(ImageClass * ic, int active, int sticky,
97 void ImageclassApplySimple(ImageClass * ic, Win win,
98 Drawable draw, int state, int x,
100 void ImageclassApply(ImageClass * ic, Win win,
101 int active, int sticky, int state,
103 void ImageclassApplyCopy(ImageClass * ic, Win win, int w,
104 int h, int active, int sticky,
105 int state, PmapMask * pmm,
106 int pmapflags, int image_type);
107 EImage *ImageclassGetImageBlended(ImageClass * ic, Win win,
108 int w, int h, int active,
109 int sticky, int state,
111 void ITApply(Win win, ImageClass * ic, ImageState * is,
112 int state, int active, int sticky, int image_type,
113 TextClass * tc, TextState * ts, const char *text,
116 #endif /* _ICLASS_H */