2 * This file is part of hildon-libs
4 * Copyright (C) 2005, 2006 Nokia Corporation.
6 * Author: Kuisma Salonen <kuisma.salonen@nokia.com>
7 * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public License
11 * as published by the Free Software Foundation; version 2.1 of
14 * This library is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
27 #ifndef __HILDON_COLOR_CHOOSER_DIALOG_H__
28 #define __HILDON_COLOR_CHOOSER_DIALOG_H__
31 #include <gdk/gdkcolor.h>
33 #include <gtk/gtkdialog.h>
36 #define HILDON_TYPE_COLOR_CHOOSER_DIALOG (hildon_color_chooser_dialog_get_type())
38 #define HILDON_COLOR_CHOOSER_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), HILDON_TYPE_COLOR_CHOOSER_DIALOG, HildonColorChooserDialog))
39 #define HILDON_COLOR_CHOOSER_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), HILDON_TYPE_COLOR_CHOOSER_DIALOG, HildonColorChooserDialogClass))
40 #define HILDON_IS_COLOR_CHOOSER_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_COLOR_CHOOSER_DIALOG))
43 typedef struct HildonColorChooserDialog_ HildonColorChooserDialog;
44 typedef struct HildonColorChooserDialogClass_ HildonColorChooserDialogClass;
47 struct HildonColorChooserDialog_ {
55 struct HildonColorChooserDialogClass_ {
56 GtkDialogClass parent_class;
58 gboolean (*color_changed) (HildonColorChooserDialog *chooser, GdkColor *color);
60 void (*set_color) (HildonColorChooserDialog *, GdkColor *);
62 void (*reserved[32]) (void *);
66 GtkType hildon_color_chooser_dialog_get_type();
68 GtkWidget *hildon_color_chooser_dialog_new();
70 void hildon_color_chooser_dialog_set_color(HildonColorChooserDialog *chooser, GdkColor *color);
71 void hildon_color_chooser_dialog_get_color(HildonColorChooserDialog *chooser, GdkColor *color);
73 void hildon_color_chooser_dialog_emit_color_changed(HildonColorChooserDialog *chooser);
76 #endif /* __HILDON_COLOR_CHOOSER_DIALOG_H__ */