diff options
author | Jed Barber <jjbarber@y7mail.com> | 2016-05-25 01:10:29 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2016-05-25 01:10:29 +1000 |
commit | a3a475cc6a88e7fbd5d55cbca3dd517c0d34b260 (patch) | |
tree | 5274efd53486c3061741eb549e31aebf045e1129 /c_fl_button.cpp | |
parent | ac5c51b6ee492b504e165408b742d2505e308e94 (diff) |
Buttons and accessors
Diffstat (limited to 'c_fl_button.cpp')
-rw-r--r-- | c_fl_button.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
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<Fl_Button*>(f); } + +int fl_button_get_state(my_fl_button b) { + return reinterpret_cast<Fl_Button*>(b)->value(); +} + + +void fl_button_set_state(my_fl_button b, int s) { + reinterpret_cast<Fl_Button*>(b)->value(s); +} + + +void fl_button_set_only(my_fl_button b) { + reinterpret_cast<Fl_Button*>(b)->setonly(); +} + |