Account status

This commit is contained in:
2026-07-15 10:23:51 +02:00
parent 42284ac748
commit 87b561693f
2 changed files with 36 additions and 19 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
use crate::{unit::Rect, widget::Widget};
pub struct Dynamic(pub fn(Rect) -> Box<dyn Widget>);
pub struct Dynamic<W: Widget>(pub fn(Rect) -> W);
impl Widget for Dynamic {
impl<W: Widget> Widget for Dynamic<W> {
fn render(&self, scope: &mut crate::render::RenderScope) {
(self.0)(scope.rect).render(scope);
}