This commit is contained in:
2026-01-12 18:40:27 -05:00
parent a9c76e4326
commit 79813db3ba
35 changed files with 378 additions and 403 deletions

View File

@@ -2,7 +2,7 @@ use crate::prelude::*;
use std::marker::PhantomData;
pub struct Span {
pub children: Vec<WidgetHandle>,
pub children: Vec<StrongWidget>,
pub dir: Dir,
pub gap: f32,
}
@@ -62,11 +62,11 @@ impl Span {
self
}
pub fn push(&mut self, w: WidgetHandle) {
pub fn push(&mut self, w: StrongWidget) {
self.children.push(w);
}
pub fn pop(&mut self) -> Option<WidgetHandle> {
pub fn pop(&mut self) -> Option<StrongWidget> {
self.children.pop()
}
@@ -193,7 +193,7 @@ impl<State, const LEN: usize, Wa: WidgetArrLike<State, LEN, Tag>, Tag>
}
impl std::ops::Deref for Span {
type Target = Vec<WidgetHandle>;
type Target = Vec<StrongWidget>;
fn deref(&self) -> &Self::Target {
&self.children