FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ClassBindingManager

    struct · ferroui-base · v0.5.0

    struct ClassBindingManager
    

    Implements bindings to individual style classes of an element (Classes.name="{Binding ...}"): each class gets an intermediate boolean property whose value adds or removes the class.

    View source

    Members

    bind

    fn bind(target: &StyledElement, class_name: &str, source: &dyn BindingBase, anchor: Option<&Ref<FerroObject>>) -> Rc<dyn BindingExpressionBase>
    

    Binds the presence of the class class_name on target to source.

    Source

    get_class_property

    fn get_class_property(class_name: &str) -> &'static FerroProperty
    

    The intermediate property for the class class_name.

    Source

    is_classes_binding_property

    fn is_classes_binding_property(property: &FerroProperty) -> Option<&str>
    

    Whether property is the intermediate property of a class binding; if so, returns the class name.

    Source

    Trait implementations

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

    Availability

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