Code

Use subdirectories with icon sizes.
[inkscape.git] / src / widgets / gradient-image.h
1 #ifndef __SP_GRADIENT_IMAGE_H__
2 #define __SP_GRADIENT_IMAGE_H__
4 /*
5  * A simple gradient preview
6  *
7  * Author:
8  *   Lauris Kaplinski <lauris@kaplinski.com>
9  *
10  * Copyright (C) 2001-2002 Lauris Kaplinski
11  * Copyright (C) 2001 Ximian, Inc.
12  *
13  * Released under GNU GPL, read the file 'COPYING' for more information
14  */
16 #include <gtk/gtkwidget.h>
17 #include "../libnr/nr-matrix.h"
18 class SPGradient;
20 #include <glib.h>
22 #include <sigc++/connection.h>
24 #define SP_TYPE_GRADIENT_IMAGE (sp_gradient_image_get_type ())
25 #define SP_GRADIENT_IMAGE(o) (GTK_CHECK_CAST ((o), SP_TYPE_GRADIENT_IMAGE, SPGradientImage))
26 #define SP_GRADIENT_IMAGE_CLASS(k) (GTK_CHECK_CLASS_CAST ((k), SP_TYPE_GRADIENT_IMAGE, SPGradientImageClass))
27 #define SP_IS_GRADIENT_IMAGE(o) (GTK_CHECK_TYPE ((o), SP_TYPE_GRADIENT_IMAGE))
28 #define SP_IS_GRADIENT_IMAGE_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), SP_TYPE_GRADIENT_IMAGE))
30 struct SPGradientImage {
31         GtkWidget widget;
32         SPGradient *gradient;
33         guchar *px;
35         sigc::connection release_connection;
36         sigc::connection modified_connection;
37 };
39 struct SPGradientImageClass {
40         GtkWidgetClass parent_class;
41 };
43 GtkType sp_gradient_image_get_type (void);
45 GtkWidget *sp_gradient_image_new (SPGradient *gradient);
46 void sp_gradient_image_set_gradient (SPGradientImage *gi, SPGradient *gr);
50 #endif