diff options
author | Jed Barber <jjbarber@y7mail.com> | 2018-03-20 01:41:49 +1100 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2018-03-20 01:41:49 +1100 |
commit | 09d9f2f6fc83af3bdc76717941eb13b77b2b1613 (patch) | |
tree | 82b57130cd381b9a0b261eabdc4239c09dcc17f2 /src/c_fl_valuator.cpp | |
parent | c1dcb4c61e79b1ddd98c0ef84f2d36be7f7fd736 (diff) |
Moved several Widgets from the Partially list to the Done list
Diffstat (limited to 'src/c_fl_valuator.cpp')
-rw-r--r-- | src/c_fl_valuator.cpp | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/src/c_fl_valuator.cpp b/src/c_fl_valuator.cpp index 523379b..37f8ad8 100644 --- a/src/c_fl_valuator.cpp +++ b/src/c_fl_valuator.cpp @@ -62,53 +62,61 @@ void free_fl_valuator(VALUATOR v) { double fl_valuator_clamp(VALUATOR v, double a) { - return reinterpret_cast<My_Valuator*>(v)->clamp(a); + return reinterpret_cast<Fl_Valuator*>(v)->clamp(a); } double fl_valuator_round(VALUATOR v, double a) { - return reinterpret_cast<My_Valuator*>(v)->round(a); + return reinterpret_cast<Fl_Valuator*>(v)->round(a); } double fl_valuator_increment(VALUATOR v, double a, int s) { - return reinterpret_cast<My_Valuator*>(v)->increment(a,s); + return reinterpret_cast<Fl_Valuator*>(v)->increment(a,s); } double fl_valuator_get_minimum(VALUATOR v) { - return reinterpret_cast<My_Valuator*>(v)->minimum(); + return reinterpret_cast<Fl_Valuator*>(v)->minimum(); } void fl_valuator_set_minimum(VALUATOR v, double t) { - reinterpret_cast<My_Valuator*>(v)->minimum(t); + reinterpret_cast<Fl_Valuator*>(v)->minimum(t); } double fl_valuator_get_maximum(VALUATOR v) { - return reinterpret_cast<My_Valuator*>(v)->maximum(); + return reinterpret_cast<Fl_Valuator*>(v)->maximum(); } void fl_valuator_set_maximum(VALUATOR v, double t) { - reinterpret_cast<My_Valuator*>(v)->maximum(t); + reinterpret_cast<Fl_Valuator*>(v)->maximum(t); +} + +double fl_valuator_get_step(VALUATOR v) { + return reinterpret_cast<Fl_Valuator*>(v)->step(); +} + +void fl_valuator_set_step(VALUATOR v, double t) { + reinterpret_cast<Fl_Valuator*>(v)->step(t); } double fl_valuator_get_value(VALUATOR v) { - return reinterpret_cast<My_Valuator*>(v)->value(); + return reinterpret_cast<Fl_Valuator*>(v)->value(); } void fl_valuator_set_value(VALUATOR v, double t) { - reinterpret_cast<My_Valuator*>(v)->value(t); + reinterpret_cast<Fl_Valuator*>(v)->value(t); } void fl_valuator_bounds(VALUATOR v, double a, double b) { - reinterpret_cast<My_Valuator*>(v)->bounds(a,b); + reinterpret_cast<Fl_Valuator*>(v)->bounds(a,b); } void fl_valuator_precision(VALUATOR v, int s) { - reinterpret_cast<My_Valuator*>(v)->precision(s); + reinterpret_cast<Fl_Valuator*>(v)->precision(s); } void fl_valuator_range(VALUATOR v, double a, double b) { - reinterpret_cast<My_Valuator*>(v)->range(a,b); + reinterpret_cast<Fl_Valuator*>(v)->range(a,b); } |