prelude and transform macro

This commit is contained in:
2025-07-29 19:42:56 +02:00
parent 26eb1679f6
commit 71660418a1
6 changed files with 40 additions and 9 deletions
+9
View File
@@ -16,6 +16,15 @@ pub mod style;
pub mod utils;
pub mod widget;
pub mod prelude {
pub use crate::{
elements::*, extensions::*, frontend::*, render_scope::*, state::*, style::*, utils::*,
widget::*, *,
};
pub use crate::style::{Dimension::{Full, Content}, Position::{Center, End}};
}
pub struct Screen {
pub widgets: Mutex<Vec<Arc<Widget>>>,
extensions: Mutex<Vec<Arc<Mutex<Box<dyn Extension + Send + Sync>>>>>,