FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PropertyEditorFactory

    trait · ferroui-designer · v0.5.0

    trait PropertyEditorFactory
    

    Return a native control when this factory handles the property; otherwise let the next factory try. Hosts register factories in priority order on crate::DesignerWorkspace.

    View source

    Members

    create

    fn create(self: &Self, _context: &PropertyEditorContext) -> Option<Ref<Control>>
    

    Source

    create_with_metadata

    fn create_with_metadata(self: &Self, context: &PropertyEditorContext, _metadata: &PropertyEditorMetadata) -> Option<Ref<Control>>
    

    Metadata-aware factories can inspect real enum members, source origin, resource scope and an object draft. Existing factories continue to receive guarded values.

    Source

    Availability

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