Remove HILDON_ENABLE_UNSTABLE_API.
[hildon] / src / hildon-color-chooser.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: Michael Dominic Kostrzewa <michael.kostrzewa@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
27 #ifndef                                         __HILDON_COLOR_CHOOSER_H__
28 #define                                         __HILDON_COLOR_CHOOSER_H__
29
30 #include                                        <gdk/gdkcolor.h>
31 #include                                        <gtk/gtkwidget.h>
32
33 #define                                         HILDON_TYPE_COLOR_CHOOSER \
34                                                 (hildon_color_chooser_get_type())
35
36 #define                                         HILDON_COLOR_CHOOSER(obj) \
37                                                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
38                                                 HILDON_TYPE_COLOR_CHOOSER, \
39                                                 HildonColorChooser))
40
41 #define                                         HILDON_COLOR_CHOOSER_CLASS(klass) \
42                                                 (G_TYPE_CHECK_CLASS_CAST ((klass), \
43                                                 HILDON_TYPE_COLOR_CHOOSER, \
44                                                 HildonColorChooserClass))
45
46 #define                                         HILDON_IS_COLOR_CHOOSER(obj) \
47                                                 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
48                                                 HILDON_TYPE_COLOR_CHOOSER))
49
50 typedef struct                                  _HildonColorChooser HildonColorChooser;
51
52 typedef struct                                  _HildonColorChooserClass HildonColorChooserClass;
53
54 struct                                          _HildonColorChooser
55 {
56     GtkWidget parent;
57 };
58
59 struct _HildonColorChooserClass
60 {
61     GtkWidgetClass parent;
62
63     void (*color_changed) (HildonColorChooser *selection, GdkColor *color);
64     void (*set_color) (HildonColorChooser *, GdkColor *);
65 };
66
67 GType G_GNUC_CONST
68 hildon_color_chooser_get_type                   (void);
69
70 GtkWidget*
71 hildon_color_chooser_new                        (void);
72
73 void
74 hildon_color_chooser_set_color                  (HildonColorChooser *chooser, 
75                                                  GdkColor *color);
76
77 void
78 hildon_color_chooser_get_color                  (HildonColorChooser *chooser, 
79                                                  GdkColor *color);
80
81 #endif                                          /* __HILDON_COLOR_CHOOSER_H__ */