1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
3
* Copyright (C) 2008 Red Hat, Inc.
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21
#ifndef __GVC_CHANNEL_BAR_H
22
#define __GVC_CHANNEL_BAR_H
24
#include <glib-object.h>
28
#define GVC_TYPE_CHANNEL_BAR (gvc_channel_bar_get_type ())
29
#define GVC_CHANNEL_BAR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GVC_TYPE_CHANNEL_BAR, GvcChannelBar))
30
#define GVC_CHANNEL_BAR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GVC_TYPE_CHANNEL_BAR, GvcChannelBarClass))
31
#define GVC_IS_CHANNEL_BAR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GVC_TYPE_CHANNEL_BAR))
32
#define GVC_IS_CHANNEL_BAR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GVC_TYPE_CHANNEL_BAR))
33
#define GVC_CHANNEL_BAR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GVC_TYPE_CHANNEL_BAR, GvcChannelBarClass))
35
typedef struct GvcChannelBarPrivate GvcChannelBarPrivate;
40
GvcChannelBarPrivate *priv;
45
GtkHBoxClass parent_class;
48
GType gvc_channel_bar_get_type (void);
50
GtkWidget * gvc_channel_bar_new (void);
52
void gvc_channel_bar_set_name (GvcChannelBar *bar,
54
void gvc_channel_bar_set_icon_name (GvcChannelBar *bar,
55
const char *icon_name);
56
void gvc_channel_bar_set_low_icon_name (GvcChannelBar *bar,
57
const char *icon_name);
58
void gvc_channel_bar_set_high_icon_name (GvcChannelBar *bar,
59
const char *icon_name);
61
void gvc_channel_bar_set_orientation (GvcChannelBar *bar,
62
GtkOrientation orientation);
63
GtkOrientation gvc_channel_bar_get_orientation (GvcChannelBar *bar);
65
GtkAdjustment * gvc_channel_bar_get_adjustment (GvcChannelBar *bar);
67
gboolean gvc_channel_bar_get_is_muted (GvcChannelBar *bar);
68
void gvc_channel_bar_set_is_muted (GvcChannelBar *bar,
70
gboolean gvc_channel_bar_get_show_mute (GvcChannelBar *bar);
71
void gvc_channel_bar_set_show_mute (GvcChannelBar *bar,
73
void gvc_channel_bar_set_size_group (GvcChannelBar *bar,
76
void gvc_channel_bar_set_is_amplified (GvcChannelBar *bar,
78
void gvc_channel_bar_set_base_volume (GvcChannelBar *bar,
80
gboolean gvc_channel_bar_get_ellipsize (GvcChannelBar *bar);
81
void gvc_channel_bar_set_ellipsize (GvcChannelBar *bar,
84
gboolean gvc_channel_bar_scroll (GvcChannelBar *bar,
85
GdkScrollDirection direction);
89
#endif /* __GVC_CHANNEL_BAR_H */