summaryrefslogtreecommitdiffstats
Side-by-side diff
-rw-r--r--src/model/data/base.h9
-rw-r--r--src/model/data/coordinates.h11
-rw-r--r--src/model/state/pan_info.h24
-rw-r--r--src/model/state/pan_info_init.c13
-rw-r--r--src/model/state/selection_info.h37
-rw-r--r--src/model/state/selection_info_init.c14
-rw-r--r--src/model/state/selection_info_init.h8
-rw-r--r--src/model/state/selection_purposes.h17
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 @@
+#ifndef PAN_INFO_H
+#define PAN_INFO_H
+
+#include <stdbool.h>
+
+typedef struct
+{
+ /*
+ * A panning operation has begun.
+ */
+ bool active;
+
+ /*
+ * Coordinates of mouse when the pan operation is begun.
+ */
+ int begin[2];
+
+ /*
+ * Translation
+ */
+ float trans[2];
+} PAN_INFO;
+
+#endif // PAN_INFO_H

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.