-
-
Notifications
You must be signed in to change notification settings - Fork 20
cairo_interaction::set_source_rgba() is not public #135
Comments
@EPashkin I mentioned this in my PR for the RGBA stuff, but I figured I'd break it out as a separate issue. Any idea what's going on here? |
Indeed, this looks to be a compiler bug. If I rename So here's the question, how do we want to resolve this? We have two functions, Pinging both @EPashkin and @GuillaumeGomez because I don't know how this should be resolved. |
Looks like I was wrong, sorry about the noise! Just talked to some people on IRC and the proper way to use these functions is the do So closing this. |
IMHO |
The compiler complained about the types and using the explicit syntax fixed it. |
This applies to a lof of the functions in that file. I've been trying to copy some C code and it's converted basically to the following Rust example:
Unfortunately this doesn't compile because of both the missing
get_color()
(tracked in gtk-rs/gtk#454), but also because the equivalent ofgdk_cairo_set_source_rgba()
isn't available. It's implemented ingdk::cairo_interaction
and I would think it'd be usable since thec
argument to the closure is acairo::Context
. Is there something I'm missing here?I should note that if you call
c.get_clip_rectangle()
within the callback it will compile successfully, so I'm wondering if there's a compiler bug that is allowingContext
to have twoset_source_rgba
functions implemented on it and silently ignores the duplicate one?The text was updated successfully, but these errors were encountered: