From 0d842f0423ba0754fb3675c7468397a8da5f6e1b Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Thu, 27 Apr 2017 10:40:48 +1000 Subject: Organising source --- src/c_fl_group.cpp | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 src/c_fl_group.cpp (limited to 'src/c_fl_group.cpp') 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 +#include +#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(g); +} + + + + +void fl_group_end(GROUP g) { + reinterpret_cast(g)->end(); +} + + + + +void fl_group_add(GROUP g, WIDGET item) { + reinterpret_cast(g)->add(reinterpret_cast(item)); +} + + +int fl_group_find(GROUP g, WIDGET item) { + return reinterpret_cast(g)->find(reinterpret_cast(item)); +} + + +void fl_group_insert(GROUP g, WIDGET item, int place) { + reinterpret_cast(g)->insert(*(reinterpret_cast(item)), place); +} + + +void fl_group_remove(GROUP g, WIDGET item) { + reinterpret_cast(g)->remove(reinterpret_cast(item)); +} + + +void fl_group_remove2(GROUP g, int place) { + reinterpret_cast(g)->remove(place); +} + + +void fl_group_resizable(GROUP g, WIDGET item) { + reinterpret_cast(g)->resizable(reinterpret_cast(item)); +} + + + + +int fl_group_children(GROUP g) { + return reinterpret_cast(g)->children(); +} + + +void * fl_group_child(GROUP g, int place) { + return reinterpret_cast(g)->child(place); +} + -- cgit