[cairo] How to draw Cairo graphic in a Motif drawing widget

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Mon May 9 23:50:37 UTC 2016


On Fri, 6 May 2016 22:55:18 +0000 (UTC), George Wu wrote:

> I'm trying to use Cairo to draw graphics on a drawing area widget
> created by Motif.

Presumably there is some way to get an X11 or XCB drawable out of your
GUI toolkit. Then you can wrap it in a Cairo surface using this
<https://www.cairographics.org/manual/cairo-XLib-Surfaces.html#cairo-xlib-surface-create>
or this
<https://www.cairographics.org/manual/cairo-XCB-Surfaces.html#cairo-xcb-surface-create>.


More information about the cairo mailing list