Gazpacho support, added the following properties:
[hildon] / hildon-widgets / hildon-volumebar.h
1 /*
2  * This file is part of hildon-libs
3  *
4  * Copyright (C) 2005 Nokia Corporation.
5  *
6  * Contact: Luc Pionchon <luc.pionchon@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; either 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 #ifndef __HILDON_VOLUMEBAR_H__
25 #define __HILDON_VOLUMEBAR_H__
26
27 #include <glib.h>
28 #include <glib-object.h>
29 #include <gtk/gtkcontainer.h>
30 /*#include <gtk/gtkframe.h>*/
31 #include <gtk/gtktogglebutton.h>
32 #include <gtk/gtkbox.h>
33 #include <gtk/gtkhbox.h>
34 #include <gtk/gtkvbox.h>
35 #include <gtk/gtkadjustment.h>
36
37 G_BEGIN_DECLS
38 #define HILDON_TYPE_VOLUMEBAR ( hildon_volumebar_get_type() )
39 #define HILDON_VOLUMEBAR(obj) (GTK_CHECK_CAST (obj,\
40         HILDON_TYPE_VOLUMEBAR, HildonVolumebar))
41 #define HILDON_VOLUMEBAR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass),\
42         HILDON_TYPE_VOLUMEBAR, HildonVolumebarClass))
43 #define HILDON_IS_VOLUMEBAR(obj) (GTK_CHECK_TYPE (obj,\
44         HILDON_TYPE_VOLUMEBAR))
45 #define HILDON_IS_VOLUMEBAR_CLASS(klass) \
46         (GTK_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_VOLUMEBAR))
47 typedef struct _HildonVolumebar HildonVolumebar;
48 typedef struct _HildonVolumebarClass HildonVolumebarClass;
49
50 struct _HildonVolumebar {
51     GtkContainer par;
52 };
53
54 struct _HildonVolumebarClass {
55     GtkContainerClass parent_class;
56
57     /* signal */
58     void (*mute_toggled) (HildonVolumebar * self);
59     void (*level_changed) (HildonVolumebar * self);
60 };
61
62 GType hildon_volumebar_get_type(void);
63
64 void hildon_volumebar_set_level(HildonVolumebar * self, gdouble level);
65 double hildon_volumebar_get_level(HildonVolumebar * self);
66 void hildon_volumebar_set_mute(HildonVolumebar * self, gboolean mute);
67 gboolean hildon_volumebar_get_mute(HildonVolumebar * self);
68 void hildon_volumebar_level_change(HildonVolumebar * self);
69 GtkAdjustment * hildon_volumebar_get_adjustment (HildonVolumebar * self);
70
71 G_END_DECLS
72 #endif