FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PropertyRegistry

    struct · ferroui-designer-tools · v0.5.0

    struct PropertyRegistry
    

    View source

    Members

    new

    fn new() -> Self
    

    Source

    built_in

    fn built_in() -> Self
    

    Source

    register

    fn register(self: &mut Self, owner: impl Into<String>, property: PropertyDescriptor) -> Option<PropertyDescriptor>
    

    Use "*" for common properties and "@PanelType" for child attached properties.

    Source

    descriptors

    fn descriptors(self: &Self, document: &Document, node: NodeId) -> Result<Vec<PropertyDescriptor>>
    

    Source

    state

    fn state(self: &Self, document: &Document, nodes: &[NodeId], property: &str) -> Result<PropertyState>
    

    Source

    plan

    fn plan(self: &Self, document: &Document, nodes: &[NodeId], property: &str, value: Option<&str>, policy: ExpressionPolicy) -> Result<Vec<Edit>>
    

    Source

    plan_with

    fn plan_with(self: &Self, document: &Document, nodes: &[NodeId], property: &str, value: Option<&str>, policy: ExpressionPolicy, editors: &EditorRegistry) -> Result<Vec<Edit>>
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • Default

    Availability

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