From 189da15810deabd739d7c11c6e95fea55739fe60 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 1 Aug 2020 15:13:49 +0200 Subject: Initial import from archive --- src/dpsynth.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/dpsynth.h (limited to 'src/dpsynth.h') diff --git a/src/dpsynth.h b/src/dpsynth.h new file mode 100644 index 0000000..b10d978 --- /dev/null +++ b/src/dpsynth.h @@ -0,0 +1,37 @@ +/* + * dpsynth.h + * + * Draw synthetic diffracion patterns + * + * (c) 2006 Thomas White + * Synth2d - two-dimensional Fourier synthesis + * + */ + +#ifdef HAVE_CONFIG_H +#include +#endif + +#ifndef DPSYNTH_H +#define DPSYNTH_H + +typedef struct { + GtkWidget *image_widget; + GdkPixbuf *pixbuf; + GtkWidget *window; + unsigned int width; + unsigned int height; + unsigned int colour; + +} DPSynthWindow; + +extern void dpsynth_main_update(ReflectionList *reflections); +extern void dpsynth_main_open(ReflectionList *reflections); +extern DPSynthWindow *dpsynth_open(ReflectionList *reflections, const char *title, int colour); +extern void dpsynth_update(DPSynthWindow *dpsynth, ReflectionList *reflections); + +extern void dpsynth_simdp_open(ReflectionList *reflections); +extern void dpsynth_simdp_update(ReflectionList *reflections); + +#endif /* DPSYNTH_H */ + -- cgit v1.2.3