Function zng::widget::background_fn

source ยท
pub fn background_fn(
    child: impl UiNode,
    wgt_fn: impl IntoVar<WidgetFn<()>>,
) -> impl UiNode
Expand description

P Custom background generated using a WidgetFn<()>.

This is the equivalent of setting background to the presenter node, but if the property is set in a style that is used by multiple widgets at the same time the wgt_fn will be called for each widget to create duplicates of the background nodes instead of moving the node to the last widget.