pub struct ClassBindingManager;Expand description
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.
Implementations§
Source§impl ClassBindingManager
impl ClassBindingManager
Sourcepub fn bind(
target: &StyledElement,
class_name: &str,
source: &dyn BindingBase,
anchor: Option<&Ref<FerroObject>>,
) -> Rc<dyn BindingExpressionBase>
pub 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.
Sourcepub fn get_class_property(class_name: &str) -> &'static FerroProperty
pub fn get_class_property(class_name: &str) -> &'static FerroProperty
The intermediate property for the class class_name.
Sourcepub fn is_classes_binding_property(property: &FerroProperty) -> Option<&str>
pub 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§
Source§impl MarkupTyped for ClassBindingManager
impl MarkupTyped for ClassBindingManager
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Auto Trait Implementations§
impl Freeze for ClassBindingManager
impl RefUnwindSafe for ClassBindingManager
impl Send for ClassBindingManager
impl Sync for ClassBindingManager
impl Unpin for ClassBindingManager
impl UnsafeUnpin for ClassBindingManager
impl UnwindSafe for ClassBindingManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more