GTK bindings for Elixir

344 views
Skip to first unread message

David García Paredes

unread,
Nov 13, 2014, 5:45:03 AM11/13/14
to elixir-l...@googlegroups.com
Hi everybody,

This is my first post here :).
I'm trying to write a gtk3 binding to be able to create gtk applications using Elixir.
I started writing a nif to start the gtk main event loop (gtk_main call). The problem is, that will block the thread (I guess the VM too), so I will probably need to spawn a new thread to run the gtk_main loop. My idea is to somehow capture events from gtk ui and send them to beam processes as messages.
Do you know any good examples/tutorial/doc showing how to work with threads in nifs? asynchronously send messages from nif to  beam processes?

Thanks a lot!

Cheers.

David

T Ty

unread,
Nov 13, 2014, 7:38:46 AM11/13/14
to elixir-l...@googlegroups.com
Check out the wxWindows bindings in Erlang. 

--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Onorio Catenacci

unread,
Nov 13, 2014, 8:40:57 AM11/13/14
to elixir-l...@googlegroups.com
You beat me to it Tty.  For the OP, look here: http://www.erlang.org/doc/man/wx.html
Reply all
Reply to author
Forward
0 new messages