FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ResourceDefinitionEditor

    struct · ferroui-designer · v0.5.0

    struct ResourceDefinitionEditor
    

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    Source

    control

    fn control(self: &Self) -> Ref<Control>
    

    Source

    on_command

    fn on_command(self: &Self, callback: impl Fn(DefinitionEditorCommand) -> Result<(), String> + 'static)
    

    Source

    show_error

    fn show_error(self: &Self, error: Option<&str>)
    

    Source

    configure

    fn configure(self: &Rc<Self>, model: ResourceDefinitionModel)
    

    Source

    configure_create

    fn configure_create(self: &Rc<Self>, owners: Vec<(NodeId, String)>, writable: bool)
    

    Source

    configure_external

    fn configure_external(self: &Rc<Self>, title: &str, kind: ComponentKind, origin: Option<&str>, source: &str, owners: Vec<(NodeId, String)>, writable: bool)
    

    Registered library sources are immutable. Copying creates an authored resource in the active document; the provider's original source is never rewritten.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Same

    Availability

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