forked from analogdevicesinc/iio-oscilloscope
-
Notifications
You must be signed in to change notification settings - Fork 1
/
oscplot.h
49 lines (37 loc) · 1.2 KB
/
oscplot.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* Copyright (C) 2012-2013 Analog Devices, Inc.
*
* Licensed under the GPL-2.
*
**/
#ifndef __OSC_PLOT__
#define __OSC_PLOT__
#include <glib.h>
#include <glib-object.h>
#include <gtk/gtkwindow.h>
G_BEGIN_DECLS
#define OSC_PLOT_TYPE (osc_plot_get_type())
#define OSC_PLOT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), OSC_PLOT_TYPE, OscPlot))
#define OSC_PLOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), OSC_PLOT_TYPE, OscPlotClass))
#define IS_OSC_PLOT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), OSC_PLOT_TYPE))
#define IS_OSC_PLOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), OSC_PLOT_TYPE))
typedef struct _OscPlot OscPlot;
typedef struct _OscPlotPrivate OscPlotPrivate;
typedef struct _OscPlotClass OscPlotClass;
struct _OscPlot
{
GtkBin bin;
OscPlotPrivate *priv;
gfloat *x_axis_source;
};
struct _OscPlotClass
{
GtkBinClass parent_class;
void (* capture_event) (OscPlot *plot, gboolean start_event);
};
GType osc_plot_get_type (void);
GtkWidget* osc_plot_new (void);
void osc_plot_data_update (OscPlot *plot);
void osc_plot_restart (OscPlot *plot);
G_END_DECLS
#endif /* __OSC_PLOT__ */