aboutsummaryrefslogtreecommitdiff
path: root/src/crystfelimageview.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-02-21 17:05:56 +0100
committerThomas White <taw@physics.org>2020-07-29 18:39:50 +0200
commitca3b3162f037506ae224e0f8bb7c6f669a43d1b1 (patch)
treef34a9c5e9d80541c396ff2ae224989e8e0b5eef5 /src/crystfelimageview.h
parente7d338d5e697526df8843f45c8044533212bbb38 (diff)
GUI image loading stuff
Diffstat (limited to 'src/crystfelimageview.h')
-rw-r--r--src/crystfelimageview.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/crystfelimageview.h b/src/crystfelimageview.h
index 9dd69d0d..829909df 100644
--- a/src/crystfelimageview.h
+++ b/src/crystfelimageview.h
@@ -33,6 +33,9 @@
#include <config.h>
#endif
+#include <image.h>
+#include <datatemplate.h>
+
#define CRYSTFEL_TYPE_IMAGE_VIEW (crystfel_image_view_get_type())
#define CRYSTFEL_IMAGE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
@@ -67,6 +70,11 @@ struct _crystfelimageview
GtkAdjustment *vadj;
double x_scroll_pos;
double y_scroll_pos;
+
+ DataTemplate *dtempl;
+ char *filename;
+ char *event;
+ struct image *image;
};
struct _crystfelimageviewclass
@@ -80,5 +88,11 @@ typedef struct _crystfelimageviewclass CrystFELImageViewClass;
extern GType crystfel_image_view_get_type(void);
extern GtkWidget *crystfel_image_view_new(void);
+extern int crystfel_image_view_set_datatemplate(CrystFELImageView *iv,
+ DataTemplate *dtempl);
+
+extern int crystfel_image_view_set_image(CrystFELImageView *iv,
+ const char *filename,
+ const char *event);
#endif /* CRYSTFELIMAGEVIEW_H */