From 2b4468a62a55d9f8520582f9aa2e420ab89ed7bd Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Thu, 26 May 2016 04:35:58 +1000 Subject: In the interests of readability and consistent style... --- src/fltk_binding/c_fl_group.cpp | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) (limited to 'src/fltk_binding/c_fl_group.cpp') diff --git a/src/fltk_binding/c_fl_group.cpp b/src/fltk_binding/c_fl_group.cpp index 44aeb34..c227169 100644 --- a/src/fltk_binding/c_fl_group.cpp +++ b/src/fltk_binding/c_fl_group.cpp @@ -3,50 +3,51 @@ #include #include #include "c_fl_group.h" +#include "c_fl_widget.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; +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(my_fl_group f) { - delete reinterpret_cast(f); +void free_fl_group(GROUP g) { + delete reinterpret_cast(g); } -void fl_group_end(my_fl_group f) { - reinterpret_cast(f)->end(); +void fl_group_end(GROUP g) { + reinterpret_cast(g)->end(); } -void fl_group_add(my_fl_group f, void * item) { - reinterpret_cast(f)->add(reinterpret_cast(item)); +void fl_group_add(GROUP g, WIDGET item) { + reinterpret_cast(g)->add(reinterpret_cast(item)); } -void fl_group_clear(my_fl_group f) { - reinterpret_cast(f)->clear(); +void fl_group_clear(GROUP g) { + reinterpret_cast(g)->clear(); } -int fl_group_find(my_fl_group f, void * item) { - return reinterpret_cast(f)->find(reinterpret_cast(item)); +int fl_group_find(GROUP g, WIDGET item) { + return reinterpret_cast(g)->find(reinterpret_cast(item)); } -void fl_group_insert(my_fl_group f, void * item, int place) { - reinterpret_cast(f)->insert(*(reinterpret_cast(item)), place); +void fl_group_insert(GROUP g, WIDGET item, int place) { + reinterpret_cast(g)->insert(*(reinterpret_cast(item)), place); } -void fl_group_remove(my_fl_group f, void * item) { - reinterpret_cast(f)->remove(reinterpret_cast(item)); +void fl_group_remove(GROUP g, WIDGET item) { + reinterpret_cast(g)->remove(reinterpret_cast(item)); } -void fl_group_remove2(my_fl_group f, int place) { - reinterpret_cast(f)->remove(place); +void fl_group_remove2(GROUP g, int place) { + reinterpret_cast(g)->remove(place); } -- cgit