FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FuncControlTemplate

    struct · ferroui-controls · v0.5.0

    struct FuncControlTemplate
    

    A template for a TemplatedControl.

    View source

    Members

    new

    fn new(build: impl Fn(&Ref<TemplatedControl>, &NameScopeRef) -> Ref<Control> + 'static) -> Rc<Self>
    

    Creates a control template from the function used to create the control tree for a templated control.

    Source

    for_type

    fn for_type<T: ObjectType + Upcast<TemplatedControl>>(build: impl Fn(&Ref<T>, &NameScopeRef) -> Ref<Control> + 'static) -> Rc<Self>
    

    Creates a control template for templated controls of class T.

    Panics when applied to a control of another class.

    Source

    Trait implementations

    Availability

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