-rw-r--r-- | src/model/selection_info.h | 41 | ||||
-rw-r--r-- | src/model/selection_info_init.c | 12 | ||||
-rw-r--r-- | src/model/selection_info_init.h | 8 | ||||
-rw-r--r-- | src/model/selection_purposes.h | 17 | ||||
-rw-r--r-- | src/model/zoom_info.h | 21 | ||||
-rw-r--r-- | src/model/zoom_info_init.c | 9 | ||||
-rw-r--r-- | src/model/zoom_info_init.h | 8 |
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 @@ | |||
1 | #ifndef SELECTION_INFO_H | ||
2 | #define SELECTION_INFO_H | ||
3 | |||
4 | #include "selection_purposes.h" | ||
5 | #include <stdbool.h> | ||
6 | |||
7 | /* | ||
8 | * Vertices in the graph. | ||
9 | */ | ||
10 | #define ROWS 83905 | ||
11 | |||
12 | typedef struct { | ||
13 | |||
14 | /* | ||
15 | * Selection list. | ||
16 | */ | ||
17 | bool set[ROWS]; | ||
18 | |||
19 | /* | ||
20 | * A selection is being performed. | ||
21 | */ | ||
22 | bool active; | ||
23 | |||
24 | /* | ||
25 | * Indicate if the user is currently defining a selection. | ||
26 | */ | ||
27 | SELECTION_PURPOSES purpose; | ||
28 | |||
29 | /* | ||
30 | * X coordinate of mouse when selection mode initiated. | ||
31 | */ | ||
32 | int x; | ||
33 | |||
34 | /* | ||
35 | * Y coordinate of mouse when selection mode initiated. | ||
36 | */ | ||
37 | int y; | ||
38 | |||
39 | } SELECTION_INFO; | ||
40 | |||
41 | #endif // SELECTION_INFO_H | ||