1 2 3 4 5 6 7 8 9
use zng_app_proc_macros::widget; #[widget($crate::tests::FooB)] pub struct Foo(crate::widget::base::WidgetBase); impl Foo { pub fn widget_build(&mut self) -> &'static str { "b" } }