--- ../0.83/Xrender.h 2004-05-18 22:47:11.000000000 -0700 +++ Xrender.h 2007-03-27 11:26:05.731241000 -0700 @@ -1,7 +1,6 @@ /* - * $Id: Xrender.h,v 1.20 2003/06/26 09:47:49 keithp Exp $ * - * Copyright © 2000 SuSE, Inc. + * Copyright © 2000 SuSE, Inc. * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -66,7 +65,7 @@ #define PictFormatColormap (1 << 11) typedef struct _XRenderPictureAttributes { - Bool repeat; + int repeat; Picture alpha_map; int alpha_x_origin; int alpha_y_origin; @@ -144,6 +143,12 @@ XPointFixed p1, p2, p3; } XTriangle; +typedef struct _XCircle { + XFixed x; + XFixed y; + XFixed radius; +} XCircle; + typedef struct _XTrapezoid { XFixed top, bottom; XLineFixed left, right; @@ -170,6 +175,29 @@ unsigned long delay; } XAnimCursor; +typedef struct _XSpanFix { + XFixed left, right, y; +} XSpanFix; + +typedef struct _XTrap { + XSpanFix top, bottom; +} XTrap; + +typedef struct _XLinearGradient { + XPointFixed p1; + XPointFixed p2; +} XLinearGradient; + +typedef struct _XRadialGradient { + XCircle inner; + XCircle outer; +} XRadialGradient; + +typedef struct _XConicalGradient { + XPointFixed center; + XFixed angle; /* in degrees */ +} XConicalGradient; + _XFUNCPROTOBEGIN Bool XRenderQueryExtension (Display *dpy, int *event_basep, int *error_basep); @@ -456,7 +484,7 @@ void XRenderSetPictureFilter (Display *dpy, Picture picture, - char *filter, + const char *filter, XFixed *params, int nparams); @@ -465,6 +493,36 @@ int ncursor, XAnimCursor *cursors); + +void +XRenderAddTraps (Display *dpy, + Picture picture, + int xOff, + int yOff, + _Xconst XTrap *traps, + int ntrap); + +Picture XRenderCreateSolidFill (Display *dpy, + const XRenderColor *color); + +Picture XRenderCreateLinearGradient (Display *dpy, + const XLinearGradient *gradient, + const XFixed *stops, + const XRenderColor *colors, + int nstops); + +Picture XRenderCreateRadialGradient (Display *dpy, + const XRadialGradient *gradient, + const XFixed *stops, + const XRenderColor *colors, + int nstops); + +Picture XRenderCreateConicalGradient (Display *dpy, + const XConicalGradient *gradient, + const XFixed *stops, + const XRenderColor *colors, + int nstops); + _XFUNCPROTOEND #endif /* _XRENDER_H_ */