narui_widgets 0.1.2

core widgets for the narui gui framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use narui_core::{layout::Transparent, *};
use narui_macros::widget;

#[widget]
pub fn fragment(children: Option<Fragment>, context: &mut WidgetContext) -> FragmentInner {
    FragmentInner::Node {
        children: children.into_iter().collect(),
        layout: Box::new(Transparent),
        is_clipper: false,
        subpass: None,
    }
}