Function zng_wgt_layer::adorner_fn
source ยท pub fn adorner_fn(
child: impl UiNode,
adorner_fn: impl IntoVar<WidgetFn<()>>,
) -> impl UiNode
Expand description
P
Custom layered foreground generated using a WidgetFn<()>
.
If the adorner_fn
is not nil, the generated node is layered anchored to the widget inner bounds,
displaying like a foreground
that is not clipped by the widget and overlays all other widgets
and layers not placed above LayerIndex::ADORNER
.
The full context is captured for adorner widget so you can use context variables inside without issue.