LMMS
Loading...
Searching...
No Matches
ctl_meterscale.h
Go to the documentation of this file.
1/* Calf DSP Library
2 * A meter scale widget
3 *
4 * Copyright (C) 2008-2015 Krzysztof Foltman, Torben Hohn, Markus
5 * Schmidt and others
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General
18 * Public License along with this program; if not, write to the
19 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02111-1307, USA.
21 */
22
23#ifndef _USE_MATH_DEFINES
24#define _USE_MATH_DEFINES
25#endif
26#ifndef __CALF_CTL_METERSCALE
27#define __CALF_CTL_METERSCALE
28
29#include <cairo/cairo.h>
30#include <gtk/gtk.h>
31//#include <gtk/gtkrange.h>
32//#include <gtk/gtkscale.h>
33//#include <calf/giface.h>
34#include <calf/drawingutils.h>
35#include <calf/ctl_vumeter.h>
36#include <calf/gui.h>
37
38
39//#include <gtk/gtkrange.h>
40//#include "config.h"
41//#include <calf/giface.h>
42//#include <gdk/gdkkeysyms.h>
43//#include <sys/stat.h>
44//#include <math.h>
45//#include <gdk/gdk.h>
46//#include <gtk/gtk.h>
47//#include <sys/time.h>
48//#include <algorithm>
49//#include <iostream>
50//#include <calf/drawingutils.h>
51
52
53G_BEGIN_DECLS
54
55
57
58
59#define CALF_TYPE_METER_SCALE (calf_meter_scale_get_type())
60#define CALF_METER_SCALE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CALF_TYPE_METER_SCALE, CalfMeterScale))
61#define CALF_IS_METER_SCALE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CALF_TYPE_METER_SCALE))
62#define CALF_METER_SCALE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CALF_TYPE_METER_SCALE, CalfMeterScaleClass))
63#define CALF_IS_METER_SCALE_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((klass), CALF_TYPE_METER_SCALE))
64
66{
67 GtkDrawingArea parent;
68 std::vector<double> marker;
71 int dots;
72};
73
75{
76 GtkDrawingAreaClass parent_class;
77};
78
79extern GtkWidget *calf_meter_scale_new();
80extern GType calf_meter_scale_get_type();
81
82G_END_DECLS
83
84#endif
GType calf_meter_scale_get_type()
Definition ctl_meterscale.cpp:181
GtkWidget * calf_meter_scale_new()
Definition ctl_meterscale.cpp:32
CalfVUMeterMode
Definition ctl_vumeter.h:47
Definition ctl_meterscale.h:75
GtkDrawingAreaClass parent_class
Definition ctl_meterscale.h:76
Definition ctl_meterscale.h:66
std::vector< double > marker
Definition ctl_meterscale.h:68
GtkDrawingArea parent
Definition ctl_meterscale.h:67
int dots
Definition ctl_meterscale.h:71
CalfVUMeterMode mode
Definition ctl_meterscale.h:69
int position
Definition ctl_meterscale.h:70