On 11/27/2013 09:39 AM, Steve Teale wrote:
I want to wrap a couple of C functions that take a cairo_t* as an argument. But in the gtkd cairo.Context class, that pointer is protected, and DMD seems to do a pretty good job at protection.
How do I work round that?
You can use Context.getContextStruct() witch returns the wrapped cairo_t.