Re: GUI libraries
- Posted by petelomax Sep 17, 2019
- 886 views
_tom said...
irv said...
So, perhaps 3 more questions:
Can EuGTK be ported to phix - yes, no doubt, but lots of work.
A massive project that I could not wish on one person.
Possibly not needed since Phix has IUP for everyone except me and my 32bit computer.
My biggest beef with GTK is that it has dropped 32-bit support on Windows!
_tom said...
irv said...
Can libui be wrapped for phix? - seems probable, but needs volunteers.
The big incompatibility is the Euphoria map library. Maybe Pete can take a quick look to see if his tree equivalent can be make to work.
I got libui working on Phix 11/2017, nearly two years ago, but never uploaded anything.
The map changes were quite straightforward:
--map:map id_lookup = map:new() constant id_lookup = new_dict() --in procedure Define_C_func and proc: -- map:put(id_lookup, name, id) putd(name, id, id_lookup) --in function C_func/proc: -- func = map:get(id_lookup, func, -1) integer k = getd_index(func,id_lookup) if k=0 then ?9/0 end if func = getd_by_index(k,id_lookup)
What I never got round to was making anything work on Linux.