~valavanisalex/ubuntu/oneiric/inkscape/inkscape_0.48.1-2ubuntu5

« back to all changes in this revision

Viewing changes to src/widgets/sp-color-preview.h

  • Committer: Bazaar Package Importer
  • Author(s): Wolfram Quester
  • Date: 2004-06-02 10:35:45 UTC
  • Revision ID: james.westby@ubuntu.com-20040602103545-q3x0q6xd2k1yj0fr
Tags: upstream-0.38.1
ImportĀ upstreamĀ versionĀ 0.38.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __SP_COLOR_PREVIEW_H__
 
2
#define __SP_COLOR_PREVIEW_H__
 
3
 
 
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
 */
 
15
 
 
16
#include <gtk/gtkwidget.h>
 
17
 
 
18
#include <glib.h>
 
19
 
 
20
 
 
21
 
 
22
typedef struct _SPColorPreview SPColorPreview;
 
23
typedef struct _SPColorPreviewClass SPColorPreviewClass;
 
24
 
 
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))
 
30
 
 
31
struct _SPColorPreview {
 
32
        GtkWidget widget;
 
33
 
 
34
        guint32 rgba;
 
35
};
 
36
 
 
37
struct _SPColorPreviewClass {
 
38
        GtkWidgetClass parent_class;
 
39
};
 
40
 
 
41
GtkType sp_color_preview_get_type (void);
 
42
 
 
43
GtkWidget *sp_color_preview_new (guint32 rgba);
 
44
 
 
45
void sp_color_preview_set_rgba32 (SPColorPreview *cp, guint32 color);
 
46
 
 
47
 
 
48
 
 
49
 
 
50
#endif