4 #define _XFT_NO_COMPAT_ /* no Xft 1 API */
5 #include <X11/Xft/Xft.h>
9 typedef union _RrTextureData RrTextureData;
10 typedef struct _RrAppearance RrAppearance;
11 typedef struct _RrSurface RrSurface;
12 typedef struct _RrFont RrFont;
13 typedef struct _RrTexture RrTexture;
14 typedef struct _RrTextureMask RrTextureMask;
15 typedef struct _RrTextureRGBA RrTextureRGBA;
16 typedef struct _RrTextureText RrTextureText;
17 typedef struct _RrPixmapMask RrPixmapMask;
18 typedef struct _RrInstance RrInstance;
19 typedef struct _RrColor color_rgb; /* XXX ugly */
21 typedef guint32 pixel32; /* XXX prefix */
22 typedef guint16 pixel16;
39 RR_SURFACE_HORIZONTAL,
42 RR_SURFACE_CROSS_DIAGONAL,
62 RrSurfaceColorType grad;
67 color_rgb *border_color;
68 color_rgb *bevel_dark;
69 color_rgb *bevel_light;
78 struct _RrTextureText {
88 struct _RrPixmapMask {
89 const RrInstance *inst;
96 struct _RrTextureMask {
101 struct _RrTextureRGBA {
105 /* cached scaled so we don't have to scale often */
111 union _RrTextureData {
122 struct _RrAppearance {
123 const RrInstance *inst;
131 /* cached for internal use */
135 RrInstance* RrInstanceNew (Display *display, gint screen);
136 void RrInstanceFree (RrInstance *inst);
138 Display* RrDisplay (const RrInstance *inst);
139 gint RrScreen (const RrInstance *inst);
140 Window RrRootWindow (const RrInstance *inst);
141 Visual* RrVisual (const RrInstance *inst);
142 gint RrDepth (const RrInstance *inst);
143 Colormap RrColormap (const RrInstance *inst);
144 gint RrRedOffset (const RrInstance *inst);
145 gint RrGreenOffset (const RrInstance *inst);
146 gint RrBlueOffset (const RrInstance *inst);
147 gint RrRedShift (const RrInstance *inst);
148 gint RrGreenShift (const RrInstance *inst);
149 gint RrBlueShift (const RrInstance *inst);
150 gint RrRedMask (const RrInstance *inst);
151 gint RrGreenMask (const RrInstance *inst);
152 gint RrBlueMask (const RrInstance *inst);
153 guint RrPseudoBPC (const RrInstance *inst);
154 XColor* RrPseudoColors (const RrInstance *inst);
156 color_rgb *RrColorNew (const RrInstance *inst, gint r, gint g, gint b);
157 color_rgb *RrColorParse (const RrInstance *inst, gchar *colorname);
158 void RrColorFree (color_rgb *in);
160 RrAppearance *RrAppearanceNew (const RrInstance *inst, gint numtex);
161 RrAppearance *RrAppearanceCopy (RrAppearance *a);
162 void RrAppearanceFree (RrAppearance *a);
164 void RrPaint (RrAppearance *l, Window win, gint w, gint h);
165 void RrMinsize (RrAppearance *l, gint *w, gint *h);
167 gboolean RrPixmapToRGBA(const RrInstance *inst,
168 Pixmap pmap, Pixmap mask,
169 gint *w, gint *h, pixel32 **data);
171 #endif /*__render_h*/