WIP
This commit is contained in:
parent
a9d7c86307
commit
e8857d959b
4 changed files with 43 additions and 28 deletions
|
@ -215,6 +215,10 @@ impl<C: Context> Context for MainThread<C> {
|
|||
impl<C: VisualContext> VisualContext for MainThread<C> {
|
||||
type ViewContext<'a, V: 'static> = MainThread<C::ViewContext<'a, V>>;
|
||||
|
||||
fn root_view(&self) -> AnyView {
|
||||
self.0.root_view()
|
||||
}
|
||||
|
||||
fn build_view<V>(
|
||||
&mut self,
|
||||
build_view_state: impl FnOnce(&mut Self::ViewContext<'_, V>) -> V,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue