aboutsummaryrefslogtreecommitdiff
path: root/src/dpsynth.h
blob: b10d9784971f335161895f8dbcfef87f188f68a4 (plain)
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
/*
 * dpsynth.h
 *
 * Draw synthetic diffracion patterns
 *
 * (c) 2006 Thomas White <taw27@cam.ac.uk>
 *  Synth2d - two-dimensional Fourier synthesis
 *
 */

#ifdef HAVE_CONFIG_H
#include <config.h>
#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 */