LMMS
Loading...
Searching...
No Matches
ctl_tuner.h
Go to the documentation of this file.
1/* Calf DSP Library
2 * A tuner 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_TUNER
27#define __CALF_CTL_TUNER
28
29#include <cairo/cairo.h>
30#include <gtk/gtk.h>
31#include <calf/giface.h>
32#include <calf/drawingutils.h>
33#include <calf/gui.h>
34
35G_BEGIN_DECLS
36
37
39
40
41#define CALF_TYPE_TUNER (calf_tuner_get_type())
42#define CALF_TUNER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CALF_TYPE_TUNER, CalfTuner))
43#define CALF_IS_TUNER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CALF_TYPE_TUNER))
44#define CALF_TUNER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CALF_TYPE_TUNER, CalfTunerClass))
45#define CALF_IS_TUNER_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((klass), CALF_TYPE_TUNER))
46#define CALF_TUNER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CALF_TYPE_TUNER, CalfTunerClass))
47
49{
50 GtkDrawingArea parent;
51 int note;
52 float cents;
53 cairo_surface_t *background;
54};
55
57{
58 GtkDrawingAreaClass parent_class;
59};
60
61extern GtkWidget *calf_tuner_new();
62
63extern GType calf_tuner_get_type();
64
65G_END_DECLS
66
67#endif
GType calf_tuner_get_type()
Definition ctl_tuner.cpp:258
GtkWidget * calf_tuner_new()
Definition ctl_tuner.cpp:252
Definition ctl_tuner.h:57
GtkDrawingAreaClass parent_class
Definition ctl_tuner.h:58
Definition ctl_tuner.h:49
GtkDrawingArea parent
Definition ctl_tuner.h:50
float cents
Definition ctl_tuner.h:52
cairo_surface_t * background
Definition ctl_tuner.h:53
int note
Definition ctl_tuner.h:51