we love post fix
This commit is contained in:
@@ -33,6 +33,12 @@ pub trait WidgetLike<Ctx, Tag> {
|
||||
{
|
||||
self.add(ui).into_static()
|
||||
}
|
||||
fn set_root(self, ui: &mut Ui<Ctx>)
|
||||
where
|
||||
Self: Sized,
|
||||
{
|
||||
ui.set_root(self);
|
||||
}
|
||||
}
|
||||
|
||||
/// A function that returns a widget given a UI.
|
||||
|
||||
Reference in New Issue
Block a user