stack & padding fix sorta, preparing for scroll areas

This commit is contained in:
2025-09-25 19:59:18 -04:00
parent 273a92d1f7
commit 6d829dbe81
10 changed files with 151 additions and 45 deletions

View File

@@ -5,7 +5,7 @@ use std::{any::Any, marker::PhantomData};
pub trait Widget: Any {
fn draw(&mut self, painter: &mut Painter);
fn desired_size(&mut self, _: &mut SizeCtx) -> UiVec2 {
UiVec2::max_size()
UiVec2::MAX_SIZE
}
}
@@ -76,7 +76,7 @@ impl<const LEN: usize, Ws> WidgetArr<LEN, Ws> {
}
pub struct ArrTag;
pub trait WidgetArrLike<const LEN: usize, Tags> {
pub trait WidgetArrLike<const LEN: usize, Tag> {
type Ws;
fn ui(self, ui: &mut Ui) -> WidgetArr<LEN, Self::Ws>;
}