From d91aae494402f3d2311ee69362ac3d11926fe5e1 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Fri, 7 Apr 2023 00:11:14 -0500 Subject: [PATCH] z --- assignment-2a/src/state.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/assignment-2a/src/state.h b/assignment-2a/src/state.h index 2045bf1..235c490 100644 --- a/assignment-2a/src/state.h +++ b/assignment-2a/src/state.h @@ -1,9 +1,23 @@ #ifndef STATE_H_ #define STATE_H_ +#include +#include + +using namespace std; + +typedef pair pii; + /// The state of the program struct State { - int mouse_x, mouse_y; + pii mouse; + + /// Where the dragging started (if it started) + optional drag_start; + + /// Scaling factors + double x_scale = 1.0; + double y_scale = 1.0; }; #endif