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, see <http://www.gnu.org/licenses/>.
19 #ifndef __GTK_COLOR_CHOOSER_H__
20 #define __GTK_COLOR_CHOOSER_H__
22 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
23 #error "Only <gtk/gtk.h> can be included directly."
26 #include <gtk/gtkwidget.h>
30 #define GTK_TYPE_COLOR_CHOOSER (gtk_color_chooser_get_type ())
31 #define GTK_COLOR_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COLOR_CHOOSER, GtkColorChooser))
32 #define GTK_IS_COLOR_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COLOR_CHOOSER))
33 #define GTK_COLOR_CHOOSER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GTK_TYPE_COLOR_CHOOSER, GtkColorChooserInterface))
35 typedef struct _GtkColorChooser GtkColorChooser;
36 typedef struct _GtkColorChooserInterface GtkColorChooserInterface;
38 struct _GtkColorChooserInterface
40 GTypeInterface base_interface;
43 void (* get_rgba) (GtkColorChooser *chooser,
45 void (* set_rgba) (GtkColorChooser *chooser,
46 const GdkRGBA *color);
48 void (* add_palette) (GtkColorChooser *chooser,
49 GtkOrientation orientation,
55 void (* color_activated) (GtkColorChooser *chooser,
56 const GdkRGBA *color);
63 GType gtk_color_chooser_get_type (void) G_GNUC_CONST;
66 void gtk_color_chooser_get_rgba (GtkColorChooser *chooser,
69 void gtk_color_chooser_set_rgba (GtkColorChooser *chooser,
70 const GdkRGBA *color);
72 gboolean gtk_color_chooser_get_use_alpha (GtkColorChooser *chooser);
75 void gtk_color_chooser_set_use_alpha (GtkColorChooser *chooser,
79 void gtk_color_chooser_add_palette (GtkColorChooser *chooser,
80 GtkOrientation orientation,
87 #endif /* __GTK_COLOR_CHOOSER_H__ */