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/selection_info.h b/src/model/selection_info.h
new file mode 100644
index 0000000..970ecec
--- a/dev/null
+++ b/src/model/selection_info.h
@@ -0,0 +1,41 @@
+#ifndef SELECTION_INFO_H
+#define SELECTION_INFO_H
+
+#include "selection_purposes.h"
+#include <stdbool.h>
+
+/*
+ * Vertices in the graph.
+ */
+#define ROWS 83905
+
+typedef struct {
+
+ /*
+ * Selection list.
+ */
+ bool set[ROWS];
+
+ /*
+ * A selection is being performed.
+ */
+ bool active;
+
+ /*
+ * Indicate if the user is currently defining a selection.
+ */
+ SELECTION_PURPOSES purpose;
+
+ /*
+ * X coordinate of mouse when selection mode initiated.
+ */
+ int x;
+
+ /*
+ * Y coordinate of mouse when selection mode initiated.
+ */
+ int y;
+
+} SELECTION_INFO;
+
+#endif // SELECTION_INFO_H

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.