FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PropValue

    enum · ferroui-view · v0.5.0

    enum PropValue
    

    The value an element gives a property.

    View source

    Members

    Value

    Value(ferroui_base::BoxedValue)
    

    A value, set once. Values compare by value.

    Source

    Dynamic

    Dynamic(std::rc::Rc<dyn Fn() -> ferroui_base::BoxedValue>)
    

    A value computed by a reactive closure: the property is set again whenever what the closure read changes.

    Source

    Follows

    Follows { source: u64, compute: std::rc::Rc<dyn Fn() -> ferroui_base::BoxedValue> }
    

    A value that follows a signal or a memo: as Dynamic, and equal to another that follows the same source, so that a component that runs again does not start it again.

    Source

    TwoWay

    TwoWay { get: std::rc::Rc<dyn Fn() -> ferroui_base::BoxedValue>, set: std::rc::Rc<dyn Fn(&dyn Any) -> ()>, source: Option<u64> }
    

    A value that goes both ways: the property follows get, and a change of the property is given to set.

    Source

    Element

    Element(std::rc::Rc<std::cell::RefCell<Option<Element>>>)
    

    An element, mounted with its parent: the property holds its control (Content, Tag, a header).

    Source

    Binding

    Binding(std::rc::Rc<dyn BindingBase>)
    

    A binding of the property system (Binding, a path on the data context, a compiled binding).

    Source

    TypedElement

    TypedElement { element: std::rc::Rc<std::cell::RefCell<Option<Element>>>, wrap: fn(Option<ferroui_base::Ref<ferroui_controls::Control>>) -> ferroui_base::BoxedValue }
    

    An element, mounted with its parent, for a property that holds a control of a class (context_menu): wrap makes the value of the property from the control.

    Source

    Trait implementations

    Availability

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