Code

disconnect signals on destroying
[inkscape.git] / src / widgets / sp-color-preview.h
1 #ifndef __SP_COLOR_PREVIEW_H__
2 #define __SP_COLOR_PREVIEW_H__
4 /*
5  * A simple color preview widget
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>
18 #include <glib.h>
22 #define SP_TYPE_COLOR_PREVIEW (sp_color_preview_get_type ())
23 #define SP_COLOR_PREVIEW(o) (GTK_CHECK_CAST ((o), SP_TYPE_COLOR_PREVIEW, SPColorPreview))
24 #define SP_COLOR_PREVIEW_CLASS(k) (GTK_CHECK_CLASS_CAST ((k), SP_TYPE_COLOR_PREVIEW, SPColorPreviewClass))
25 #define SP_IS_COLOR_PREVIEW(o) (GTK_CHECK_TYPE ((o), SP_TYPE_COLOR_PREVIEW))
26 #define SP_IS_COLOR_PREVIEW_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), SP_TYPE_COLOR_PREVIEW))
28 struct SPColorPreview {
29         GtkWidget widget;
31         guint32 rgba;
32 };
34 struct SPColorPreviewClass {
35         GtkWidgetClass parent_class;
36 };
38 GtkType sp_color_preview_get_type (void);
40 GtkWidget *sp_color_preview_new (guint32 rgba);
42 void sp_color_preview_set_rgba32 (SPColorPreview *cp, guint32 color);
47 #endif