aboutsummaryrefslogtreecommitdiffstats
path: root/widget.h
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-02-28 20:55:13 -0500
committerSam Anthony <sam@samanthony.xyz>2025-02-28 20:55:13 -0500
commitfaf14d71cfbac1f21500f4b997441fa03731bf0e (patch)
tree0512dbda2976bede3ce982303ad9a0411c1f83ed /widget.h
parenta7c99e7bed015db546969d5f9a87fc6ffd1f2ea8 (diff)
downloadvolute-faf14d71cfbac1f21500f4b997441fa03731bf0e.zip
add volume flow rate to ui
Diffstat (limited to 'widget.h')
-rw-r--r--widget.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/widget.h b/widget.h
index afd7bb1..546ed1c 100644
--- a/widget.h
+++ b/widget.h
@@ -1,3 +1,6 @@
+enum { LABEL_SIZE = 128 };
+
+
/* Field is a floating point number input field. */
typedef struct {
char buf[64];
@@ -17,3 +20,9 @@ typedef struct {
void w_init_select(w_Select *select, int nopts, const char *const opts[]);
int w_select(mu_Context *ctx, w_Select *select);
+
+
+typedef char w_Label[LABEL_SIZE];
+
+void w_init_label(w_Label label);
+void w_label(mu_Context *ctx, const w_Label label);