diff options
Diffstat (limited to 'src/c_fl_box.cpp')
-rw-r--r-- | src/c_fl_box.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/c_fl_box.cpp b/src/c_fl_box.cpp index 7e2cc22..3af626f 100644 --- a/src/c_fl_box.cpp +++ b/src/c_fl_box.cpp @@ -23,42 +23,34 @@ class My_Box : public Fl_Box { h_hook_p handle_hook; }; - void My_Box::draw() { (*draw_hook)(this->user_data()); } - void My_Box::real_draw() { Fl_Box::draw(); } - int My_Box::handle(int e) { return (*handle_hook)(this->user_data(), e); } - int My_Box::real_handle(int e) { return Fl_Box::handle(e); } - void box_set_draw_hook(BOX n, void * d) { reinterpret_cast<My_Box*>(n)->draw_hook = reinterpret_cast<d_hook_p>(d); } - void fl_box_draw(BOX n) { reinterpret_cast<My_Box*>(n)->real_draw(); } - void box_set_handle_hook(BOX n, void * h) { reinterpret_cast<My_Box*>(n)->handle_hook = reinterpret_cast<h_hook_p>(h); } - int fl_box_handle(BOX n, int e) { return reinterpret_cast<My_Box*>(n)->real_handle(e); } @@ -71,7 +63,6 @@ BOX new_fl_box(int x, int y, int w, int h, char* label) { return b; } - void free_fl_box(BOX b) { delete reinterpret_cast<My_Box*>(b); } |