2 * This file is part of hildon-libs
4 * Copyright (C) 2005 Nokia Corporation.
6 * Contact: Luc Pionchon <luc.pionchon@nokia.com>
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.
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.
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
24 #ifndef __HILDON_VOLUMEBAR_H__
25 #define __HILDON_VOLUMEBAR_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>
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;
50 struct _HildonVolumebar {
54 struct _HildonVolumebarClass {
55 GtkContainerClass parent_class;
58 void (*mute_toggled) (HildonVolumebar * self);
59 void (*level_changed) (HildonVolumebar * self);
62 GType hildon_volumebar_get_type(void);
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);