This commit is contained in:
iris committed 2026-01-12 18:40:27 -05:00
1 parent a9c76e4326
commit 79813db3ba
35 files changed
+378 -403

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
use crate::prelude::*;
pub struct Aligned {
pub inner: WidgetHandle,
pub inner: StrongWidget,
pub align: Align,
}
+1 -1
View File
@@ -1,7 +1,7 @@
use crate::prelude::*;
pub struct LayerOffset {
pub inner: WidgetHandle,
pub inner: StrongWidget,
pub offset: usize,
}
+1 -1
View File
@@ -1,7 +1,7 @@
use crate::prelude::*;
pub struct MaxSize {
pub inner: WidgetHandle,
pub inner: StrongWidget,
pub x: Option<Len>,
pub y: Option<Len>,
}
+1 -1
View File
@@ -1,7 +1,7 @@
use crate::prelude::*;
pub struct Offset {
pub inner: WidgetHandle,
pub inner: StrongWidget,
pub amt: UiVec2,
}
+1 -1
View File
@@ -2,7 +2,7 @@ use crate::prelude::*;
pub struct Pad {
pub padding: Padding,
pub inner: WidgetHandle,
pub inner: StrongWidget,
}
impl Widget for Pad {
+2 -2
View File
@@ -1,7 +1,7 @@
use crate::prelude::*;
pub struct Scroll {
inner: WidgetHandle,
inner: StrongWidget,
axis: Axis,
amt: f32,
snap_end: bool,
@@ -41,7 +41,7 @@ impl Widget for Scroll {
}
impl Scroll {
pub fn new(inner: WidgetHandle, axis: Axis) -> Self {
pub fn new(inner: StrongWidget, axis: Axis) -> Self {
Self {
inner,
axis,
+1 -1
View File
@@ -1,7 +1,7 @@
use crate::prelude::*;
pub struct Sized {
pub inner: WidgetHandle,
pub inner: StrongWidget,
pub x: Option<Len>,
pub y: Option<Len>,
}
+4 -4
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
+1 -1
View File
@@ -3,7 +3,7 @@ use std::marker::PhantomData;
use crate::prelude::*;
pub struct Stack {
pub children: Vec<WidgetHandle>,
pub children: Vec<StrongWidget>,
pub size: StackSize,
}