From dbb118c28e8348797ce3ccc1a6c7f1ec4f1f4968 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Tue, 30 May 2017 19:13:56 +1000 Subject: Group widget now more or less method complete --- src/c_fl_group.cpp | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'src/c_fl_group.cpp') diff --git a/src/c_fl_group.cpp b/src/c_fl_group.cpp index 4f1b5ef..7e7786d 100644 --- a/src/c_fl_group.cpp +++ b/src/c_fl_group.cpp @@ -98,11 +98,21 @@ int fl_group_find(GROUP g, WIDGET item) { } +void fl_group_init_sizes(GROUP g) { + reinterpret_cast(g)->init_sizes(); +} + + void fl_group_insert(GROUP g, WIDGET item, int place) { reinterpret_cast(g)->insert(*(reinterpret_cast(item)), place); } +void fl_group_insert2(GROUP g, WIDGET item, WIDGET before) { + reinterpret_cast(g)->insert(*(reinterpret_cast(item)), reinterpret_cast(before)); +} + + void fl_group_remove(GROUP g, WIDGET item) { reinterpret_cast(g)->remove(reinterpret_cast(item)); } @@ -113,7 +123,12 @@ void fl_group_remove2(GROUP g, int place) { } -void fl_group_resizable(GROUP g, WIDGET item) { +void * fl_group_get_resizable(GROUP g) { + return reinterpret_cast(g)->resizable(); +} + + +void fl_group_set_resizable(GROUP g, WIDGET item) { reinterpret_cast(g)->resizable(reinterpret_cast(item)); } @@ -129,3 +144,13 @@ void * fl_group_child(GROUP g, int place) { return reinterpret_cast(g)->child(place); } + +unsigned int flt_group_get_clip_children(GROUP g) { + return reinterpret_cast(g)->clip_children(); +} + + +void fl_group_set_clip_children(GROUP g, int c) { + reinterpret_cast(g)->clip_children(c); +} + -- cgit