5 #define _XFT_NO_COMPAT_ /* no Xft 1 API */
6 #include <X11/Xft/Xft.h>
14 # ifdef HAVE_SYS_TYPES_H
15 # include <sys/types.h>
20 typedef uint32_t pixel32;
21 typedef uint16_t pixel16;
23 typedef u_int32_t pixel32;
24 typedef u_int16_t pixel16;
25 #endif /* HAVE_STDINT_H */
27 #if (G_ENDIAN == G_BIG_ENDIAN)
28 #define default_red_shift 0
29 #define default_green_shift 8
30 #define default_blue_shift 16
31 #define endian MSBFirst
33 #define default_red_shift 16
34 #define default_green_shift 8
35 #define default_blue_shift 0
36 #define endian LSBFirst
37 #endif /* G_ENDIAN == G_BIG_ENDIAN */
56 Background_ParentRelative,
58 Background_Horizontal,
61 Background_CrossDiagonal,
74 typedef struct PlanarSurface {
75 SurfaceColorType grad;
80 color_rgb *border_color;
86 typedef struct NonplanarSurface {
92 NonplanarSurface nonplanar;
95 typedef struct Surface {
97 SurfaceColorType colortype;
105 typedef struct TextureText {
109 unsigned char offset;
114 typedef struct TextureMask {
119 typedef struct TextureRGBA {
129 typedef struct Texture {
134 typedef struct Appearance {
142 extern Visual *render_visual;
143 extern int render_depth;
144 extern Colormap render_colormap;
146 void (*paint)(Window win, Appearance *l, int w, int h);
148 void render_startup(void);
149 void init_appearance(Appearance *l);
150 void x_paint(Window win, Appearance *l, int w, int h);
151 void render_shutdown(void);
152 Appearance *appearance_new(SurfaceType type, int numtex);
153 Appearance *appearance_copy(Appearance *a);
154 void appearance_free(Appearance *a);
155 #endif /*__render_h*/