Function zng_wgt_fill::foreground_fn

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

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

This is the equivalent of setting foreground 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 foreground nodes instead of moving the node to the last widget.