-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/zoom_info.h b/src/model/zoom_info.h new file mode 100644 index 0000000..0b935c8 --- a/dev/null +++ b/src/model/zoom_info.h @@ -0,0 +1,21 @@ +#ifndef ZOOM_INFO_H +#define ZOOM_INFO_H + +#include <stdbool.h> + +/* + * Maintain information for zooming. + */ +typedef struct { + /* + * A zoomed region has been selection. + */ + bool active; + + /* + * Left, right, bottom and top of zoom region in world coordinates. + */ + double coords[4]; +} ZOOM_INFO; + +#endif // ZOOM_INFO_H |