5 #define _XFT_NO_COMPAT_ /* no Xft 1 API */
6 #include <X11/Xft/Xft.h>
9 #include "../kernel/geom.h"
28 Background_ParentRelative
,
30 Background_Horizontal
,
33 Background_CrossDiagonal
,
46 typedef struct PlanarSurface
{
47 SurfaceColorType grad
;
52 color_rgb
*border_color
;
58 typedef struct NonplanarSurface
{
64 NonplanarSurface nonplanar
;
67 typedef struct Surface
{
69 SurfaceColorType colortype
;
84 typedef struct TextureText
{
99 typedef struct TextureMask
{
104 typedef struct TextureRGBA
{
108 /* cached scaled so we don't have to scale often */
111 unsigned long *cache
;
120 typedef struct Texture
{
126 typedef struct Appearance
{
134 extern Visual
*render_visual
;
135 extern int render_depth
;
136 extern Colormap render_colormap
;
138 void (*paint
)(Window win
, Appearance
*l
, int x
, int y
, int w
, int h
);
140 void render_startup(void);
141 void init_appearance(Appearance
*l
);
142 void x_paint(Window win
, Appearance
*l
, int x
, int y
, int w
, int h
);
143 void render_shutdown(void);
144 Appearance
*appearance_new(SurfaceType type
, int numtex
);
145 Appearance
*appearance_copy(Appearance
*a
);
146 void appearance_free(Appearance
*a
);
147 void truecolor_startup(void);
148 #endif /*__render_h*/