z
This commit is contained in:
parent
9484e91166
commit
d91aae4944
1 changed files with 15 additions and 1 deletions
|
@ -1,9 +1,23 @@
|
||||||
#ifndef STATE_H_
|
#ifndef STATE_H_
|
||||||
#define STATE_H_
|
#define STATE_H_
|
||||||
|
|
||||||
|
#include <optional>
|
||||||
|
#include <utility>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
typedef pair<int, int> pii;
|
||||||
|
|
||||||
/// The state of the program
|
/// The state of the program
|
||||||
struct State {
|
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
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue