23#ifndef _USE_MATH_DEFINES
24#define _USE_MATH_DEFINES
26#ifndef __CALF_CTL_PHASEGRAPH
27#define __CALF_CTL_PHASEGRAPH
29#include <cairo/cairo.h>
39#define CALF_TYPE_PHASE_GRAPH (calf_phase_graph_get_type())
40#define CALF_PHASE_GRAPH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CALF_TYPE_PHASE_GRAPH, CalfPhaseGraph))
41#define CALF_IS_PHASE_GRAPH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CALF_TYPE_PHASE_GRAPH))
42#define CALF_PHASE_GRAPH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CALF_TYPE_PHASE_GRAPH, CalfPhaseGraphClass))
43#define CALF_IS_PHASE_GRAPH_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((klass), CALF_TYPE_PHASE_GRAPH))
44#define CALF_PHASE_GRAPH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CALF_TYPE_PHASE_GRAPH, CalfPhaseGraphClass))
52 inline float _atan(
float x,
float l,
float r) {
55 else if(
l >= 0 and
r < 0)
56 return M_PI + atan(
x);
57 else if(
l < 0 and
r < 0)
58 return M_PI + atan(
x);
60 return (2.f *
M_PI) + atan(
x);
#define M_PI
Definition compat.h:149
GtkWidget * calf_phase_graph_new()
Definition ctl_phasegraph.cpp:315
GType calf_phase_graph_get_type()
Definition ctl_phasegraph.cpp:321
int * l
Definition inflate.c:1579
unsigned x[BMAX+1]
Definition inflate.c:1586
Definition ctl_phasegraph.h:66
GtkDrawingAreaClass parent_class
Definition ctl_phasegraph.h:67
Definition ctl_phasegraph.h:47
const calf_plugins::phase_graph_iface * source
Definition ctl_phasegraph.h:49
cairo_surface_t * background
Definition ctl_phasegraph.h:51
GtkDrawingArea parent
Definition ctl_phasegraph.h:48
cairo_surface_t * cache
Definition ctl_phasegraph.h:51
float _atan(float x, float l, float r)
Definition ctl_phasegraph.h:52
int source_id
Definition ctl_phasegraph.h:50
'provides live line graph values' interface
Definition giface.h:251
int r
Definition crypt.c:458