I forgot why I did it the other way lol (revert)
This commit is contained in:
@@ -2,7 +2,7 @@ use crate::{Painter, Ui, WidgetId, WidgetIdFnRet};
|
||||
use std::{any::Any, marker::PhantomData};
|
||||
|
||||
pub trait Widget<Ctx>: Any {
|
||||
fn draw(&self, painter: Painter<Ctx>);
|
||||
fn draw(&self, painter: &mut Painter<Ctx>);
|
||||
}
|
||||
|
||||
pub struct WidgetTag;
|
||||
|
||||
Reference in New Issue
Block a user