aboutsummaryrefslogtreecommitdiffstats
path: root/ui.h
blob: 4d0a63a3d5eacd7740319c4c611e5198ac04cf9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
enum { MAX_POINTS = 16 };

typedef struct {
	w_Field displacement;
	w_Select displacement_unit;

	int npoints;

	w_Field rpm[MAX_POINTS];

	w_Field map[MAX_POINTS];
	w_Select map_unit;

	w_Field ve[MAX_POINTS];

	Engine points[MAX_POINTS];
} UI;

void init_ui(UI *ui);
void set_displacement(UI *ui);
void insert_point(UI *ui, int idx);
void remove_point(UI *ui, int idx);