diff options
author | Jed Barber <jjbarber@y7mail.com> | 2017-04-27 10:40:48 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2017-04-27 10:40:48 +1000 |
commit | 0d842f0423ba0754fb3675c7468397a8da5f6e1b (patch) | |
tree | d5da172bc7af2f7f48a3415eceac67ed67542787 /src/c_fl_group.cpp | |
parent | 5d88963cd203f30b79433e34e5c89bfcf8abfe60 (diff) |
Organising source
Diffstat (limited to 'src/c_fl_group.cpp')
-rw-r--r-- | src/c_fl_group.cpp | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/src/c_fl_group.cpp b/src/c_fl_group.cpp new file mode 100644 index 0000000..9ea2764 --- /dev/null +++ b/src/c_fl_group.cpp @@ -0,0 +1,69 @@ + + +#include <FL/Fl_Group.H> +#include <FL/Fl_Widget.H> +#include "c_fl_group.h" +#include "c_fl_widget.h" + + +GROUP new_fl_group(int x, int y, int w, int h, char* label) { + Fl_Group *g = new Fl_Group(x, y, w, h, label); + return g; +} + + +void free_fl_group(GROUP g) { + delete reinterpret_cast<Fl_Group*>(g); +} + + + + +void fl_group_end(GROUP g) { + reinterpret_cast<Fl_Group*>(g)->end(); +} + + + + +void fl_group_add(GROUP g, WIDGET item) { + reinterpret_cast<Fl_Group*>(g)->add(reinterpret_cast<Fl_Widget*>(item)); +} + + +int fl_group_find(GROUP g, WIDGET item) { + return reinterpret_cast<Fl_Group*>(g)->find(reinterpret_cast<Fl_Widget*>(item)); +} + + +void fl_group_insert(GROUP g, WIDGET item, int place) { + reinterpret_cast<Fl_Group*>(g)->insert(*(reinterpret_cast<Fl_Widget*>(item)), place); +} + + +void fl_group_remove(GROUP g, WIDGET item) { + reinterpret_cast<Fl_Group*>(g)->remove(reinterpret_cast<Fl_Widget*>(item)); +} + + +void fl_group_remove2(GROUP g, int place) { + reinterpret_cast<Fl_Group*>(g)->remove(place); +} + + +void fl_group_resizable(GROUP g, WIDGET item) { + reinterpret_cast<Fl_Group*>(g)->resizable(reinterpret_cast<Fl_Widget*>(item)); +} + + + + +int fl_group_children(GROUP g) { + return reinterpret_cast<Fl_Group*>(g)->children(); +} + + +void * fl_group_child(GROUP g, int place) { + return reinterpret_cast<Fl_Group*>(g)->child(place); +} + |