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
;
110 typedef struct TextureText
{
115 unsigned char offset
;
125 typedef struct TextureMask
{
130 typedef struct TextureRGBA
{
140 typedef struct Texture
{
145 typedef struct Appearance
{
153 extern Visual
*render_visual
;
154 extern int render_depth
;
155 extern Colormap render_colormap
;
157 void (*paint
)(Window win
, Appearance
*l
, int w
, int h
);
159 void render_startup(void);
160 void init_appearance(Appearance
*l
);
161 void x_paint(Window win
, Appearance
*l
, int w
, int h
);
162 void render_shutdown(void);
163 Appearance
*appearance_new(SurfaceType type
, int numtex
);
164 Appearance
*appearance_copy(Appearance
*a
);
165 void appearance_free(Appearance
*a
);
166 #endif /*__render_h*/