summaryrefslogtreecommitdiffstats
Side-by-side diff
-rw-r--r--src/model/selection_info.h41
-rw-r--r--src/model/selection_info_init.c12
-rw-r--r--src/model/selection_info_init.h8
-rw-r--r--src/model/selection_purposes.h17
-rw-r--r--src/model/zoom_info.h21
-rw-r--r--src/model/zoom_info_init.c9
-rw-r--r--src/model/zoom_info_init.h8
7 files changed, 116 insertions, 0 deletions
diff --git a/src/model/zoom_info.h b/src/model/zoom_info.h
new file mode 100644
index 0000000..0b935c8
--- a/dev/null
+++ b/src/model/zoom_info.h
@@ -0,0 +1,21 @@
+#ifndef ZOOM_INFO_H
+#define ZOOM_INFO_H
+
+#include <stdbool.h>
+
+/*
+ * Maintain information for zooming.
+ */
+typedef struct {
+ /*
+ * A zoomed region has been selection.
+ */
+ bool active;
+
+ /*
+ * Left, right, bottom and top of zoom region in world coordinates.
+ */
+ double coords[4];
+} ZOOM_INFO;
+
+#endif // ZOOM_INFO_H

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.