From 6e16a790b13ec50390c3b019598c1fa649f32c98 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Wed, 7 Sep 2016 02:15:57 +1000 Subject: Now using widget user data to refer back to Ada side of things, will enable easy implementation of callbacks --- src/fltk_binding/c_fl_group.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 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 58cb6f3..8adc9dd 100644 --- a/src/fltk_binding/c_fl_group.cpp +++ b/src/fltk_binding/c_fl_group.cpp @@ -31,8 +31,8 @@ void fl_group_add(GROUP g, WIDGET item) { } -void fl_group_clear(GROUP g) { - reinterpret_cast(g)->clear(); +int fl_group_find(GROUP g, WIDGET item) { + return reinterpret_cast(g)->find(reinterpret_cast(item)); } @@ -50,3 +50,15 @@ void fl_group_remove2(GROUP g, int place) { reinterpret_cast(g)->remove(place); } + + + +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