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 | 99ea64c2c914608d3429e63845f8ed396b234dd7 (patch) | |
tree | 767a09255183d906af68706bfd11df4787b0a5c9 /src/fltk_binding/c_fl_button.cpp | |
parent | 63d9e14dd0cccb2191bd18ec07cfb11d06a30fcd (diff) |
Buttons and accessors
Diffstat (limited to 'src/fltk_binding/c_fl_button.cpp')
-rw-r--r-- | src/fltk_binding/c_fl_button.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/fltk_binding/c_fl_button.cpp b/src/fltk_binding/c_fl_button.cpp index 935a14b..dd4286e 100644 --- a/src/fltk_binding/c_fl_button.cpp +++ b/src/fltk_binding/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(); +} + |