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 {
74 SurfaceColorType grad;
79 color_rgb *border_color;
85 typedef struct NonplanarSurface {
91 NonplanarSurface nonplanar;
94 typedef struct Surface {
96 SurfaceColorType colortype;
104 typedef struct TextureText {
108 unsigned char offset;
113 typedef struct TextureMask {
117 typedef struct TextureRGBA {
127 typedef struct Texture {
132 typedef struct Appearance {
140 extern Visual *render_visual;
141 extern int render_depth;
142 extern Colormap render_colormap;
144 void (*paint)(Window win, Appearance *l, int w, int h);
146 void render_startup(void);
147 void init_appearance(Appearance *l);
148 void x_paint(Window win, Appearance *l, int w, int h);
149 void render_shutdown(void);
150 Appearance *appearance_new(SurfaceType type, int numtex);
151 Appearance *appearance_copy(Appearance *a);
152 void appearance_free(Appearance *a);
153 #endif /*__render_h*/