with_style_fn

Function with_style_fn 

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

Helper for declaring the style_fn property.

The impl_style_fn! and impl_named_style_fn! macros uses this function as the implementation of style_fn.