Rsx
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user