macro goodness
This commit is contained in:
@@ -19,6 +19,7 @@ mod orientation;
|
||||
mod painter;
|
||||
mod primitive;
|
||||
mod render;
|
||||
mod state;
|
||||
mod ui;
|
||||
mod widget;
|
||||
|
||||
|
||||
8
core/src/state.rs
Normal file
8
core/src/state.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
#[macro_export]
|
||||
macro_rules! core_state {
|
||||
($vis: vis $state: ty) => {
|
||||
$vis type WidgetHandle<W = dyn Widget<$state>> = $crate::WidgetHandle<$state, W>;
|
||||
$vis type WidgetRef<W = dyn Widget<$state>> = $crate::WidgetRef<$state, W>;
|
||||
$vis type Ui = $crate::Ui<$state>;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user