summaryrefslogtreecommitdiffstats
path: root/src/gui_functions.c
diff options
context:
space:
mode:
authorgrm <grm@eyesin.space>2025-11-27 15:53:51 +0200
committergrm <grm@eyesin.space>2025-11-27 15:53:51 +0200
commit7828597e5f159010c168f9fe366828825fc75205 (patch)
treef03a7ca58230ae162a4bf3a6c9d2763a8c6364e4 /src/gui_functions.c
parenta4acc4cd3a4ef237fb7238894336bbc4af659e07 (diff)
downloadsynth-project-7828597e5f159010c168f9fe366828825fc75205.tar.gz
synth-project-7828597e5f159010c168f9fe366828825fc75205.tar.bz2
synth-project-7828597e5f159010c168f9fe366828825fc75205.zip
chore: remove x value, tidy some code
Diffstat (limited to 'src/gui_functions.c')
-rw-r--r--src/gui_functions.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/gui_functions.c b/src/gui_functions.c
new file mode 100644
index 0000000..b024368
--- /dev/null
+++ b/src/gui_functions.c
@@ -0,0 +1,23 @@
+/*
+ * Header library for gui functions
+ */
+#ifndef SYNTH_GUI_H_
+#define SYNTH_GUI_H_
+
+#include "control.h"
+#include <raylib.h>
+
+void frequencyToColor(float frequency, int *red, int *green, int *blue);
+float generic_vbar(float val, float def, float min, float max, int x, int y, int width, int height);
+float generic_hbar(float val, float def, float min, float max, int x, int y, int width, int height);
+
+void draw_cc_circle(cc_t * cc, int x, int y, int width, int height);
+void draw_cc_hbar(cc_t * cc, int x, int y, int width, int height);
+void draw_cc_vbar(cc_t * cc, int x, int y, int width, int height);
+
+int gui_string_spinner(Rectangle rect, char * text, int * index);
+
+#endif // SYNTH_GUI_H_
+#ifdef SYNTH_GUI_IMPLEMENTATION
+
+#endif // SYNTH_GUI_IMPLEMENTATION