summaryrefslogtreecommitdiffstats
path: root/src/display/nr-gradient-gpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/display/nr-gradient-gpl.h')
-rw-r--r--src/display/nr-gradient-gpl.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/display/nr-gradient-gpl.h b/src/display/nr-gradient-gpl.h
new file mode 100644
index 000000000..db7d9bb54
--- /dev/null
+++ b/src/display/nr-gradient-gpl.h
@@ -0,0 +1,41 @@
+#ifndef __NR_GRADIENT_GPL_H__
+#define __NR_GRADIENT_GPL_H__
+
+/*
+ * Pixel buffer rendering library
+ *
+ * Authors:
+ * Lauris Kaplinski <lauris@kaplinski.com>
+ *
+ * Copyright (C) 2001-2002 Lauris Kaplinski
+ * Copyright (C) 2001-2002 Ximian, Inc.
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+
+/*
+ * Here is GPL code, unlike other libnr wihich is public domain
+ */
+
+#include <libnr/nr-gradient.h>
+
+/* Linear */
+
+struct NRLGradientRenderer {
+ NRRenderer renderer;
+ const unsigned char *vector;
+ unsigned int spread;
+ double x0, y0;
+ double dx, dy;
+};
+
+NRRenderer *nr_lgradient_renderer_setup (NRLGradientRenderer *lgr,
+ const unsigned char *cv,
+ unsigned int spread,
+ const NRMatrix *gs2px,
+ float x0, float y0,
+ float x1, float y1);
+
+
+
+#endif