summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2018-03-13 00:48:56 +1100
committerJed Barber <jjbarber@y7mail.com>2018-03-13 00:48:56 +1100
commit9293541a882a64bcb21a845b085dc0fe4c72607c (patch)
tree44b7007ad3f6cc60fc3584db2a2197c179694959
parentece14b9a9bce88245543bd7f1a3d40367276c9b5 (diff)
Fixed missing C-side Fl_Valuator functions
-rw-r--r--progress.txt2
-rw-r--r--src/c_fl_valuator.cpp15
2 files changed, 16 insertions, 1 deletions
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<My_Valuator*>(v)->clamp(a);
+}
+
+double fl_valuator_round(VALUATOR v, double a) {
+ return reinterpret_cast<My_Valuator*>(v)->round(a);
+}
+
+double fl_valuator_increment(VALUATOR v, double a, int s) {
+ return reinterpret_cast<My_Valuator*>(v)->increment(a,s);
+}
+
+
+
+
double fl_valuator_get_minimum(VALUATOR v) {
return reinterpret_cast<My_Valuator*>(v)->minimum();
}