LMMS
Loading...
Searching...
No Matches
ctl_tube.h
Go to the documentation of this file.
1/* Calf DSP Library
2 * A tube widget for overdrive-type plugins (saturator etc).
3 *
4 * Copyright (C) 2010-2012 Markus Schmidt and others
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General
17 * Public License along with this program; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02111-1307, USA.
20 */
21
22#ifndef CALF_CTL_TUBE_H
23#define CALF_CTL_TUBE_H
24
25#include <gtk/gtk.h>
26
27G_BEGIN_DECLS
28
29#define CALF_TYPE_TUBE (calf_tube_get_type())
30#define CALF_TUBE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CALF_TYPE_TUBE, CalfTube))
31#define CALF_IS_TUBE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CALF_TYPE_TUBE))
32#define CALF_TUBE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CALF_TYPE_TUBE, CalfTubeClass))
33#define CALF_IS_TUBE_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((klass), CALF_TYPE_TUBE))
34#define CALF_TUBE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CALF_TYPE_TUBE, CalfTubeClass))
35
37{
38 GtkDrawingArea parent;
39 int size;
41 float value;
44 bool falling;
47 cairo_surface_t *cache_surface;
48};
49
51{
52 GtkDrawingAreaClass parent_class;
53};
54
55extern GtkWidget *calf_tube_new();
56extern GType calf_tube_get_type();
57extern void calf_tube_set_value(CalfTube *tube, float value);
58
59G_END_DECLS
60
61#endif
GtkWidget * calf_tube_new()
Definition ctl_tube.cpp:287
GType calf_tube_get_type()
Definition ctl_tube.cpp:303
void calf_tube_set_value(CalfTube *tube, float value)
Definition ctl_tube.cpp:293
static PuglViewHint int value
Definition pugl.h:1708
Definition ctl_tube.h:51
GtkDrawingAreaClass parent_class
Definition ctl_tube.h:52
Definition ctl_tube.h:37
GtkDrawingArea parent
Definition ctl_tube.h:38
long last_falltime
Definition ctl_tube.h:46
cairo_surface_t * cache_surface
Definition ctl_tube.h:47
int direction
Definition ctl_tube.h:40
float value
Definition ctl_tube.h:41
float tube_falloff
Definition ctl_tube.h:43
float last_falloff
Definition ctl_tube.h:45
bool falling
Definition ctl_tube.h:44
float last_value
Definition ctl_tube.h:42
int size
Definition ctl_tube.h:39