aboutsummaryrefslogtreecommitdiffstats
path: root/ui.h
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-02-28 14:01:48 -0500
committerSam Anthony <sam@samanthony.xyz>2025-02-28 14:01:48 -0500
commite0b42abda8d5d4e6e350ccd15618f7a2f1b14f6c (patch)
tree205e959d255101dae3f29218e32089b07a9fed89 /ui.h
parenta5e695b40492346c73b5fa88e2adcd414eb8a54c (diff)
downloadvolute-e0b42abda8d5d4e6e350ccd15618f7a2f1b14f6c.zip
dup/del buttons
Diffstat (limited to 'ui.h')
-rw-r--r--ui.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui.h b/ui.h
index 232ef54..ac8b047 100644
--- a/ui.h
+++ b/ui.h
@@ -4,6 +4,8 @@ typedef struct {
w_Field displacement;
w_Select displacement_unit;
+ int npoints;
+
w_Field rpm[MAX_POINTS];
w_Field map[MAX_POINTS];
@@ -11,7 +13,9 @@ typedef struct {
w_Field ve[MAX_POINTS];
- int npoints;
+ Engine points[MAX_POINTS];
} UI;
void init_ui(UI *ui);
+void insert_point(UI *ui, int idx);
+void remove_point(UI *ui, int idx);