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_BALANCE_BAR_H
22
#define __GVC_BALANCE_BAR_H
24
#include <glib-object.h>
26
#include "gvc-channel-map.h"
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))
43
#define NUM_BALANCE_TYPES BALANCE_TYPE_LFE + 1
45
typedef struct GvcBalanceBarPrivate GvcBalanceBarPrivate;
50
GvcBalanceBarPrivate *priv;
55
GtkHBoxClass parent_class;
58
GType gvc_balance_bar_get_type (void);
60
GtkWidget * gvc_balance_bar_new (const GvcChannelMap *map,
61
GvcBalanceType btype);
63
void gvc_balance_bar_set_size_group (GvcBalanceBar *bar,
69
#endif /* __GVC_BALANCE_BAR_H */