2008-12-11 Claudio Saavedra <csaavedra@igalia.com>
[hildon] / src / hildon-color-chooser-dialog.h
1 /*
2  * This file is a part of hildon
3  *
4  * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
5  *
6  * Author: Kuisma Salonen <kuisma.salonen@nokia.com>
7  * Contact: Rodrigo Novo <rodrigo.novo@nokia.com>
8  *
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
12  * the License, or (at your option) any later version.
13  *
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.
18  *
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
22  * 02110-1301 USA
23  *
24  */
25
26 #ifndef                                         HILDON_DISABLE_DEPRECATED
27
28 #ifndef                                         __HILDON_COLOR_CHOOSER_DIALOG_H__
29 #define                                         __HILDON_COLOR_CHOOSER_DIALOG_H__
30
31 #include                                        <gtk/gtk.h>
32
33 #define                                         HILDON_TYPE_COLOR_CHOOSER_DIALOG \
34                                                 (hildon_color_chooser_dialog_get_type())
35
36 #define                                         HILDON_COLOR_CHOOSER_DIALOG(obj) \
37                                                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
38                                                 HILDON_TYPE_COLOR_CHOOSER_DIALOG, \
39                                                 HildonColorChooserDialog))
40
41 #define                                         HILDON_COLOR_CHOOSER_DIALOG_CLASS(klass) \
42                                                 (G_TYPE_CHECK_CLASS_CAST ((klass), \
43                                                 HILDON_TYPE_COLOR_CHOOSER_DIALOG, \
44                                                 HildonColorChooserDialogClass))
45
46 #define                                         HILDON_IS_COLOR_CHOOSER_DIALOG(obj) \
47                                                 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
48                                                 HILDON_TYPE_COLOR_CHOOSER_DIALOG))
49
50 typedef struct                                  _HildonColorChooserDialog HildonColorChooserDialog;
51
52 typedef struct                                  _HildonColorChooserDialogClass HildonColorChooserDialogClass;
53
54 struct                                          _HildonColorChooserDialog
55 {
56     GtkDialog parent;
57 };
58
59 struct                                          _HildonColorChooserDialogClass 
60 {
61     GtkDialogClass parent_class;
62 };
63
64 GType G_GNUC_CONST
65 hildon_color_chooser_dialog_get_type            (void);
66
67 GtkWidget*
68 hildon_color_chooser_dialog_new                 (void);
69
70 void
71 hildon_color_chooser_dialog_set_color           (HildonColorChooserDialog *dialog, 
72                                                  GdkColor *color);
73
74 void
75 hildon_color_chooser_dialog_get_color           (HildonColorChooserDialog *dialog,
76                                                  GdkColor *color);
77
78 #endif                                          /* __HILDON_COLOR_CHOOSER_DIALOG_H__ */
79
80 #endif                                          /* HILDON_DISABLE_DEPRECATED */