~xapantu/+junk/switchboard-gcc

« back to all changes in this revision

Viewing changes to plug-sound/gvc-channel-bar.h

  • Committer: xapantu
  • Date: 2011-12-10 14:22:09 UTC
  • Revision ID: xapantu@gmail.com-20111210142209-d74qm02stxnc3wl8
Add sound plug

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
 
2
 *
 
3
 * Copyright (C) 2008 Red Hat, Inc.
 
4
 *
 
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.
 
9
 *
 
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.
 
14
 *
 
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.
 
18
 *
 
19
 */
 
20
 
 
21
#ifndef __GVC_CHANNEL_BAR_H
 
22
#define __GVC_CHANNEL_BAR_H
 
23
 
 
24
#include <glib-object.h>
 
25
 
 
26
G_BEGIN_DECLS
 
27
 
 
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))
 
34
 
 
35
typedef struct GvcChannelBarPrivate GvcChannelBarPrivate;
 
36
 
 
37
typedef struct
 
38
{
 
39
        GtkHBox               parent;
 
40
        GvcChannelBarPrivate *priv;
 
41
} GvcChannelBar;
 
42
 
 
43
typedef struct
 
44
{
 
45
        GtkHBoxClass          parent_class;
 
46
} GvcChannelBarClass;
 
47
 
 
48
GType               gvc_channel_bar_get_type            (void);
 
49
 
 
50
GtkWidget *         gvc_channel_bar_new                 (void);
 
51
 
 
52
void                gvc_channel_bar_set_name            (GvcChannelBar *bar,
 
53
                                                         const char    *name);
 
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);
 
60
 
 
61
void                gvc_channel_bar_set_orientation     (GvcChannelBar *bar,
 
62
                                                         GtkOrientation orientation);
 
63
GtkOrientation      gvc_channel_bar_get_orientation     (GvcChannelBar *bar);
 
64
 
 
65
GtkAdjustment *     gvc_channel_bar_get_adjustment      (GvcChannelBar *bar);
 
66
 
 
67
gboolean            gvc_channel_bar_get_is_muted        (GvcChannelBar *bar);
 
68
void                gvc_channel_bar_set_is_muted        (GvcChannelBar *bar,
 
69
                                                         gboolean       is_muted);
 
70
gboolean            gvc_channel_bar_get_show_mute       (GvcChannelBar *bar);
 
71
void                gvc_channel_bar_set_show_mute       (GvcChannelBar *bar,
 
72
                                                         gboolean       show_mute);
 
73
void                gvc_channel_bar_set_size_group      (GvcChannelBar *bar,
 
74
                                                         GtkSizeGroup  *group,
 
75
                                                         gboolean       symmetric);
 
76
void                gvc_channel_bar_set_is_amplified    (GvcChannelBar *bar,
 
77
                                                         gboolean amplified);
 
78
void                gvc_channel_bar_set_base_volume     (GvcChannelBar *bar,
 
79
                                                         guint32        base_volume);
 
80
gboolean            gvc_channel_bar_get_ellipsize       (GvcChannelBar *bar);
 
81
void                gvc_channel_bar_set_ellipsize       (GvcChannelBar *bar,
 
82
                                                         gboolean       ellipsized);
 
83
 
 
84
gboolean            gvc_channel_bar_scroll              (GvcChannelBar *bar,
 
85
                                                         GdkScrollDirection direction);
 
86
 
 
87
G_END_DECLS
 
88
 
 
89
#endif /* __GVC_CHANNEL_BAR_H */