Re: Help with Phix structures
- Posted by irv Jan 07, 2021
- 688 views
struct GtkTreeIter """ typedef struct GtkTreeIter { int stamp; ptr user_data; ptr user_data2; ptr user_data3; }; """ end struct procedure set_data(object data) GtkTreeIter gti = new() ? gti --=> {"struct","GtkTreeIter",12,1101190672.0} end procedure
Now, if I knew how to get the handle or pointer to the structure, I could pass that to the GTK function. (I assume that the gti structure has been allocated the necessary memory?)