summaryrefslogtreecommitdiffstats
path: root/src/widgets/gradient-image.h
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-01-16 02:36:01 +0000
committermental <mental@users.sourceforge.net>2006-01-16 02:36:01 +0000
commit179fa413b047bede6e32109e2ce82437c5fb8d34 (patch)
treea5a6ac2c1708bd02288fbd8edb2ff500ff2e0916 /src/widgets/gradient-image.h
downloadinkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.tar.gz
inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.zip
moving trunk for module inkscape
(bzr r1)
Diffstat (limited to 'src/widgets/gradient-image.h')
-rw-r--r--src/widgets/gradient-image.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/widgets/gradient-image.h b/src/widgets/gradient-image.h
new file mode 100644
index 000000000..0e0241ac7
--- /dev/null
+++ b/src/widgets/gradient-image.h
@@ -0,0 +1,46 @@
+#ifndef __SP_GRADIENT_IMAGE_H__
+#define __SP_GRADIENT_IMAGE_H__
+
+/*
+ * A simple gradient preview
+ *
+ * Author:
+ * Lauris Kaplinski <lauris@kaplinski.com>
+ *
+ * Copyright (C) 2001-2002 Lauris Kaplinski
+ * Copyright (C) 2001 Ximian, Inc.
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+
+#include <gtk/gtkwidget.h>
+#include "../libnr/nr-matrix.h"
+class SPGradient;
+
+#include <glib.h>
+
+
+#define SP_TYPE_GRADIENT_IMAGE (sp_gradient_image_get_type ())
+#define SP_GRADIENT_IMAGE(o) (GTK_CHECK_CAST ((o), SP_TYPE_GRADIENT_IMAGE, SPGradientImage))
+#define SP_GRADIENT_IMAGE_CLASS(k) (GTK_CHECK_CLASS_CAST ((k), SP_TYPE_GRADIENT_IMAGE, SPGradientImageClass))
+#define SP_IS_GRADIENT_IMAGE(o) (GTK_CHECK_TYPE ((o), SP_TYPE_GRADIENT_IMAGE))
+#define SP_IS_GRADIENT_IMAGE_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), SP_TYPE_GRADIENT_IMAGE))
+
+struct SPGradientImage {
+ GtkWidget widget;
+ SPGradient *gradient;
+ guchar *px;
+};
+
+struct SPGradientImageClass {
+ GtkWidgetClass parent_class;
+};
+
+GtkType sp_gradient_image_get_type (void);
+
+GtkWidget *sp_gradient_image_new (SPGradient *gradient);
+void sp_gradient_image_set_gradient (SPGradientImage *gi, SPGradient *gr);
+
+
+
+#endif