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