-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 @@ +#ifndef SELECTION_INFO_H +#define SELECTION_INFO_H + +#include "selection_purposes.h" +#include <stdbool.h> + +typedef struct +{ + + /* + * Selection list. + */ + bool *set; + + /* + * 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 |