1 /* GTK - The GIMP Toolkit
3 * Copyright (C) 2012 Red Hat, Inc.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library 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 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
22 #error "Only <gtk/gtk.h> can be included directly."
25 #ifndef __GTK_COLOR_CHOOSER_H__
26 #define __GTK_COLOR_CHOOSER_H__
28 #include <gtk/gtkwidget.h>
32 #define GTK_TYPE_COLOR_CHOOSER (gtk_color_chooser_get_type ())
33 #define GTK_COLOR_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COLOR_CHOOSER, GtkColorChooser))
34 #define GTK_IS_COLOR_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COLOR_CHOOSER))
35 #define GTK_COLOR_CHOOSER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GTK_TYPE_COLOR_CHOOSER, GtkColorChooserInterface))
37 typedef struct _GtkColorChooser GtkColorChooser;
38 typedef struct _GtkColorChooserInterface GtkColorChooserInterface;
40 struct _GtkColorChooserInterface
42 GTypeInterface base_interface;
45 void (* get_rgba) (GtkColorChooser *chooser,
47 void (* set_rgba) (GtkColorChooser *chooser,
48 const GdkRGBA *color);
50 void (* add_palette) (GtkColorChooser *chooser,
57 void (* color_activated) (GtkColorChooser *chooser,
58 const GdkRGBA *color);
65 GType gtk_color_chooser_get_type (void) G_GNUC_CONST;
68 void gtk_color_chooser_get_rgba (GtkColorChooser *chooser,
71 void gtk_color_chooser_set_rgba (GtkColorChooser *chooser,
72 const GdkRGBA *color);
74 gboolean gtk_color_chooser_get_use_alpha (GtkColorChooser *chooser);
76 void gtk_color_chooser_set_use_alpha (GtkColorChooser *chooser,
80 void gtk_color_chooser_add_palette (GtkColorChooser *chooser,
88 #endif /* __GTK_COLOR_CHOOSER_H__ */