You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My task is to open a window, draw some diagrams with Chart and interact with a human. Chart-cairo provides a function runBackend that creates a cairoRender. I was looking for a way to render that Render.
There is also an issue timbod7/haskell-chart#241 that offers renderToGI ∷ C.Render a → GI.Render a. However, this issue does not offer a complete example either.
Can documentation for this use case be updated with a working and supported example?
The text was updated successfully, but these errors were encountered:
Thanks for the report, and sorry for the delay in replying.
I think that the example would still build, but the handwritten Haskell binding to cairo (the cairo package, not gi-cairo) does not build for me any more, so the example does not compile any more because of this.
The error I get is
src/Gtk2HsSetup.hs:(297,20)-(304,1): Missing field in record construction ppOrdering
I suspect this is probably not very hard to fix, but I haven't had time to look into it. I am happy to reinstate the cairo example once the cairo package is fixed.
My task is to open a window, draw some diagrams with
Chart
and interact with a human.Chart-cairo
provides a functionrunBackend
that creates acairo
Render
. I was looking for a way to render thatRender
.There was a
cairo
example. It is referred to from https://github.com/haskell-gi/haskell-gi/wiki/Using-Cairo-with-haskell-gi-generated-bindings. However, it seems to have been removed in commit c844d5f. The missing example seems to have been doing what I need. The function of interest isrenderWithContext ∷ GI.Cairo.Context → Render () → IO ()
.There is also an issue timbod7/haskell-chart#241 that offers
renderToGI ∷ C.Render a → GI.Render a
. However, this issue does not offer a complete example either.Can documentation for this use case be updated with a working and supported example?
The text was updated successfully, but these errors were encountered: