5 #define _XFT_NO_COMPAT_ /* no Xft 1 API */
6 #include <X11/Xft/Xft.h>
13 # ifdef HAVE_SYS_TYPES_H
14 # include <sys/types.h>
19 typedef uint32_t pixel32;
20 typedef uint16_t pixel16;
22 typedef u_int32_t pixel32;
23 typedef u_int16_t pixel16;
24 #endif /* HAVE_STDINT_H */
26 #if (G_ENDIAN == G_BIG_ENDIAN)
27 #define default_red_shift 0
28 #define default_green_shift 8
29 #define default_blue_shift 16
30 #define endian MSBFirst
32 #define default_red_shift 16
33 #define default_green_shift 8
34 #define default_blue_shift 0
35 #define endian LSBFirst
36 #endif /* G_ENDIAN == G_BIG_ENDIAN */
55 Background_ParentRelative,
57 Background_Horizontal,
60 Background_CrossDiagonal,
73 typedef struct PlanarSurface {
78 SurfaceColorType grad;
83 color_rgb *border_color;
89 typedef struct NonplanarSurface {
95 NonplanarSurface nonplanar;
98 typedef struct Surface {
100 SurfaceColorType colortype;
114 typedef struct TextureText {
119 unsigned char offset;
129 typedef struct TextureMask {
134 typedef struct TextureRGBA {
144 typedef struct Texture {
149 typedef struct Appearance {
157 extern Visual *render_visual;
158 extern int render_depth;
159 extern Colormap render_colormap;
161 void (*paint)(Window win, Appearance *l, int w, int h);
163 void render_startup(void);
164 void init_appearance(Appearance *l);
165 void x_paint(Window win, Appearance *l, int w, int h);
166 void render_shutdown(void);
167 Appearance *appearance_new(SurfaceType type, int numtex);
168 Appearance *appearance_copy(Appearance *a);
169 void appearance_free(Appearance *a);
170 #endif /*__render_h*/