This commit is contained in:
2025-07-28 00:01:12 +02:00
parent cba301db74
commit d9c23f1f09
5 changed files with 99 additions and 18 deletions
+7
View File
@@ -10,6 +10,7 @@ use crate::{
pub mod dependency;
pub mod elements;
pub mod extensions;
pub mod frontend;
pub mod macros;
pub mod render_scope;
pub mod style;
@@ -46,6 +47,12 @@ impl Screen {
w
}
pub fn draw_widget(self: &Arc<Self>, w: Widget) -> Arc<Widget> {
let w = Arc::new(w);
self.widgets.lock().unwrap().push(w.clone());
w
}
pub fn extension<E: Extension + Send + Sync + 'static>(self: &Arc<Self>, ext: E) {
self.extensions
.lock()