From a3a475cc6a88e7fbd5d55cbca3dd517c0d34b260 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Wed, 25 May 2016 01:10:29 +1000 Subject: Buttons and accessors --- c_fl_button.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'c_fl_button.cpp') diff --git a/c_fl_button.cpp b/c_fl_button.cpp index 935a14b..dd4286e 100644 --- a/c_fl_button.cpp +++ b/c_fl_button.cpp @@ -14,3 +14,18 @@ void free_fl_button(my_fl_button f) { delete reinterpret_cast(f); } + +int fl_button_get_state(my_fl_button b) { + return reinterpret_cast(b)->value(); +} + + +void fl_button_set_state(my_fl_button b, int s) { + reinterpret_cast(b)->value(s); +} + + +void fl_button_set_only(my_fl_button b) { + reinterpret_cast(b)->setonly(); +} + -- cgit