FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Binding

    struct · ferroui-markup · v0.5.0

    struct Binding
    

    A binding with a string path, resolved at run time. This is the binding that markup creates when bindings are not compiled.

    The class derives from ReflectionBinding, whose properties it has. Like it, a binding is a mutable reference object shared as Rc<Binding>, which converts to Rc<dyn BindingBase>; handles compare by identity.

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    Creates a binding without a path: binds to the source itself.

    Source

    with_path

    fn with_path(path: &str) -> Rc<Self>
    

    Creates a binding with the given path.

    Source

    with_path_and_mode

    fn with_path_and_mode(path: &str, mode: BindingMode) -> Rc<Self>
    

    Creates a binding with the given path and mode.

    Source

    with_converter

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

    The chaining form of set_converter, for a converter.

    Source

    with_converter_value

    fn with_converter_value(self: Rc<Self>, value: Option<Rc<dyn IValueConverter>>) -> Rc<Self>
    

    The chaining form of the setter.

    Source

    with_converter_culture

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

    The chaining form of the setter.

    Source

    with_converter_parameter

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

    The chaining form of the setter.

    Source

    with_delay

    fn with_delay(self: Rc<Self>, value: i32) -> Rc<Self>
    

    The chaining form of the setter.

    Source

    with_element_name

    fn with_element_name(self: Rc<Self>, value: Option<String>) -> Rc<Self>
    

    The chaining form of the setter.

    Source

    with_fallback_value

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

    The chaining form of the setter.

    Source

    with_mode

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

    The chaining form of the setter.

    Source

    with_priority

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

    The chaining form of the setter.

    Source

    with_relative_source

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

    The chaining form of the setter.

    Source

    with_source

    fn with_source(self: Rc<Self>, value: Option<BoxedValue>) -> Rc<Self>
    

    The chaining form of the setter.

    Source

    with_string_format

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

    The chaining form of the setter.

    Source

    with_target_null_value

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

    The chaining form of the setter.

    Source

    with_update_source_trigger

    fn with_update_source_trigger(self: Rc<Self>, value: UpdateSourceTrigger) -> Rc<Self>
    

    The chaining form of the setter.

    Source

    with_type_resolver

    fn with_type_resolver(self: Rc<Self>, value: Option<TypeResolver>) -> Rc<Self>
    

    The chaining form of the setter.

    Source

    with_default_anchor

    fn with_default_anchor(self: Rc<Self>, value: Option<WeakRef<FerroObject>>) -> Rc<Self>
    

    The chaining form of the setter.

    Source

    with_name_scope

    fn with_name_scope(self: Rc<Self>, value: Option<Weak<dyn INameScope>>) -> Rc<Self>
    

    The chaining form of the setter.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Receiver
    • Any
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Default
    • PartialEq
    • Deref
    • BindingBase

    Availability

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