1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /* gtkhtml-color-palette.h
4 * Copyright (C) 2008 Novell, Inc.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of version 2 of the GNU Lesser General Public
8 * License as published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this program; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef GTKHTML_COLOR_PALETTE_H
22 #define GTKHTML_COLOR_PALETTE_H
24 #include "gtkhtml-editor-common.h"
26 /* Standard GObject macros */
27 #define GTKHTML_TYPE_COLOR_PALETTE \
28 (gtkhtml_color_palette_get_type ())
29 #define GTKHTML_COLOR_PALETTE(obj) \
30 (G_TYPE_CHECK_INSTANCE_CAST \
31 ((obj), GTKHTML_TYPE_COLOR_PALETTE, GtkhtmlColorPalette))
32 #define GTKHTML_COLOR_PALETTE_CLASS(cls) \
33 (G_TYPE_CHECK_CLASS_CAST \
34 ((cls), GTKHTML_TYPE_COLOR_PALETTE, GtkhtmlColorPaletteClass))
35 #define GTKHTML_IS_COLOR_PALETTE(obj) \
36 (G_TYPE_CHECK_INSTANCE_TYPE \
37 ((obj), GTKHTML_TYPE_COLOR_PALETTE))
38 #define GTKHTML_IS_COLOR_PALETTE_CLASS(cls) \
39 (G_TYPE_CHECK_CLASS_TYPE \
40 ((cls), GTKHTML_TYPE_COLOR_PALETTE))
41 #define GTKHTML_COLOR_PALETTE_GET_CLASS(obj) \
42 (G_TYPE_INSTANCE_GET_CLASS \
43 ((obj), GTKHTML_TYPE_COLOR_PALETTE, GtkhtmlColorPaletteClass))
47 typedef struct _GtkhtmlColorPalette GtkhtmlColorPalette
;
48 typedef struct _GtkhtmlColorPaletteClass GtkhtmlColorPaletteClass
;
49 typedef struct _GtkhtmlColorPalettePrivate GtkhtmlColorPalettePrivate
;
51 struct _GtkhtmlColorPalette
{
53 GtkhtmlColorPalettePrivate
*priv
;
56 struct _GtkhtmlColorPaletteClass
{
57 GObjectClass parent_class
;
60 GType
gtkhtml_color_palette_get_type (void);
62 gtkhtml_color_palette_new (void);
63 void gtkhtml_color_palette_add_color
64 (GtkhtmlColorPalette
*palette
,
65 const GdkColor
*color
);
66 GSList
* gtkhtml_color_palette_list_colors
67 (GtkhtmlColorPalette
*palette
);
71 #endif /* GTKHTML_COLOR_PALETTE_H */