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__
27 #include <gtk/gtkcontainer.h>
28 #include <gtk/gtkadjustment.h>
32 #define HILDON_TYPE_VOLUMEBAR ( hildon_volumebar_get_type() )
33 #define HILDON_VOLUMEBAR(obj) (GTK_CHECK_CAST (obj,\
34 HILDON_TYPE_VOLUMEBAR, HildonVolumebar))
35 #define HILDON_VOLUMEBAR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass),\
36 HILDON_TYPE_VOLUMEBAR, HildonVolumebarClass))
37 #define HILDON_IS_VOLUMEBAR(obj) (GTK_CHECK_TYPE (obj,\
38 HILDON_TYPE_VOLUMEBAR))
39 #define HILDON_IS_VOLUMEBAR_CLASS(klass) \
40 (GTK_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_VOLUMEBAR))
42 typedef struct _HildonVolumebar HildonVolumebar;
43 typedef struct _HildonVolumebarClass HildonVolumebarClass;
45 struct _HildonVolumebar {
49 struct _HildonVolumebarClass {
50 GtkContainerClass parent_class;
53 void (*mute_toggled) (HildonVolumebar * self);
54 void (*level_changed) (HildonVolumebar * self);
58 GType hildon_volumebar_get_type (void) G_GNUC_CONST;
60 double hildon_volumebar_get_level (HildonVolumebar *self);
61 void hildon_volumebar_set_level (HildonVolumebar *self,
64 gboolean hildon_volumebar_get_mute (HildonVolumebar *self);
65 void hildon_volumebar_set_mute (HildonVolumebar *self,
68 void hildon_volumebar_level_change (HildonVolumebar *self);
70 GtkAdjustment * hildon_volumebar_get_adjustment (HildonVolumebar *self);
74 #endif /* __HILDON_VOLUMEBAR_H__ */