1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
3
* Copyright (C) 2008 William Jon McCann <william.jon.mccann@gmail.com>
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_LEVEL_BAR_H
22
#define __GVC_LEVEL_BAR_H
24
#include <glib-object.h>
29
#define GVC_TYPE_LEVEL_BAR (gvc_level_bar_get_type ())
30
#define GVC_LEVEL_BAR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GVC_TYPE_LEVEL_BAR, GvcLevelBar))
31
#define GVC_LEVEL_BAR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GVC_TYPE_LEVEL_BAR, GvcLevelBarClass))
32
#define GVC_IS_LEVEL_BAR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GVC_TYPE_LEVEL_BAR))
33
#define GVC_IS_LEVEL_BAR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GVC_TYPE_LEVEL_BAR))
34
#define GVC_LEVEL_BAR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GVC_TYPE_LEVEL_BAR, GvcLevelBarClass))
36
typedef struct GvcLevelBarPrivate GvcLevelBarPrivate;
41
GvcLevelBarPrivate *priv;
46
GtkWidgetClass parent_class;
51
GVC_LEVEL_SCALE_LINEAR,
56
GType gvc_level_bar_get_type (void);
58
GtkWidget * gvc_level_bar_new (void);
59
void gvc_level_bar_set_orientation (GvcLevelBar *bar,
60
GtkOrientation orientation);
61
GtkOrientation gvc_level_bar_get_orientation (GvcLevelBar *bar);
63
void gvc_level_bar_set_peak_adjustment (GvcLevelBar *bar,
64
GtkAdjustment *adjustment);
65
GtkAdjustment * gvc_level_bar_get_peak_adjustment (GvcLevelBar *bar);
66
void gvc_level_bar_set_rms_adjustment (GvcLevelBar *bar,
67
GtkAdjustment *adjustment);
68
GtkAdjustment * gvc_level_bar_get_rms_adjustment (GvcLevelBar *bar);
69
void gvc_level_bar_set_scale (GvcLevelBar *bar,
75
#endif /* __GVC_LEVEL_BAR_H */