diff options
author | Jed Barber <jjbarber@y7mail.com> | 2016-05-24 02:25:30 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2016-05-24 02:25:30 +1000 |
commit | ac5c51b6ee492b504e165408b742d2505e308e94 (patch) | |
tree | f0d0dc1bcade720f368f119240a0ade500adf092 /c_fl_group.cpp |
It's a start
Diffstat (limited to 'c_fl_group.cpp')
-rw-r--r-- | c_fl_group.cpp | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/c_fl_group.cpp b/c_fl_group.cpp new file mode 100644 index 0000000..44aeb34 --- /dev/null +++ b/c_fl_group.cpp @@ -0,0 +1,52 @@ + + +#include <FL/Fl_Group.H> +#include <FL/Fl_Widget.H> +#include "c_fl_group.h" + + +my_fl_group new_fl_group(int x, int y, int w, int h, char * label) { + Fl_Group *group = new Fl_Group(x, y, w, h, label); + return group; +} + + +void free_fl_group(my_fl_group f) { + delete reinterpret_cast<Fl_Group*>(f); +} + + +void fl_group_end(my_fl_group f) { + reinterpret_cast<Fl_Group*>(f)->end(); +} + + +void fl_group_add(my_fl_group f, void * item) { + reinterpret_cast<Fl_Group*>(f)->add(reinterpret_cast<Fl_Widget*>(item)); +} + + +void fl_group_clear(my_fl_group f) { + reinterpret_cast<Fl_Group*>(f)->clear(); +} + + +int fl_group_find(my_fl_group f, void * item) { + return reinterpret_cast<Fl_Group*>(f)->find(reinterpret_cast<Fl_Widget*>(item)); +} + + +void fl_group_insert(my_fl_group f, void * item, int place) { + reinterpret_cast<Fl_Group*>(f)->insert(*(reinterpret_cast<Fl_Widget*>(item)), place); +} + + +void fl_group_remove(my_fl_group f, void * item) { + reinterpret_cast<Fl_Group*>(f)->remove(reinterpret_cast<Fl_Widget*>(item)); +} + + +void fl_group_remove2(my_fl_group f, int place) { + reinterpret_cast<Fl_Group*>(f)->remove(place); +} + |