initial text impl

This commit is contained in:
iris committed 2025-08-23 21:15:39 -04:00
1 parent abcbc267b5
commit 5ce6fca275
33 files changed
+530 -117

No files matched your search

+3 -2
View File
@@ -1,4 +1,5 @@
use crate::{Painter, Ui, WidgetId, WidgetIdFnRet};
use crate::layout::{Painter, Ui, WidgetId, WidgetIdFnRet};
use std::{any::Any, marker::PhantomData};
pub trait Widget<Ctx>: Any {
@@ -33,7 +34,7 @@ pub trait WidgetLike<Ctx, Tag> {
/// currently a macro for rust analyzer (doesn't support trait aliases atm)
macro_rules! WidgetFnRet {
($W:ty, $Ctx:ty) => {
impl FnOnce(&mut $crate::Ui<$Ctx>) -> $W
impl FnOnce(&mut $crate::layout::Ui<$Ctx>) -> $W
};
}
pub(crate) use WidgetFnRet;