From 0d842f0423ba0754fb3675c7468397a8da5f6e1b Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Thu, 27 Apr 2017 10:40:48 +1000 Subject: Organising source --- c_fl_button.cpp | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 c_fl_button.cpp (limited to 'c_fl_button.cpp') diff --git a/c_fl_button.cpp b/c_fl_button.cpp deleted file mode 100644 index 621656c..0000000 --- a/c_fl_button.cpp +++ /dev/null @@ -1,31 +0,0 @@ - - -#include -#include "c_fl_button.h" - - -BUTTON new_fl_button(int x, int y, int w, int h, char* label) { - Fl_Button *b = new Fl_Button(x, y, w, h, label); - return b; -} - - -void free_fl_button(BUTTON b) { - delete reinterpret_cast(b); -} - - -int fl_button_get_state(BUTTON b) { - return reinterpret_cast(b)->value(); -} - - -void fl_button_set_state(BUTTON b, int s) { - reinterpret_cast(b)->value(s); -} - - -void fl_button_set_only(BUTTON b) { - reinterpret_cast(b)->setonly(); -} - -- cgit