Is it possible to pass through an array of C pointers to a C function as a single parameter? There is a GTK function which appears to take a array of GtkWidget, here is the definition:
Copy code
public fun gtk_container_add(container: CValuesRef<GtkContainer>?, widget: CValuesRef<GtkWidget>?): Unit
Would like to add multiple GTK widgets to a GTK container using a single function call. If three or more widgets need to be added to a container then it would be tedious to call the same function multiple times.
napperley
11/12/2018, 3:14 AM
Looks as though it isn't possible. Defined a function as a workaround to deal with the GTK API limitation.