Help with Phix structures
- Posted by irv Jan 07, 2021
- 736 views
This C structure in GTK:
struct GtkTreeIter { gint stamp; gpointer user_data; gpointer user_data2; gpointer user_data3; };The fields of which are filled in by a call to library function:
gboolean gtk_tree_model_get_iter_from_string (GtkTreeModel *tree_model, GtkTreeIter *iter, const gchar *path_string);
I have no problem calling the library function, but how should I code the struct for Phix, and how to pass the structure to the library function?
Phix is really working well for interfacing to GTK. A few of the stickier problems will need a better understanding of structures.
Thanks!