Renamed src/ to hildon/
[hildon] / hildon / 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: Rodrigo Novo <rodrigo.novo@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, or (at your option) any later version.
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_DISABLE_DEPRECATED
26
27 #ifndef                                         __HILDON_VOLUMEBAR_H__
28 #define                                         __HILDON_VOLUMEBAR_H__
29
30 #include                                        <gtk/gtk.h>
31
32 #include                                        "hildon-helper.h"
33
34 G_BEGIN_DECLS
35
36 #define                                         HILDON_TYPE_VOLUMEBAR \
37                                                 (hildon_volumebar_get_type())
38
39 #define                                         HILDON_VOLUMEBAR(obj) (GTK_CHECK_CAST (obj,\
40                                                 HILDON_TYPE_VOLUMEBAR, HildonVolumebar))
41
42 #define                                         HILDON_VOLUMEBAR_CLASS(klass) \
43                                                 (GTK_CHECK_CLASS_CAST ((klass),\
44                                                 HILDON_TYPE_VOLUMEBAR, HildonVolumebarClass))
45
46 #define                                         HILDON_IS_VOLUMEBAR(obj) (GTK_CHECK_TYPE (obj,\
47                                                 HILDON_TYPE_VOLUMEBAR))
48
49 #define                                         HILDON_IS_VOLUMEBAR_CLASS(klass) \
50                                                 (GTK_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_VOLUMEBAR))
51
52 #define                                         HILDON_VOLUMEBAR_GET_CLASS(obj) \
53                                                 ((HildonVolumebarClass *) G_OBJECT_GET_CLASS(obj))
54
55 typedef struct                                  _HildonVolumebar HildonVolumebar;
56
57 typedef struct                                  _HildonVolumebarClass HildonVolumebarClass;
58
59 struct                                          _HildonVolumebar 
60 {
61     GtkContainer parent;
62 };
63
64 struct                                          _HildonVolumebarClass 
65 {
66     GtkContainerClass parent_class;
67
68     /* signals */
69     void (*mute_toggled)  (HildonVolumebar * self);
70     void (*level_changed) (HildonVolumebar * self);
71 };
72
73 GType G_GNUC_CONST 
74 hildon_volumebar_get_type                       (void);
75
76 double          
77 hildon_volumebar_get_level                      (HildonVolumebar *self);
78
79 void            
80 hildon_volumebar_set_level                      (HildonVolumebar *self,
81                                                  gdouble level);
82
83 gboolean        
84 hildon_volumebar_get_mute                       (HildonVolumebar *self);
85
86 void            
87 hildon_volumebar_set_mute                       (HildonVolumebar *self,
88                                                  gboolean mute);
89
90 GtkAdjustment* 
91 hildon_volumebar_get_adjustment                 (HildonVolumebar *self);
92
93 #ifndef HILDON_DISABLE_DEPRECATED
94 void
95 hildon_volumebar_set_range_insensitive_message  (HildonVolumebar *widget,
96                                                  const gchar *message);
97
98 void
99 hildon_volumebar_set_range_insensitive_messagef (HildonVolumebar *widget,
100                                                  const gchar *format,
101                                                  ...);
102 #endif
103
104 G_END_DECLS
105
106 #endif                                          /* __HILDON_VOLUMEBAR_H__ */
107
108 #endif                                          /* HILDON_DISABLE_DEPRECATED */