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
,
49 typedef struct PlanarSurface
{
50 SurfaceColorType grad
;
55 color_rgb
*border_color
;
58 struct Appearance
*parent
;
64 typedef struct NonplanarSurface
{
70 NonplanarSurface nonplanar
;
73 typedef struct Surface
{
75 SurfaceColorType colortype
;
90 typedef struct TextureText
{
105 typedef struct TextureMask
{
110 typedef struct TextureRGBA
{
114 /* cached scaled so we don't have to scale often */
117 unsigned long *cache
;
126 typedef struct Texture
{
132 typedef struct Appearance
{
140 extern Visual
*render_visual
;
141 extern int render_depth
;
142 extern Colormap render_colormap
;
144 void (*paint
)(Window win
, Appearance
*l
, int x
, int y
, int w
, int h
);
146 void render_startup(void);
147 void init_appearance(Appearance
*l
);
148 void x_paint(Window win
, Appearance
*l
, int x
, int y
, int w
, int h
);
149 void render_shutdown(void);
150 Appearance
*appearance_new(SurfaceType type
, int numtex
);
151 Appearance
*appearance_copy(Appearance
*a
);
152 void appearance_free(Appearance
*a
);
153 void truecolor_startup(void);
154 #endif /*__render_h*/