~elementary-os/elementaryos/os-patch-gnome-control-center-precise

« back to all changes in this revision

Viewing changes to panels/sound-nua/gvc-balance-bar.h

  • Committer: Sergey "Shnatsel" Davidoff
  • Date: 2012-05-18 13:02:50 UTC
  • Revision ID: shnatsel@gmail.com-20120518130250-2u99ldq61a42rbt7
Initial import, version 1:3.4.1-0ubuntu2

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_BALANCE_BAR_H
 
22
#define __GVC_BALANCE_BAR_H
 
23
 
 
24
#include <glib-object.h>
 
25
 
 
26
#include "gvc-channel-map.h"
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
#define GVC_TYPE_BALANCE_BAR         (gvc_balance_bar_get_type ())
 
31
#define GVC_BALANCE_BAR(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GVC_TYPE_BALANCE_BAR, GvcBalanceBar))
 
32
#define GVC_BALANCE_BAR_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), GVC_TYPE_BALANCE_BAR, GvcBalanceBarClass))
 
33
#define GVC_IS_BALANCE_BAR(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GVC_TYPE_BALANCE_BAR))
 
34
#define GVC_IS_BALANCE_BAR_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), GVC_TYPE_BALANCE_BAR))
 
35
#define GVC_BALANCE_BAR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GVC_TYPE_BALANCE_BAR, GvcBalanceBarClass))
 
36
 
 
37
typedef enum {
 
38
        BALANCE_TYPE_RL,
 
39
        BALANCE_TYPE_FR,
 
40
        BALANCE_TYPE_LFE,
 
41
} GvcBalanceType;
 
42
 
 
43
#define NUM_BALANCE_TYPES BALANCE_TYPE_LFE + 1
 
44
 
 
45
typedef struct GvcBalanceBarPrivate GvcBalanceBarPrivate;
 
46
 
 
47
typedef struct
 
48
{
 
49
        GtkHBox               parent;
 
50
        GvcBalanceBarPrivate *priv;
 
51
} GvcBalanceBar;
 
52
 
 
53
typedef struct
 
54
{
 
55
        GtkHBoxClass          parent_class;
 
56
} GvcBalanceBarClass;
 
57
 
 
58
GType               gvc_balance_bar_get_type            (void);
 
59
GtkWidget *         gvc_balance_bar_new                 (GvcBalanceType btype);
 
60
 
 
61
void                gvc_balance_bar_set_size_group      (GvcBalanceBar *bar,
 
62
                                                         GtkSizeGroup  *group,
 
63
                                                         gboolean       symmetric);
 
64
 
 
65
void                gvc_balance_bar_set_map (GvcBalanceBar *self,
 
66
                                             const GvcChannelMap *channel_map);
 
67
 
 
68
G_END_DECLS
 
69
 
 
70
#endif /* __GVC_BALANCE_BAR_H */