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_H__
29
#define                                         __HILDON_COLOR_CHOOSER_H__
30
31
#include                                        <gtk/gtk.h>
32
33
G_BEGIN_DECLS
34
35
#define                                         HILDON_TYPE_COLOR_CHOOSER \
36
                                                (hildon_color_chooser_get_type())
37
38
#define                                         HILDON_COLOR_CHOOSER(obj) \
39
                                                (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
40
                                                HILDON_TYPE_COLOR_CHOOSER, \
41
                                                HildonColorChooser))
42
43
#define                                         HILDON_COLOR_CHOOSER_CLASS(klass) \
44
                                                (G_TYPE_CHECK_CLASS_CAST ((klass), \
45
                                                HILDON_TYPE_COLOR_CHOOSER, \
46
                                                HildonColorChooserClass))
47
48
#define                                         HILDON_IS_COLOR_CHOOSER(obj) \
49
                                                (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
50
                                                HILDON_TYPE_COLOR_CHOOSER))
51
52
typedef struct                                  _HildonColorChooser HildonColorChooser;
53
54
typedef struct                                  _HildonColorChooserClass HildonColorChooserClass;
55
56
struct                                          _HildonColorChooser
57
{
58
    GtkWidget parent;
59
};
60
61
struct _HildonColorChooserClass
62
{
63
    GtkWidgetClass parent;
64
65
    void (*color_changed) (HildonColorChooser *selection, GdkColor *color);
66
    void (*set_color) (HildonColorChooser *, GdkColor *);
67
};
68
69
GType G_GNUC_CONST
70
hildon_color_chooser_get_type                   (void);
71
72
GtkWidget*
73
hildon_color_chooser_new                        (void);
74
75
void
76
hildon_color_chooser_set_color                  (HildonColorChooser *chooser, 
77
                                                 GdkColor *color);
78
79
void
80
hildon_color_chooser_get_color                  (HildonColorChooser *chooser, 
81
                                                 GdkColor *color);
82
83
G_END_DECLS
84
85
#endif                                          /* __HILDON_COLOR_CHOOSER_H__ */
86
87
#endif                                          /* HILDON_DISABLE_DEPRECATED */