summaryrefslogtreecommitdiff
path: root/meme/gui.h
blob: 2c065589a69477e24077da8a7196dc122c2830f1 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
 * gui.c - User interface
 *
 * Written 2014-2016 by Werner Almesberger
 * Copyright 2014-2016 by Werner Almesberger
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */

#ifndef GUI_H
#define	GUI_H

#include <stdbool.h>

#include "overlay.h"
#include "marker.h"


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 */