const char * ju_cstr_t
Informative type definition.
Definition: jackutils.h:64
jack_default_audio_sample_t ju_sample_t
Sample type.
Definition: jackutils.h:68
JU_API void ju_vars_unlock()
See ju_vars_lock()! It is important!
Definition: jackutilsvars.c:46
JU_API ju_var_t ju_var_float_rw(ju_cstr_t name, float *val, float min, float max)
Creates modifyable float variable :)
Definition: jackutilsvars.c:158
JU_API int ju_vars_draw(jg_ctx_t *u, ju_var_t *vararr, int eh)
Renders (and probably processes) your variables.
Definition: jackwidgets.c:231
JU_API ju_var_t ju_var_float_ro(ju_cstr_t name, float *val)
Creates readonly float variable :) It will not be saved/parsed and changed anyhow!
Definition: jackutilsvars.c:184
JU_API ju_var_t ju_var_nil()
Creates ZERO variable to show end of variables array.
Definition: jackutilsvars.c:23
JU_API int ju_vars_save(ju_cstr_t filename, ju_var_t *vararr)
Saves your variables into the file.
Definition: jackutilsvars.c:50
JU_API int ju_vars_load(ju_cstr_t filename, ju_var_t *vararr)
Loads your variables from the file.
Definition: jackutilsvars.c:93
JU_API void ju_vars_lock()
A common way to protect your variables in multithread world :) ONLY in space between calling ju_vars_...
Definition: jackutilsvars.c:37
GUI and window creation extension for JackUtils :)
Variable shared structure.
Definition: ju_vars.h:107
const struct ju_varclass * _vp
pointer to the class
Definition: ju_vars.h:108
ju_cstr_t name
more than enough...
Definition: ju_vars.h:114
class of variable.
Definition: ju_vars.h:54
float widthratio
Specifies ratio width/height (optional).
Definition: ju_vars.h:97
int(* parse)(FILE *f, ju_var_t *v)
Parses (reads) variable from a file.
Definition: ju_vars.h:79
void(* render)(jg_ctx_t *gui, ju_var_t *v)
function (method) to render this variable, and maybe even process and change it with the user input :...
Definition: ju_vars.h:66
int(* write)(FILE *f, ju_var_t *v)
Serializes (writes) variable to the file.
Definition: ju_vars.h:93