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
,
47 typedef struct PlanarSurface
{
48 SurfaceColorType grad
;
53 color_rgb
*border_color
;
59 typedef struct NonplanarSurface
{
65 NonplanarSurface nonplanar
;
68 typedef struct Surface
{
70 SurfaceColorType colortype
;
85 typedef struct TextureText
{
100 typedef struct TextureMask
{
105 typedef struct TextureRGBA
{
109 /* cached scaled so we don't have to scale often */
112 unsigned long *cache
;
121 typedef struct Texture
{
127 typedef struct Appearance
{
135 extern Visual
*render_visual
;
136 extern int render_depth
;
137 extern Colormap render_colormap
;
139 void (*paint
)(Window win
, Appearance
*l
, int x
, int y
, int w
, int h
);
141 void render_startup(void);
142 void init_appearance(Appearance
*l
);
143 void x_paint(Window win
, Appearance
*l
, int x
, int y
, int w
, int h
);
144 void render_shutdown(void);
145 Appearance
*appearance_new(SurfaceType type
, int numtex
);
146 Appearance
*appearance_copy(Appearance
*a
);
147 void appearance_free(Appearance
*a
);
148 void truecolor_startup(void);
149 #endif /*__render_h*/