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
{
106 typedef struct TextureMask
{
111 typedef struct TextureRGBA
{
115 /* cached scaled so we don't have to scale often */
118 unsigned long *cache
;
127 typedef struct Texture
{
133 typedef struct Appearance
{
142 extern Visual
*render_visual
;
143 extern int render_depth
;
144 extern Colormap render_colormap
;
146 void (*paint
)(Window win
, Appearance
*l
);
148 void render_startup(void);
149 void init_appearance(Appearance
*l
);
150 void x_paint(Window win
, Appearance
*l
);
151 void render_shutdown(void);
152 Appearance
*appearance_new(SurfaceType type
, int numtex
);
153 Appearance
*appearance_copy(Appearance
*a
);
154 void appearance_free(Appearance
*a
);
155 void truecolor_startup(void);
156 void pseudocolor_startup(void);
157 void pixel32_to_pixmap(pixel32
*in
, Pixmap out
, int x
, int y
, int w
, int h
);
159 void appearance_minsize(Appearance
*l
, int *w
, int *h
);
161 #endif /*__render_h*/