1
#ifndef __SP_COLOR_PREVIEW_H__
2
#define __SP_COLOR_PREVIEW_H__
5
* A simple color preview widget
8
* Lauris Kaplinski <lauris@kaplinski.com>
10
* Copyright (C) 2001-2002 Lauris Kaplinski
11
* Copyright (C) 2001 Ximian, Inc.
13
* Released under GNU GPL, read the file 'COPYING' for more information
16
#include <gtk/gtkwidget.h>
22
typedef struct _SPColorPreview SPColorPreview;
23
typedef struct _SPColorPreviewClass SPColorPreviewClass;
25
#define SP_TYPE_COLOR_PREVIEW (sp_color_preview_get_type ())
26
#define SP_COLOR_PREVIEW(o) (GTK_CHECK_CAST ((o), SP_TYPE_COLOR_PREVIEW, SPColorPreview))
27
#define SP_COLOR_PREVIEW_CLASS(k) (GTK_CHECK_CLASS_CAST ((k), SP_TYPE_COLOR_PREVIEW, SPColorPreviewClass))
28
#define SP_IS_COLOR_PREVIEW(o) (GTK_CHECK_TYPE ((o), SP_TYPE_COLOR_PREVIEW))
29
#define SP_IS_COLOR_PREVIEW_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), SP_TYPE_COLOR_PREVIEW))
31
struct _SPColorPreview {
37
struct _SPColorPreviewClass {
38
GtkWidgetClass parent_class;
41
GtkType sp_color_preview_get_type (void);
43
GtkWidget *sp_color_preview_new (guint32 rgba);
45
void sp_color_preview_set_rgba32 (SPColorPreview *cp, guint32 color);