FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FuncTemplateWithParam

    struct · ferroui-controls · v0.5.0

    struct FuncTemplateWithParam<TParam, TControl>
    

    Creates a control from a function taking a parameter and the name scope to register the named parts in.

    View source

    Members

    new

    fn new(func: impl Fn(&TParam, &NameScopeRef) -> TControl + 'static) -> Self
    

    Creates a template from the function used to create the control.

    Source

    build_with_name_scope

    fn build_with_name_scope(self: &Self, param: &TParam) -> (TControl, NameScopeRef)
    

    Creates the control together with the name scope passed to the function.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.