5 #define _XFT_NO_COMPAT_ /* no Xft 1 API */
6 #include <X11/Xft/Xft.h>
9 #include "kernel/geom.h"
23 Background_ParentRelative
,
25 Background_Horizontal
,
28 Background_CrossDiagonal
,
43 typedef struct Surface
{
44 SurfaceColorType grad
;
49 color_rgb
*border_color
;
50 color_rgb
*bevel_dark
;
51 color_rgb
*bevel_light
;
54 struct Appearance
*parent
;
71 typedef struct TextureText
{
87 typedef struct TextureMask
{
92 typedef struct TextureRGBA
{
96 /* cached scaled so we don't have to scale often */
108 typedef struct Texture
{
113 typedef struct Appearance
{
120 /* cached for internal use */
124 extern Visual
*render_visual
;
125 extern XVisualInfo render_visual_info
;
126 extern int render_depth
;
127 extern Colormap render_colormap
;
129 void render_startup(void);
130 void init_appearance(Appearance
*l
);
131 void paint(Window win
, Appearance
*l
, int w
, int h
);
132 void render_shutdown(void);
133 Appearance
*appearance_new(int numtex
);
134 Appearance
*appearance_copy(Appearance
*a
);
135 void appearance_free(Appearance
*a
);
136 void truecolor_startup(void);
137 void pseudocolor_startup(void);
138 void pixel32_to_pixmap(pixel32
*in
, Pixmap out
, int x
, int y
, int w
, int h
);
140 void appearance_minsize(Appearance
*l
, int *w
, int *h
);
142 gboolean
render_pixmap_to_rgba(Pixmap pmap
, Pixmap mask
,
143 int *w
, int *h
, pixel32
**data
);
145 #endif /*__render_h*/