diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-12 01:14:58 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-12 01:14:58 +1300 |
commit | e93b9bbc02e2791f3a35b6f077fcbb8514c28aed (patch) | |
tree | 3661530027db6809a9cbad7b2477416009e00787 /src/c_fl_valuator.h | |
parent | 53aa8144851913994b963ed611cca8885b8f9a9e (diff) |
Refactored draw/handle methods in Widgets hierarchy, improved docs, added a few minor method bindings here and there
Diffstat (limited to 'src/c_fl_valuator.h')
-rw-r--r-- | src/c_fl_valuator.h | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/src/c_fl_valuator.h b/src/c_fl_valuator.h index 7bbb831..e3c6959 100644 --- a/src/c_fl_valuator.h +++ b/src/c_fl_valuator.h @@ -8,39 +8,26 @@ #define FL_VALUATOR_GUARD - - typedef void* VALUATOR; - - -extern "C" void valuator_set_draw_hook(VALUATOR v, void * d); -extern "C" void valuator_set_handle_hook(VALUATOR v, void * h); -extern "C" int fl_valuator_handle(VALUATOR v, int e); - - - - 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" 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(VALUATOR v, double t); +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); @@ -48,5 +35,11 @@ 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 + |