2 * This file is a part of hildon
4 * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
6 * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@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; 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
25 #ifndef __HILDON_VOLUMEBAR_H__
26 #define __HILDON_VOLUMEBAR_H__
28 #include <gtk/gtkcontainer.h>
29 #include <gtk/gtkadjustment.h>
30 #include "hildon-helper.h"
34 #define HILDON_TYPE_VOLUMEBAR \
35 (hildon_volumebar_get_type())
37 #define HILDON_VOLUMEBAR(obj) (GTK_CHECK_CAST (obj,\
38 HILDON_TYPE_VOLUMEBAR, HildonVolumebar))
40 #define HILDON_VOLUMEBAR_CLASS(klass) \
41 (GTK_CHECK_CLASS_CAST ((klass),\
42 HILDON_TYPE_VOLUMEBAR, HildonVolumebarClass))
44 #define HILDON_IS_VOLUMEBAR(obj) (GTK_CHECK_TYPE (obj,\
45 HILDON_TYPE_VOLUMEBAR))
47 #define HILDON_IS_VOLUMEBAR_CLASS(klass) \
48 (GTK_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_VOLUMEBAR))
50 #define HILDON_VOLUMEBAR_GET_CLASS(obj) \
51 ((HildonVolumebarClass *) G_OBJECT_GET_CLASS(obj))
53 typedef struct _HildonVolumebar HildonVolumebar;
55 typedef struct _HildonVolumebarClass HildonVolumebarClass;
57 struct _HildonVolumebar
62 struct _HildonVolumebarClass
64 GtkContainerClass parent_class;
67 void (*mute_toggled) (HildonVolumebar * self);
68 void (*level_changed) (HildonVolumebar * self);
72 hildon_volumebar_get_type (void);
75 hildon_volumebar_get_level (HildonVolumebar *self);
78 hildon_volumebar_set_level (HildonVolumebar *self,
82 hildon_volumebar_get_mute (HildonVolumebar *self);
85 hildon_volumebar_set_mute (HildonVolumebar *self,
89 hildon_volumebar_get_adjustment (HildonVolumebar *self);
92 hildon_volumebar_set_range_insensitive_message (HildonVolumebar *widget,
93 const gchar *message);
96 hildon_volumebar_set_range_insensitive_messagef (HildonVolumebar *widget,
102 #endif /* __HILDON_VOLUMEBAR_H__ */