1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
|