Code

Fix change in revision 9947 to be consistent with rest of the codebase.
[inkscape.git] / src / widgets / sp-color-preview.h
1 #ifndef SEEN_COLOR_PREVIEW_H
2 #define SEEN_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 GType 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);
45 #endif // SEEN_COLOR_PREVIEW_H
46 /*
47   Local Variables:
48   mode:c++
49   c-file-style:"stroustrup"
50   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
51   indent-tabs-mode:nil
52   fill-column:99
53   End:
54 */
55 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :