summaryrefslogtreecommitdiff
path: root/src/fltk_binding/c_fl_input.cpp
blob: 4f19bd1794c78823ae3346d601737e9a5a18d536 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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();
}