This commit is contained in:
Michael Zhang 2023-04-07 00:11:14 -05:00
parent 9484e91166
commit d91aae4944

View file

@ -1,9 +1,23 @@
#ifndef STATE_H_
#define STATE_H_
#include <optional>
#include <utility>
using namespace std;
typedef pair<int, int> pii;
/// The state of the program
struct State {
int mouse_x, mouse_y;
pii mouse;
/// Where the dragging started (if it started)
optional<pii> drag_start;
/// Scaling factors
double x_scale = 1.0;
double y_scale = 1.0;
};
#endif