aboutsummaryrefslogtreecommitdiffstats
path: root/widget.h
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-03-01 12:27:50 -0500
committerSam Anthony <sam@samanthony.xyz>2025-03-01 12:27:50 -0500
commit8cd4a9079a3a4343c2e2fa34d41901569541ec98 (patch)
treeb5c94d79823c73eab85e86bc16ae8940b6b51145 /widget.h
parent89fd08ec37e6b3d5191d20c2e3d219579255d934 (diff)
downloadvolute-8cd4a9079a3a4343c2e2fa34d41901569541ec98.zip
reformat displacement when unit changes
Diffstat (limited to 'widget.h')
-rw-r--r--widget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/widget.h b/widget.h
index 546ed1c..bc6a375 100644
--- a/widget.h
+++ b/widget.h
@@ -9,12 +9,14 @@ typedef struct {
void w_init_field(w_Field *f);
int w_field(mu_Context *ctx, w_Field *f);
+void w_set_field(w_Field *f, double v);
typedef struct {
int nopts;
const char *const *opts;
int idx; /* index of selected option. */
+ int oldidx; /* index of previously selected option. */
int active;
} w_Select;