2 * This file is a part of hildon
4 * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
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
12 * the License, or (at your option) any later version.
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_H__
28 #define __HILDON_COLOR_CHOOSER_H__
32 #define HILDON_TYPE_COLOR_CHOOSER \
33 (hildon_color_chooser_get_type())
35 #define HILDON_COLOR_CHOOSER(obj) \
36 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
37 HILDON_TYPE_COLOR_CHOOSER, \
40 #define HILDON_COLOR_CHOOSER_CLASS(klass) \
41 (G_TYPE_CHECK_CLASS_CAST ((klass), \
42 HILDON_TYPE_COLOR_CHOOSER, \
43 HildonColorChooserClass))
45 #define HILDON_IS_COLOR_CHOOSER(obj) \
46 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
47 HILDON_TYPE_COLOR_CHOOSER))
49 typedef struct _HildonColorChooser HildonColorChooser;
51 typedef struct _HildonColorChooserClass HildonColorChooserClass;
53 struct _HildonColorChooser
58 struct _HildonColorChooserClass
60 GtkWidgetClass parent;
62 void (*color_changed) (HildonColorChooser *selection, GdkColor *color);
63 void (*set_color) (HildonColorChooser *, GdkColor *);
67 hildon_color_chooser_get_type (void);
70 hildon_color_chooser_new (void);
73 hildon_color_chooser_set_color (HildonColorChooser *chooser,
77 hildon_color_chooser_get_color (HildonColorChooser *chooser,
80 #endif /* __HILDON_COLOR_CHOOSER_H__ */