WIP
This commit is contained in:
parent
a25f962185
commit
4cb13fb39c
3 changed files with 25 additions and 11 deletions
|
@ -128,6 +128,16 @@ pub trait Drawable<V: View> {
|
|||
}
|
||||
}
|
||||
|
||||
fn into_root(self, cx: &ViewContext<V>) -> RootElement<V>
|
||||
where
|
||||
Self: 'static + Sized,
|
||||
{
|
||||
RootElement {
|
||||
element: self.boxed(),
|
||||
view: cx.handle().downgrade(),
|
||||
}
|
||||
}
|
||||
|
||||
fn named(self, name: impl Into<Cow<'static, str>>) -> Element<V>
|
||||
where
|
||||
Self: 'static + Sized,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue