Canvas ui element #113
Labels
feature
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
question
Further information is requested
For an ui element made out of
graphics::Canvas
, is it better tobuild a new
ui::Canvas
make it so that
ui::Image
can accept eithergraphics::Image
orgraphics::Canvas
make it so that there's a
Drawable
trait that hasfn draw<Q: IntoQuad>(&self, quad: Q, target: &mut Target)
, so thatui::Image
accepts a&dyn Drawable
trait object.1 is the most logical given the way the library is currently laid out, but involves duplication. But I think
ui::Image
shouldn't care whether it's displaying an image or a canvas, so 2) sounds better.3 seems like a big departure from the way the lib is currently designed, but I'm curious on why coffee doesn't provide such trait already.
The text was updated successfully, but these errors were encountered: