initial text impl
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user