Ticket #1180 (new enhancement)

Opened 5 years ago

Last modified 4 years ago

cairo with X11 without GTK

Reported by: guest Owned by: paolo
Priority: minor Milestone: 0.11.0
Component: Cairo bindings Version: 0.11.0
Keywords: X11 GTK backend Glitz Cc: beroal@…

Description

Is it possible? The only way to draw on a screen is via the Graphics.UI.Gtk.Cairo module. Also, can I use the Glitz cairo backend?

Change History

Changed 4 years ago by guest

No comments in 8 months? Let's change that:

It's easy to extend gtk2hs to support cairo/xlib surfaces, and I nearly have a patch ready. I realized, however, that if you want to use such a surface for anything other than, say, a non-moving status bar, you'll definitely want to implement some kind of buffering. Which leads to the abyss of X window system programming.

I assume that the right way to go about "cairo on-screen without GTK" would be to use the GDK layer, where the most tedious work has been done for us. Alas, the gtk2hs bindings are currently lacking in the GDK-without-GTK part.

-- maltem

Changed 4 years ago by guest

Umm -- I'm not actually sure anymore if GDK implements buffering itself. Anyone?

-- maltem

Note: See TracTickets for help on using tickets.