FuncControlTemplate
struct · ferroui-controls · v0.5.0
struct FuncControlTemplate
A template for a TemplatedControl.
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.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherITemplateWithParam<Ref<TemplatedControl>, Option<TemplateResult<Ref<Control>>>>IControlTemplate
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.