I have pushed a patch to https://patch-tag.com/r/hamish/gtk2hs/home that
adds the missing "draw" event needed to use cairo.  It uses the cairo
"Render" monad.

You should be able to replace "onExpose" events with something like...

    someWidget `on` draw $ do
      moveTo 0 0 
      lineTo 10 10

The patch also adds "Region" and "RectangleInt" cairo types.

If you have time, please try it out and let me know if it works
ok for you.

Thanks,
Hamish

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to