From 9293541a882a64bcb21a845b085dc0fe4c72607c Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Tue, 13 Mar 2018 00:48:56 +1100 Subject: Fixed missing C-side Fl_Valuator functions --- progress.txt | 2 +- src/c_fl_valuator.cpp | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/progress.txt b/progress.txt index 54492f6..46feda5 100644 --- a/progress.txt +++ b/progress.txt @@ -100,8 +100,8 @@ FL_Hold_Browser FL_Multi_Browser FL_Select_Browser FL_Color_Chooser -FL_Help_View FL_Input_Choice +FL_Help_View (several methods have ABI_VERSION bugs) FL_Pack FL_Spinner FL_Table diff --git a/src/c_fl_valuator.cpp b/src/c_fl_valuator.cpp index c13669c..523379b 100644 --- a/src/c_fl_valuator.cpp +++ b/src/c_fl_valuator.cpp @@ -61,6 +61,21 @@ void free_fl_valuator(VALUATOR v) { +double fl_valuator_clamp(VALUATOR v, double a) { + return reinterpret_cast(v)->clamp(a); +} + +double fl_valuator_round(VALUATOR v, double a) { + return reinterpret_cast(v)->round(a); +} + +double fl_valuator_increment(VALUATOR v, double a, int s) { + return reinterpret_cast(v)->increment(a,s); +} + + + + double fl_valuator_get_minimum(VALUATOR v) { return reinterpret_cast(v)->minimum(); } -- cgit