Function zng_wgt_style::with_style_fn

source ยท
pub fn with_style_fn(
    child: impl UiNode,
    style_context: ContextVar<StyleFn>,
    style: impl IntoVar<StyleFn>,
) -> impl UiNode
Expand description

Helper for declaring the style_fn property.

The impl_style_fn! macro uses this function as the implementation of style_fn.