[cairo] cl-cairo with X11 examples with mouse events handling
Bill Spitzak
spitzak at gmail.com
Mon Oct 12 09:53:20 PDT 2009
I fully agree that such an example is very much needed. One of the big
points in favor of Cairo is that it is not tied to a toolkit, but all
the examples being tied to a toolkit mean that is not really true...
As FLTK can draw using Cairo, I think I may be able to extract the
necessary information and make a program that works that does not use
GTK (or FLTK). I hope this will be a useful example.
Taoufik Dachraoui wrote:
> Dear,
>
> I am new to cl-cairo2 and would like to know how to write an X11
> application using CL-CAIRO2
>
> I installed cl-cairo2 on openmcl (Clozure CL) and run the tests (e.g
> tutorial/x11-example.lisp)
>
> The X11 tests works fine but I could not figure out how to use and
> handle mouse events (e.g. button-press, exposure,...)
>
> I will appreciate if someone can send me an example of how to create a
> X11 window and to define lisp functions to handle mouse and keyboard
> events.
>
> I prefer to use X window with cairo and not GTK with cairo.
>
> Kind regards
> Taoufik
>
>
>
>
>
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
More information about the cairo
mailing list