diff options
author | Thomas White <taw@physics.org> | 2020-02-28 17:18:07 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:42:24 +0200 |
commit | b125f044e10d4834b460abda857a93388788bc8e (patch) | |
tree | 88dfdd311df5554ad8b4345ff4fcb78afdb4130e /src/crystfelimageview.h | |
parent | 2524e53def770933bc684b3e3762a02603273496 (diff) |
Panel drawing
Diffstat (limited to 'src/crystfelimageview.h')
-rw-r--r-- | src/crystfelimageview.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/crystfelimageview.h b/src/crystfelimageview.h index 829909df..8d3b23aa 100644 --- a/src/crystfelimageview.h +++ b/src/crystfelimageview.h @@ -33,6 +33,8 @@ #include <config.h> #endif +#include <gdk-pixbuf/gdk-pixbuf.h> + #include <image.h> #include <datatemplate.h> @@ -60,21 +62,28 @@ struct _crystfelimageview /*< private >*/ GtkIMContext *im_context; - int w; /* Surface size in pixels */ - int h; + /* Detector size in metres */ + double detector_w; + double detector_h; /* Redraw/scroll stuff */ GtkScrollablePolicy hpol; GtkScrollablePolicy vpol; GtkAdjustment *hadj; GtkAdjustment *vadj; - double x_scroll_pos; - double y_scroll_pos; + double visible_width; + double visible_height; + double zoom; + double drag_start_x; + double drag_start_y; + double drag_start_sp_x; + double drag_start_sp_y; DataTemplate *dtempl; char *filename; char *event; struct image *image; + GdkPixbuf **pixbufs; }; struct _crystfelimageviewclass |