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 {
114 typedef struct Texture {
120 typedef struct Appearance {
128 extern Visual *render_visual;
129 extern int render_depth;
130 extern Colormap render_colormap;
132 void (*paint)(Window win, Appearance *l, int x, int y, int w, int h);
134 void render_startup(void);
135 void init_appearance(Appearance *l);
136 void x_paint(Window win, Appearance *l, int x, int y, int w, int h);
137 void render_shutdown(void);
138 Appearance *appearance_new(SurfaceType type, int numtex);
139 Appearance *appearance_copy(Appearance *a);
140 void appearance_free(Appearance *a);
141 void truecolor_startup(void);
142 #endif /*__render_h*/