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
;
101 typedef struct TextureText
{
109 typedef struct TextureMask
{
113 typedef struct TextureRGBA
{
123 typedef struct Texture
{
128 typedef struct Appearance
{
136 extern Visual
*render_visual
;
137 extern int render_depth
;
138 extern Colormap render_colormap
;
140 void (*paint
)(Window win
, Appearance
*l
, int w
, int h
);
142 void render_startup(void);
143 void init_appearance(Appearance
*l
);
144 void x_paint(Window win
, Appearance
*l
, int w
, int h
);
145 void render_shutdown(void);
146 Appearance
*appearance_new(SurfaceType type
, int numtex
);
147 Appearance
*appearance_copy(Appearance
*a
);
148 void appearance_free(Appearance
*a
);
149 #endif /*__render_h*/