diff options
Diffstat (limited to 'src/c_fl_input.cpp')
-rw-r--r-- | src/c_fl_input.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/c_fl_input.cpp b/src/c_fl_input.cpp new file mode 100644 index 0000000..4f19bd1 --- /dev/null +++ b/src/c_fl_input.cpp @@ -0,0 +1,21 @@ + + +#include <FL/Fl_Input.H> +#include "c_fl_input.h" + + +INPUT new_fl_input(int x, int y, int w, int h, char* label) { + Fl_Input *i = new Fl_Input(x, y, w, h, label); + return i; +} + + +void free_fl_input(INPUT i) { + delete reinterpret_cast<Fl_Input*>(i); +} + + +const char * fl_input_get_value(INPUT i) { + return reinterpret_cast<Fl_Input*>(i)->value(); +} + |