-rw-r--r-- | src/model/data/base.h | 9 | ||||
-rw-r--r-- | src/model/data/coordinates.h | 11 | ||||
-rw-r--r-- | src/model/state/pan_info.h | 24 | ||||
-rw-r--r-- | src/model/state/pan_info_init.c | 13 | ||||
-rw-r--r-- | src/model/state/selection_info.h | 37 | ||||
-rw-r--r-- | src/model/state/selection_info_init.c | 14 | ||||
-rw-r--r-- | src/model/state/selection_info_init.h | 8 | ||||
-rw-r--r-- | src/model/state/selection_purposes.h | 17 |
8 files changed, 133 insertions, 0 deletions
diff --git a/src/model/state/selection_info.h b/src/model/state/selection_info.h new file mode 100644 index 0000000..73a1c34 --- a/dev/null +++ b/src/model/state/selection_info.h | |||
@@ -0,0 +1,37 @@ | |||
1 | #ifndef SELECTION_INFO_H | ||
2 | #define SELECTION_INFO_H | ||
3 | |||
4 | #include "selection_purposes.h" | ||
5 | #include <stdbool.h> | ||
6 | |||
7 | typedef struct | ||
8 | { | ||
9 | |||
10 | /* | ||
11 | * Selection list. | ||
12 | */ | ||
13 | bool *set; | ||
14 | |||
15 | /* | ||
16 | * A selection is being performed. | ||
17 | */ | ||
18 | bool active; | ||
19 | |||
20 | /* | ||
21 | * Indicate if the user is currently defining a selection. | ||
22 | */ | ||
23 | SELECTION_PURPOSES purpose; | ||
24 | |||
25 | /* | ||
26 | * X coordinate of mouse when selection mode initiated. | ||
27 | */ | ||
28 | int x; | ||
29 | |||
30 | /* | ||
31 | * Y coordinate of mouse when selection mode initiated. | ||
32 | */ | ||
33 | int y; | ||
34 | |||
35 | } SELECTION_INFO; | ||
36 | |||
37 | #endif // SELECTION_INFO_H | ||