pub struct OwnedFerroPropertyChangedEventArgs { /* private fields */ }Expand description
A property change held by value
(FerroPropertyChangedEventArgs::to_owned_args): the object, the
property and copies of the values in their untyped form.
This is what the handler of the PropertyChanged event of an object
receives when it is attached from markup.
Implementations§
Source§impl OwnedFerroPropertyChangedEventArgs
impl OwnedFerroPropertyChangedEventArgs
Sourcepub fn sender(&self) -> Ref<FerroObject>
pub fn sender(&self) -> Ref<FerroObject>
The object that the property changed on.
Sourcepub fn property(&self) -> &'static FerroProperty
pub fn property(&self) -> &'static FerroProperty
The property that changed.
Sourcepub fn old_value(&self) -> Option<BoxedValue>
pub fn old_value(&self) -> Option<BoxedValue>
The old value of the property. Null when only the base value changed.
Sourcepub fn new_value(&self) -> Option<BoxedValue>
pub fn new_value(&self) -> Option<BoxedValue>
The new value of the property.
Sourcepub fn priority(&self) -> BindingPriority
pub fn priority(&self) -> BindingPriority
The priority of the binding that produced the value.
Sourcepub fn is_effective_value_change(&self) -> bool
pub fn is_effective_value_change(&self) -> bool
Whether the change represents a change to the effective value of the property (as opposed to a change of a lower-priority base value).
Trait Implementations§
Source§impl MarkupTyped for OwnedFerroPropertyChangedEventArgs
impl MarkupTyped for OwnedFerroPropertyChangedEventArgs
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Auto Trait Implementations§
impl !RefUnwindSafe for OwnedFerroPropertyChangedEventArgs
impl !Send for OwnedFerroPropertyChangedEventArgs
impl !Sync for OwnedFerroPropertyChangedEventArgs
impl !UnwindSafe for OwnedFerroPropertyChangedEventArgs
impl Freeze for OwnedFerroPropertyChangedEventArgs
impl Unpin for OwnedFerroPropertyChangedEventArgs
impl UnsafeUnpin for OwnedFerroPropertyChangedEventArgs
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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