Render more than one item

This commit is contained in:
Conrad Irwin 2023-11-09 16:36:36 -07:00
parent fa153a0d56
commit ff15ddf3e0
3 changed files with 82 additions and 68 deletions

View file

@ -145,7 +145,7 @@ impl<V> Eq for WeakView<V> {}
#[derive(Clone, Debug)]
pub struct AnyView {
model: AnyModel,
pub initialize: fn(&AnyView, &mut WindowContext) -> AnyBox,
initialize: fn(&AnyView, &mut WindowContext) -> AnyBox,
layout: fn(&AnyView, &mut AnyBox, &mut WindowContext) -> LayoutId,
paint: fn(&AnyView, &mut AnyBox, &mut WindowContext),
}