diff options
Diffstat (limited to 'body/c_fl_valuator.h')
-rw-r--r-- | body/c_fl_valuator.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/body/c_fl_valuator.h b/body/c_fl_valuator.h new file mode 100644 index 0000000..81107bc --- /dev/null +++ b/body/c_fl_valuator.h @@ -0,0 +1,48 @@ + + +// Programmed by Jedidiah Barber +// Released into the public domain + + +#ifndef FL_VALUATOR_GUARD +#define FL_VALUATOR_GUARD + + +typedef void* VALUATOR; + + +extern "C" VALUATOR new_fl_valuator(int x, int y, int w, int h, char* label); +extern "C" void free_fl_valuator(VALUATOR v); + + +extern "C" int fl_valuator_format(VALUATOR v, char * buf); + + +extern "C" double fl_valuator_clamp(VALUATOR v, double a); +extern "C" double fl_valuator_round(VALUATOR v, double a); +extern "C" double fl_valuator_increment(VALUATOR v, double a, int s); + + +extern "C" double fl_valuator_get_minimum(VALUATOR v); +extern "C" void fl_valuator_set_minimum(VALUATOR v, double t); +extern "C" double fl_valuator_get_maximum(VALUATOR v); +extern "C" void fl_valuator_set_maximum(VALUATOR v, double t); +extern "C" double fl_valuator_get_step(VALUATOR v); +extern "C" void fl_valuator_set_step_top(VALUATOR v, double t); +extern "C" void fl_valuator_set_step_bottom(VALUATOR v, int b); +extern "C" void fl_valuator_set_step(VALUATOR v, double t, int b); +extern "C" double fl_valuator_get_value(VALUATOR v); +extern "C" void fl_valuator_set_value(VALUATOR v, double t); +extern "C" void fl_valuator_bounds(VALUATOR v, double a, double b); +extern "C" void fl_valuator_precision(VALUATOR v, int s); +extern "C" void fl_valuator_range(VALUATOR v, double a, double b); + + +extern "C" void fl_valuator_value_damage(VALUATOR v); +extern "C" void fl_valuator_draw(VALUATOR v); +extern "C" int fl_valuator_handle(VALUATOR v, int e); + + +#endif + + |