27 files changed, 179 insertions, 549 deletions
diff --git a/src/model/state/zoom_info.h b/src/model/state/zoom_info.h new file mode 100644 index 0000000..5916b3c --- a/dev/null +++ b/src/model/state/zoom_info.h | |||
@@ -0,0 +1,22 @@ | |||
1 | #ifndef ZOOM_INFO_H | ||
2 | #define ZOOM_INFO_H | ||
3 | |||
4 | #include <stdbool.h> | ||
5 | |||
6 | /* | ||
7 | * Maintain information for zooming. | ||
8 | */ | ||
9 | typedef struct | ||
10 | { | ||
11 | /* | ||
12 | * A zoomed region has been selection. | ||
13 | */ | ||
14 | bool active; | ||
15 | |||
16 | /* | ||
17 | * Left, right, bottom and top of zoom region in world coordinates. | ||
18 | */ | ||
19 | double coords[4]; | ||
20 | } ZOOM_INFO; | ||
21 | |||
22 | #endif // ZOOM_INFO_H | ||