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;
111 typedef struct TextureText {
116 unsigned char offset;
126 typedef struct TextureMask {
131 typedef struct TextureRGBA {
141 typedef struct Texture {
146 typedef struct Appearance {
154 extern Visual *render_visual;
155 extern int render_depth;
156 extern Colormap render_colormap;
158 void (*paint)(Window win, Appearance *l, int x, int y, int w, int h);
160 void render_startup(void);
161 void init_appearance(Appearance *l);
162 void x_paint(Window win, Appearance *l, int x, int y, int w, int h);
163 void render_shutdown(void);
164 Appearance *appearance_new(SurfaceType type, int numtex);
165 Appearance *appearance_copy(Appearance *a);
166 void appearance_free(Appearance *a);
167 #endif /*__render_h*/