WIP use cairo types
https://stackoverflow.com/questions/64625955/cairosolidpattern-is-not-of-type-goocanvas2cairopattern explains part of the problem. The second part is that I want to call
$canvas_image->get('pattern')->set_filter('nearest') but the returned
GooCanvas2::CairoPattern doesn't have
set_filter or any other methods. This patch fixes it.
But before this can be merged, I have several questions:
- What's the correct branch to merge this into? master also needs to be fixed (actually, same applies to !8 (merged))
- Same should probably be done to the other wrapped types here. I started from Pattern because that's what I got blocked on in my project.
- Re compatibility. Does anything rely on the
GooCanvas.CairoPatterntypes? Instead, if necessary, I can add a new set of properties and leave the
patternone as is. E.g. they would be
stroke-cairo-patternin addition to existing convenience properties