Code

db7d9bb54080afd6590eba5627fb076c0b995b7e
[inkscape.git] / src / display / nr-gradient-gpl.h
1 #ifndef __NR_GRADIENT_GPL_H__
2 #define __NR_GRADIENT_GPL_H__
4 /*
5  * Pixel buffer rendering library
6  *
7  * Authors:
8  *   Lauris Kaplinski <lauris@kaplinski.com>
9  *
10  * Copyright (C) 2001-2002 Lauris Kaplinski
11  * Copyright (C) 2001-2002 Ximian, Inc.
12  *
13  * Released under GNU GPL, read the file 'COPYING' for more information
14  */
16 /*
17  * Here is GPL code, unlike other libnr wihich is public domain
18  */
20 #include <libnr/nr-gradient.h>
22 /* Linear */
24 struct NRLGradientRenderer {
25         NRRenderer renderer;
26         const unsigned char *vector;
27         unsigned int spread;
28         double x0, y0;
29         double dx, dy;
30 };
32 NRRenderer *nr_lgradient_renderer_setup (NRLGradientRenderer *lgr,
33                                          const unsigned char *cv, 
34                                          unsigned int spread, 
35                                          const NRMatrix *gs2px,
36                                          float x0, float y0,
37                                          float x1, float y1);
41 #endif