summaryrefslogtreecommitdiff
path: root/meme/gui.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-02-15 21:13:47 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-02-15 21:13:47 (GMT)
commit64bd53f6a5413810dd8e36237cf5aaf9feee0be4 (patch)
tree3ec42f6762e9680c57c432314ab1467d09f73659 /meme/gui.h
parentff87a9e52408776b5f7fc32889b85d74e09857a7 (diff)
downloadmisc-64bd53f6a5413810dd8e36237cf5aaf9feee0be4.zip
misc-64bd53f6a5413810dd8e36237cf5aaf9feee0be4.tar.gz
misc-64bd53f6a5413810dd8e36237cf5aaf9feee0be4.tar.bz2
meme/: non-interactive screen dumps with -D ...
Diffstat (limited to 'meme/gui.h')
-rw-r--r--meme/gui.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/meme/gui.h b/meme/gui.h
index 80e72cd..2c06558 100644
--- a/meme/gui.h
+++ b/meme/gui.h
@@ -13,6 +13,8 @@
#ifndef GUI_H
#define GUI_H
+#include <stdbool.h>
+
#include "overlay.h"
#include "marker.h"
@@ -20,6 +22,29 @@
extern struct marker marker;
+struct dump_params {
+ int xres, yres;
+
+ bool middle;
+ float mx, my;
+
+ bool zoom_abs; /* "zoom" contains a zoom value */
+ bool zoom_rel; /* add "zoom" to auto-zoom result */
+ int zoom;
+
+ bool cursor;
+ float cx, cy;
+
+ bool enhance;
+ float enh_z;
+ int enh_scale;
+
+ bool profile;
+};
+
+
+void gui_dump(struct overlay overlays[], unsigned n_overlays,
+ const struct dump_params *prm);
void gui(const char *logfile, struct overlay overlays[], unsigned n_overlays);
#endif /* !GUI_H */