summaryrefslogtreecommitdiff
path: root/c_fl_button.cpp
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2016-05-25 01:10:29 +1000
committerJed Barber <jjbarber@y7mail.com>2016-05-25 01:10:29 +1000
commita3a475cc6a88e7fbd5d55cbca3dd517c0d34b260 (patch)
tree5274efd53486c3061741eb549e31aebf045e1129 /c_fl_button.cpp
parentac5c51b6ee492b504e165408b742d2505e308e94 (diff)
Buttons and accessors
Diffstat (limited to 'c_fl_button.cpp')
-rw-r--r--c_fl_button.cpp15
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();
+}
+