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
;
72 typedef struct TextureText
{
88 typedef struct TextureMask
{
93 typedef struct TextureRGBA
{
97 /* cached scaled so we don't have to scale often */
109 typedef struct Texture
{
115 typedef struct Appearance
{
124 extern Visual
*render_visual
;
125 extern XVisualInfo render_visual_info
;
126 extern int render_depth
;
127 extern Colormap render_colormap
;
129 void (*paint
)(Window win
, Appearance
*l
);
131 void render_startup(void);
132 void init_appearance(Appearance
*l
);
133 void x_paint(Window win
, Appearance
*l
);
134 void gl_paint(Window win
, Appearance
*l
);
135 void render_shutdown(void);
136 Appearance
*appearance_new(int numtex
);
137 Appearance
*appearance_copy(Appearance
*a
);
138 void appearance_free(Appearance
*a
);
139 void truecolor_startup(void);
140 void pseudocolor_startup(void);
141 void pixel32_to_pixmap(pixel32
*in
, Pixmap out
, int x
, int y
, int w
, int h
);
143 void appearance_minsize(Appearance
*l
, int *w
, int *h
);
145 gboolean
render_pixmap_to_rgba(Pixmap pmap
, Pixmap mask
,
146 int *w
, int *h
, pixel32
**data
);
148 #endif /*__render_h*/