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.
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.
get_class_property
fn get_class_property(class_name: &str) -> &'static FerroProperty
The intermediate property for the class class_name.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.