FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MultiBinding

    struct · ferroui-base · v0.5.0

    struct MultiBinding
    

    A binding that aggregates multiple bindings through a converter.

    A binding is a mutable reference object: it is created with MultiBinding::new, configured property by property (or with the chaining with_* forms) and shared as Rc<MultiBinding>, which converts to Rc<dyn BindingBase>. Handles compare by identity. The properties, and the contents of the collection of child bindings, are read when the binding is instantiated on a target: changing them afterwards affects later instances only.

    View source

    Members

    snapshot_for_reload

    fn snapshot_for_reload(self: &Self) -> ::std::rc::Rc<Self>
    

    An independent description for a development transaction. Keep it only through preparation: explicit sources can own application objects.

    Source

    bindings

    fn bindings(self: &Self) -> FerroList<Rc<dyn BindingBase>>
    

    The collection of child bindings. The list is a shared handle: children are added to the list the getter returns.

    Source

    set_bindings

    fn set_bindings(self: &Self, value: FerroList<Rc<dyn BindingBase>>)
    

    Source

    with_bindings_list

    fn with_bindings_list(self: ::std::rc::Rc<Self>, value: FerroList<Rc<dyn BindingBase>>) -> ::std::rc::Rc<Self>
    

    The chaining form of the setter.

    Source

    converter

    fn converter(self: &Self) -> Option<Rc<dyn IMultiValueConverter>>
    

    The converter to use.

    Source

    set_converter

    fn set_converter(self: &Self, value: Option<Rc<dyn IMultiValueConverter>>)
    

    Source

    with_converter_value

    fn with_converter_value(self: ::std::rc::Rc<Self>, value: Option<Rc<dyn IMultiValueConverter>>) -> ::std::rc::Rc<Self>
    

    The chaining form of the setter.

    Source

    converter_culture

    fn converter_culture(self: &Self) -> Option<CultureInfo>
    

    The culture in which to evaluate the converter. None (the default) uses the current culture.

    Source

    set_converter_culture

    fn set_converter_culture(self: &Self, value: Option<CultureInfo>)
    

    Source

    with_converter_culture

    fn with_converter_culture(self: ::std::rc::Rc<Self>, value: Option<CultureInfo>) -> ::std::rc::Rc<Self>
    

    The chaining form of the setter.

    Source

    converter_parameter

    fn converter_parameter(self: &Self) -> Option<BoxedValue>
    

    A parameter to pass to the converter.

    Source

    set_converter_parameter

    fn set_converter_parameter(self: &Self, value: Option<BoxedValue>)
    

    Source

    with_converter_parameter

    fn with_converter_parameter(self: ::std::rc::Rc<Self>, value: Option<BoxedValue>) -> ::std::rc::Rc<Self>
    

    The chaining form of the setter.

    Source

    fallback_value

    fn fallback_value(self: &Self) -> Option<BoxedValue>
    

    The value to use when the binding is unable to produce a value; the unset marker for none.

    Source

    set_fallback_value

    fn set_fallback_value(self: &Self, value: Option<BoxedValue>)
    

    Source

    with_fallback_value

    fn with_fallback_value(self: ::std::rc::Rc<Self>, value: Option<BoxedValue>) -> ::std::rc::Rc<Self>
    

    The chaining form of the setter.

    Source

    mode

    fn mode(self: &Self) -> BindingMode
    

    The binding mode. Only one-time and one-way are supported.

    Source

    set_mode

    fn set_mode(self: &Self, value: BindingMode)
    

    Source

    with_mode

    fn with_mode(self: ::std::rc::Rc<Self>, value: BindingMode) -> ::std::rc::Rc<Self>
    

    The chaining form of the setter.

    Source

    priority

    fn priority(self: &Self) -> BindingPriority
    

    The binding priority.

    Source

    set_priority

    fn set_priority(self: &Self, value: BindingPriority)
    

    Source

    with_priority

    fn with_priority(self: ::std::rc::Rc<Self>, value: BindingPriority) -> ::std::rc::Rc<Self>
    

    The chaining form of the setter.

    Source

    relative_source

    fn relative_source(self: &Self) -> Option<Rc<RelativeSource>>
    

    The relative source for the binding.

    Source

    set_relative_source

    fn set_relative_source(self: &Self, value: Option<Rc<RelativeSource>>)
    

    Source

    with_relative_source

    fn with_relative_source(self: ::std::rc::Rc<Self>, value: Option<Rc<RelativeSource>>) -> ::std::rc::Rc<Self>
    

    The chaining form of the setter.

    Source

    string_format

    fn string_format(self: &Self) -> Option<String>
    

    The string format.

    Source

    set_string_format

    fn set_string_format(self: &Self, value: Option<String>)
    

    Source

    with_string_format

    fn with_string_format(self: ::std::rc::Rc<Self>, value: Option<String>) -> ::std::rc::Rc<Self>
    

    The chaining form of the setter.

    Source

    target_null_value

    fn target_null_value(self: &Self) -> Option<BoxedValue>
    

    The value to use when the binding produces null; the unset marker for none.

    Source

    set_target_null_value

    fn set_target_null_value(self: &Self, value: Option<BoxedValue>)
    

    Source

    with_target_null_value

    fn with_target_null_value(self: ::std::rc::Rc<Self>, value: Option<BoxedValue>) -> ::std::rc::Rc<Self>
    

    The chaining form of the setter.

    Source

    new

    fn new() -> Rc<Self>
    

    Creates a multi-binding without child bindings.

    Source

    with_bindings

    fn with_bindings(self: Rc<Self>, bindings: Vec<Rc<dyn BindingBase>>) -> Rc<Self>
    

    The chaining form of adding child bindings: replaces the contents of the collection of child bindings.

    Source

    with_converter

    fn with_converter(self: Rc<Self>, converter: Rc<dyn IMultiValueConverter>) -> Rc<Self>
    

    The chaining form of set_converter, for a converter.

    Source

    Trait implementations

    Availability

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