-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/pan_info.h b/src/model/state/pan_info.h new file mode 100644 index 0000000..9813ac9 --- a/dev/null +++ b/src/model/state/pan_info.h | |||
@@ -0,0 +1,24 @@ | |||
1 | #ifndef PAN_INFO_H | ||
2 | #define PAN_INFO_H | ||
3 | |||
4 | #include <stdbool.h> | ||
5 | |||
6 | typedef struct | ||
7 | { | ||
8 | /* | ||
9 | * A panning operation has begun. | ||
10 | */ | ||
11 | bool active; | ||
12 | |||
13 | /* | ||
14 | * Coordinates of mouse when the pan operation is begun. | ||
15 | */ | ||
16 | int begin[2]; | ||
17 | |||
18 | /* | ||
19 | * Translation | ||
20 | */ | ||
21 | float trans[2]; | ||
22 | } PAN_INFO; | ||
23 | |||
24 | #endif // PAN_INFO_H | ||