From 7828597e5f159010c168f9fe366828825fc75205 Mon Sep 17 00:00:00 2001 From: grm Date: Thu, 27 Nov 2025 15:53:51 +0200 Subject: chore: remove x value, tidy some code --- src/gui_functions.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/gui_functions.c (limited to 'src/gui_functions.c') 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 + +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 -- cgit v1.2.3