Re: Trying out cairo2
| Newsgroups | gmane.comp.lang.ocaml.beginners |
|---|---|
| Organization | University of Mons |
| Message-ID | <20150720.105928.383239684724933911.Christophe.Troestler@umons.ac.be> |
On Sun, 19 Jul 2015 14:25:37 -0400, Hendrik Boom wrote: > > But insteaad of trying to figure out oasis (another huge lump to swallow before I get anything going, aind I'm really not sure if I need to understand this until I have a bigger project, or am preparing a package for distribution) I just used > > ocamlfind ocamlopt -o foom -package cairo2,lablgtk2,cairo2.lablgtk2 -linkpkg foo.ml > > and then > ./foom > gave me a window with some coloured circles. That's fine. oasis is especially interesting for projects that you want to package. > Do I understand correctly that there's no user interaction in this program? No, that's not the purpose of Cairo. For user interaction, you would need to embed it in, say, a Gtk canva and use Gtk for user interaction. Best, C.