I wanted to add the Painter widget, but in order to use it I needed SizedBox (Painter uses bc.max()).
I've also added a new trait MutableWidget which extends druid::Widget<DruidAppData> with the mutate method.
This was required for Painter because I wanted Painter to be generic over its painting data.
If it works out well, I might be able to use this for all widgets and remove AnyWidget? I'll have to play around with it a bit more.
I wanted to add the
Painter
widget, but in order to use it I neededSizedBox
(Painter
usesbc.max()
).I've also added a new trait
MutableWidget
which extendsdruid::Widget<DruidAppData>
with themutate
method. This was required forPainter
because I wantedPainter
to be generic over its painting data. If it works out well, I might be able to use this for all widgets and removeAnyWidget
? I'll have to play around with it a bit more.