If you want to draw a widget to cairo today, you create a widget paintable, snapshot it to a render node and then draw the render node to cairo. And yes, this is that complicated on purpose. Don't draw widgets to Cairo.
If you want to draw a widget to cairo today, you create a widget paintable, snapshot it to a render node and then draw the render node to cairo. And yes, this is that complicated on purpose. Don't draw widgets to Cairo.