diff options
author | Jed Barber <jjbarber@y7mail.com> | 2016-09-07 02:15:57 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2016-09-07 02:15:57 +1000 |
commit | e9add081b396a0cbfdf59df9d340afe44d9b9544 (patch) | |
tree | ad5a4cb0d3e7a5ee228f7e5d954a78dc1c0e6f22 /c_fl_group.cpp | |
parent | dac7e747e5c61d78deffdccc986d202e9f0d63bb (diff) |
Now using widget user data to refer back to Ada side of things, will enable easy implementation of callbacks
Diffstat (limited to 'c_fl_group.cpp')
-rw-r--r-- | c_fl_group.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/c_fl_group.cpp b/c_fl_group.cpp index 58cb6f3..8adc9dd 100644 --- a/c_fl_group.cpp +++ b/c_fl_group.cpp @@ -31,8 +31,8 @@ void fl_group_add(GROUP g, WIDGET item) { } -void fl_group_clear(GROUP g) { - reinterpret_cast<Fl_Group*>(g)->clear(); +int fl_group_find(GROUP g, WIDGET item) { + return reinterpret_cast<Fl_Group*>(g)->find(reinterpret_cast<Fl_Widget*>(item)); } @@ -50,3 +50,15 @@ void fl_group_remove2(GROUP g, int place) { reinterpret_cast<Fl_Group*>(g)->remove(place); } + + + +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); +} + |