diff options
Diffstat (limited to 'src/c_fl_file_input.cpp')
-rw-r--r-- | src/c_fl_file_input.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/c_fl_file_input.cpp b/src/c_fl_file_input.cpp index 1af9e19..03f941c 100644 --- a/src/c_fl_file_input.cpp +++ b/src/c_fl_file_input.cpp @@ -23,42 +23,34 @@ class My_File_Input : public Fl_File_Input { h_hook_p handle_hook; }; - void My_File_Input::draw() { (*draw_hook)(this->user_data()); } - void My_File_Input::real_draw() { Fl_File_Input::draw(); } - int My_File_Input::handle(int e) { return (*handle_hook)(this->user_data(), e); } - int My_File_Input::real_handle(int e) { return Fl_File_Input::handle(e); } - void file_input_set_draw_hook(FILE_INPUT i, void * d) { reinterpret_cast<My_File_Input*>(i)->draw_hook = reinterpret_cast<d_hook_p>(d); } - void fl_file_input_draw(FILE_INPUT i) { reinterpret_cast<My_File_Input*>(i)->real_draw(); } - void file_input_set_handle_hook(FILE_INPUT i, void * h) { reinterpret_cast<My_File_Input*>(i)->handle_hook = reinterpret_cast<h_hook_p>(h); } - int fl_file_input_handle(FILE_INPUT i, int e) { return reinterpret_cast<My_File_Input*>(i)->real_handle(e); } @@ -71,7 +63,6 @@ FILE_INPUT new_fl_file_input(int x, int y, int w, int h, char* label) { return i; } - void free_fl_file_input(FILE_INPUT i) { delete reinterpret_cast<My_File_Input*>(i); } |