Fix gtk-doc packaging
[hildon] / src / hildon-volumebar.h
1 /*
2  * This file is a part of hildon
3  *
4  * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
5  *
6  * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation; version 2.1 of
11  * the License.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  *
23  */
24
25 #ifndef                                         __HILDON_VOLUMEBAR_H__
26 #define                                         __HILDON_VOLUMEBAR_H__
27
28 #include                                        <gtk/gtkcontainer.h>
29 #include                                        <gtk/gtkadjustment.h>
30
31 G_BEGIN_DECLS
32
33 #define                                         HILDON_TYPE_VOLUMEBAR \
34                                                 (hildon_volumebar_get_type())
35
36 #define                                         HILDON_VOLUMEBAR(obj) (GTK_CHECK_CAST (obj,\
37                                                 HILDON_TYPE_VOLUMEBAR, HildonVolumebar))
38
39 #define                                         HILDON_VOLUMEBAR_CLASS(klass) \
40                                                 (GTK_CHECK_CLASS_CAST ((klass),\
41                                                 HILDON_TYPE_VOLUMEBAR, HildonVolumebarClass))
42
43 #define                                         HILDON_IS_VOLUMEBAR(obj) (GTK_CHECK_TYPE (obj,\
44                                                 HILDON_TYPE_VOLUMEBAR))
45
46 #define                                         HILDON_IS_VOLUMEBAR_CLASS(klass) \
47                                                 (GTK_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_VOLUMEBAR))
48
49 #define                                         HILDON_VOLUMEBAR_GET_CLASS(obj) \
50                                                 ((HildonVolumebarClass *) G_OBJECT_GET_CLASS(obj))
51
52 typedef struct                                  _HildonVolumebar HildonVolumebar;
53
54 typedef struct                                  _HildonVolumebarClass HildonVolumebarClass;
55
56 struct                                          _HildonVolumebar 
57 {
58     GtkContainer parent;
59 };
60
61 struct                                          _HildonVolumebarClass 
62 {
63     GtkContainerClass parent_class;
64
65     /* signals */
66     void (*mute_toggled)  (HildonVolumebar * self);
67     void (*level_changed) (HildonVolumebar * self);
68 };
69
70 GType G_GNUC_CONST 
71 hildon_volumebar_get_type                       (void);
72
73 double          
74 hildon_volumebar_get_level                      (HildonVolumebar *self);
75
76 void            
77 hildon_volumebar_set_level                      (HildonVolumebar *self,
78                                                  gdouble level);
79
80 gboolean        
81 hildon_volumebar_get_mute                       (HildonVolumebar *self);
82
83 void            
84 hildon_volumebar_set_mute                       (HildonVolumebar *self,
85                                                  gboolean mute);
86
87 GtkAdjustment* 
88 hildon_volumebar_get_adjustment                 (HildonVolumebar *self);
89
90 G_END_DECLS
91
92 #endif                                          /* __HILDON_VOLUMEBAR_H__ */