# FerroObject

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/struct-ferroobject/

**struct** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
struct FerroObject
```

An object with [`FerroProperty`](/docs/0.5.0/api/ferroui-base/struct-ferroproperty/) support: the root of the class hierarchy.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L32)

## Members

- [`TYPE`](#assoc_const-type)
- [`construct`](#function-construct)
- [`dispatcher`](#function-dispatcher)
- [`check_access`](#function-check_access)
- [`verify_access`](#function-verify_access)
- [`new`](#function-new)
- [`to_ref`](#function-to_ref)
- [`to_weak`](#function-to_weak)
- [`get_type`](#function-get_type)
- [`is`](#function-is)
- [`downcast_ref`](#function-downcast_ref)
- [`on_property_changed`](#function-on_property_changed)
- [`inheritance_parent`](#function-inheritance_parent)
- [`set_inheritance_parent`](#function-set_inheritance_parent)
- [`local_write_version`](#function-local_write_version)
- [`local_assignment_version`](#function-local_assignment_version)
- [`clear_value`](#function-clear_value)
- [`get_value`](#function-get_value)
- [`with_value`](#function-with_value)
- [`get_base_value`](#function-get_base_value)
- [`is_animating`](#function-is_animating)
- [`is_set`](#function-is_set)
- [`has_local_value_binding`](#function-has_local_value_binding)
- [`set_value`](#function-set_value)
- [`set_value_with_priority`](#function-set_value_with_priority)
- [`set_current_value`](#function-set_current_value)
- [`bind_binding`](#function-bind_binding)
- [`bind_binding_with_anchor`](#function-bind_binding_with_anchor)
- [`bind_binding_with_priority`](#function-bind_binding_with_priority)
- [`indexer`](#function-indexer)
- [`bind_indexer`](#function-bind_indexer)
- [`bind`](#function-bind)
- [`bind_value`](#function-bind_value)
- [`bind_untyped`](#function-bind_untyped)
- [`coerce_value`](#function-coerce_value)
- [`get_direct_value`](#function-get_direct_value)
- [`set_direct_value`](#function-set_direct_value)
- [`clear_direct_value`](#function-clear_direct_value)
- [`bind_direct`](#function-bind_direct)
- [`bind_direct_value`](#function-bind_direct_value)
- [`bind_direct_untyped`](#function-bind_direct_untyped)
- [`set_and_raise`](#function-set_and_raise)
- [`set_and_raise_cell`](#function-set_and_raise_cell)
- [`get_value_untyped`](#function-get_value_untyped)
- [`set_value_untyped`](#function-set_value_untyped)
- [`set_current_value_untyped`](#function-set_current_value_untyped)
- [`clear_value_untyped`](#function-clear_value_untyped)
- [`bind_property_untyped`](#function-bind_property_untyped)
- [`property_changed`](#function-property_changed)
- [`add_property_changed_handler`](#function-add_property_changed_handler)
- [`remove_property_changed_handler`](#function-remove_property_changed_handler)
- [`property_changed_subscriber_count`](#function-property_changed_subscriber_count)
- [`raise_property_changed`](#function-raise_property_changed)
- [`raise_direct_property_changed`](#function-raise_direct_property_changed)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L245)

<a id="function-construct"></a>

### construct

```rust
fn construct() -> FerroObject
```

Creates the class data. Use from the `construct` function of a derived
class; the object becomes usable once passed to
`instantiate`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L250)

<a id="function-dispatcher"></a>

### dispatcher

```rust
fn dispatcher(self: &Self) -> &Arc<Dispatcher>
```

Returns the `Dispatcher` that this object is associated with: the
dispatcher of the thread that owns the object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L265)

<a id="function-check_access"></a>

### check_access

```rust
fn check_access(self: &Self) -> bool
```

Returns whether the calling thread is the thread that owns this
object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L274)

<a id="function-verify_access"></a>

### verify_access

```rust
fn verify_access(self: &Self)
```

Checks that the calling thread is the thread that owns this object.
## Panics
Panics when it is not.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L284)

<a id="function-new"></a>

### new

```rust
fn new() -> Ref<FerroObject>
```

Creates a plain object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L289)

<a id="function-to_ref"></a>

### to_ref

```rust
fn to_ref(self: &Self) -> Ref<FerroObject>
```

A strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L339)

<a id="function-to_weak"></a>

### to_weak

```rust
fn to_weak(self: &Self) -> WeakRef<FerroObject>
```

A weak reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L345)

<a id="function-get_type"></a>

### get_type

```rust
fn get_type(self: &Self) -> &'static TypeInfo
```

The runtime type of the object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L351)

<a id="function-is"></a>

### is

```rust
fn is<T: ObjectType>(self: &Self) -> bool
```

Whether the object is of class `T` or a class derived from it.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L360)

<a id="function-downcast_ref"></a>

### downcast_ref

```rust
fn downcast_ref<T: ObjectType>(self: &Self) -> Option<&T>
```

Returns the object viewed as class `T` if it is one.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L366)

<a id="function-on_property_changed"></a>

### on_property_changed

```rust
fn on_property_changed(self: &Self, change: &FerroPropertyChangedEventArgs<'_>)
```

Invokes the `on_property_changed` virtual member.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L397)

<a id="function-inheritance_parent"></a>

### inheritance_parent

```rust
fn inheritance_parent(self: &Self) -> Option<Ref<FerroObject>>
```

The parent object that inherited property values are inherited from.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L416)

<a id="function-set_inheritance_parent"></a>

### set_inheritance_parent

```rust
fn set_inheritance_parent(self: &Self, value: impl Into<Nullable<FerroObject>>)
```

Sets the parent object that inherited property values are inherited
from.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L428)

<a id="function-local_write_version"></a>

### local_write_version

```rust
fn local_write_version(self: &Self, property: &FerroProperty) -> u64
```

Starts tracking explicit local/current writes to this property and returns
its version. Equal-value writes count; style evaluation does not.
Tracking lives with this object and is available only in development builds.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L525)

<a id="function-local_assignment_version"></a>

### local_assignment_version

```rust
fn local_assignment_version(self: &Self, property: &FerroProperty) -> u64
```

Tracks explicit local assignments and binding-slot changes. Unlike
`local_write_version`, SetCurrentValue (for example two-way user input)
does not transfer assignment ownership.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L533)

<a id="function-clear_value"></a>

### clear_value

```rust
fn clear_value<T: PropertyValue>(self: &Self, property: &'static StyledProperty<T>)
```

Clears a property's local value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L538)

<a id="function-get_value"></a>

### get_value

```rust
fn get_value<T: PropertyValue>(self: &Self, property: &'static StyledProperty<T>) -> T
```

Gets a property value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L544)

<a id="function-with_value"></a>

### with_value

```rust
fn with_value<T: PropertyValue, R>(self: &Self, property: &'static StyledProperty<T>, read: impl FnOnce(&T) -> R) -> R
```

Reads a styled property's current value without cloning it. The callback
may read other properties, but must not change this property's effective
value while it is borrowed. Returning a reference to the value is not
permitted by the callback's lifetime.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L552)

<a id="function-get_base_value"></a>

### get_base_value

```rust
fn get_base_value<T: PropertyValue>(self: &Self, property: &'static StyledProperty<T>) -> Option<T>
```

Gets a property's base value: the value excluding animated values.
Returns `None` if the value comes from inheritance or the default.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L562)

<a id="function-is_animating"></a>

### is_animating

```rust
fn is_animating(self: &Self, property: &FerroProperty) -> bool
```

Checks whether a property is animating.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L567)

<a id="function-is_set"></a>

### is_set

```rust
fn is_set(self: &Self, property: &FerroProperty) -> bool
```

Checks whether a styled property has a value assigned to it or a
binding targeting it.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L573)

<a id="function-has_local_value_binding"></a>

### has_local_value_binding

```rust
fn has_local_value_binding(self: &Self, property: &FerroProperty) -> bool
```

Whether a local-value binding targets this property, including direct
properties and observable bindings. Unlike `is_set`, this does not rely
on a styled property's effective-value entry. It does not inspect bindings
at style/template priorities.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L581)

<a id="function-set_value"></a>

### set_value

```rust
fn set_value<T: PropertyValue>(self: &Self, property: &'static StyledProperty<T>, value: T)
```

Sets a property value with local value priority.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L587)

<a id="function-set_value_with_priority"></a>

### set_value_with_priority

```rust
fn set_value_with_priority<T: PropertyValue>(self: &Self, property: &'static StyledProperty<T>, value: T, priority: BindingPriority) -> Option<Rc<dyn IDisposable>>
```

Sets a property value with the given priority. For priorities other
than local value, disposing the returned handle removes the value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L599)

<a id="function-set_current_value"></a>

### set_current_value

```rust
fn set_current_value<T: PropertyValue>(self: &Self, property: &'static StyledProperty<T>, value: T)
```

Sets the value of a property without changing its value source.

This is used by a component that programmatically sets the value of
one of its own properties without disabling an application's declared
use of the property: the effective value changes, but existing
bindings and styles continue to work. The new value has the
property's current priority.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L625)

<a id="function-bind_binding"></a>

### bind_binding

```rust
fn bind_binding(self: &Self, property: &'static FerroProperty, binding: &dyn BindingBase) -> Rc<dyn BindingExpressionBase>
```

Binds a property to a binding. Returns the binding expression which
represents the binding instance on this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L635)

<a id="function-bind_binding_with_anchor"></a>

### bind_binding_with_anchor

```rust
fn bind_binding_with_anchor(self: &Self, property: &'static FerroProperty, binding: &dyn BindingBase, anchor: Option<&Ref<FerroObject>>) -> Rc<dyn BindingExpressionBase>
```

Binds a property to a binding.

Some bindings need context to locate their source: a data context,
named elements or resources. If this object is not an element, or is
not yet attached to the tree, `anchor` provides that context.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L648)

<a id="function-bind_binding_with_priority"></a>

### bind_binding_with_priority

```rust
fn bind_binding_with_priority(self: &Self, property: &'static FerroProperty, binding: &dyn BindingBase, priority: BindingPriority, anchor: Option<&Ref<FerroObject>>) -> Rc<dyn BindingExpressionBase>
```

Binds a property to a binding at the given priority, whatever the
default priority of the binding is. Disposing the returned expression
removes the binding.

An addition (no upstream counterpart): the values of WinUI's visual
states are bound at `BindingPriority::Animation`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L665)

<a id="function-indexer"></a>

### indexer

```rust
fn indexer(self: &Self, binding: &crate::data::IndexerDescriptor) -> crate::data::IndexerBinding
```

Gets a binding to a property of this object: the indexer taking an
`IndexerDescriptor`
(`source[!Property]` is `source.indexer(&Property.bind())`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L681)

<a id="function-bind_indexer"></a>

### bind_indexer

```rust
fn bind_indexer(self: &Self, binding: &crate::data::IndexerDescriptor, value: &dyn BindingBase) -> Rc<dyn BindingExpressionBase>
```

Binds the property of an
`IndexerDescriptor` to a binding:
the setter of the indexer (`target[!Property] = binding` is
`target.bind_indexer(&Property.bind(), &binding)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L690)

<a id="function-bind"></a>

### bind

```rust
fn bind<T: PropertyValue>(self: &Self, property: &'static StyledProperty<T>, source: Rc<dyn IObservable<T>>, priority: BindingPriority) -> Rc<dyn IDisposable>
```

Binds a property to an observable.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L706)

<a id="function-bind_value"></a>

### bind_value

```rust
fn bind_value<T: PropertyValue>(self: &Self, property: &'static StyledProperty<T>, source: Rc<dyn IObservable<BindingValue<T>>>, priority: BindingPriority) -> Rc<dyn IDisposable>
```

Binds a property to an observable of binding values.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L719)

<a id="function-bind_untyped"></a>

### bind_untyped

```rust
fn bind_untyped<T: PropertyValue>(self: &Self, property: &'static StyledProperty<T>, source: Rc<dyn IObservable<BoxedValue>>, priority: BindingPriority) -> Rc<dyn IDisposable>
```

Binds a property to an observable of untyped values.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L732)

<a id="function-coerce_value"></a>

### coerce_value

```rust
fn coerce_value(self: &Self, property: &'static FerroProperty)
```

Coerces the specified property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L743)

<a id="function-get_direct_value"></a>

### get_direct_value

```rust
fn get_direct_value<T: PropertyValue>(self: &Self, property: &'static DirectPropertyBase<T>) -> T
```

Gets a direct property value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L750)

<a id="function-set_direct_value"></a>

### set_direct_value

```rust
fn set_direct_value<T: PropertyValue>(self: &Self, property: &'static DirectPropertyBase<T>, value: T)
```

Sets a direct property value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L756)

<a id="function-clear_direct_value"></a>

### clear_direct_value

```rust
fn clear_direct_value<T: PropertyValue>(self: &Self, property: &'static DirectPropertyBase<T>)
```

Resets a direct property to its unset value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L762)

<a id="function-bind_direct"></a>

### bind_direct

```rust
fn bind_direct<T: PropertyValue>(self: &Self, property: &'static DirectPropertyBase<T>, source: Rc<dyn IObservable<T>>) -> Rc<dyn IDisposable>
```

Binds a direct property to an observable.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L794)

<a id="function-bind_direct_value"></a>

### bind_direct_value

```rust
fn bind_direct_value<T: PropertyValue>(self: &Self, property: &'static DirectPropertyBase<T>, source: Rc<dyn IObservable<BindingValue<T>>>) -> Rc<dyn IDisposable>
```

Binds a direct property to an observable of binding values.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L804)

<a id="function-bind_direct_untyped"></a>

### bind_direct_untyped

```rust
fn bind_direct_untyped<T: PropertyValue>(self: &Self, property: &'static DirectPropertyBase<T>, source: Rc<dyn IObservable<BoxedValue>>) -> Rc<dyn IDisposable>
```

Binds a direct property to an observable of untyped values.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L814)

<a id="function-set_and_raise"></a>

### set_and_raise

```rust
fn set_and_raise<T: PropertyValue>(self: &Self, property: &'static DirectPropertyBase<T>, field: &RefCell<T>, value: T) -> bool
```

Sets the backing field of a direct property, raising a change
notification if the value changed. Returns true if it changed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L834)

<a id="function-set_and_raise_cell"></a>

### set_and_raise_cell

```rust
fn set_and_raise_cell<T: PropertyValue + Copy>(self: &Self, property: &'static DirectPropertyBase<T>, field: &Cell<T>, value: T) -> bool
```

`set_and_raise` for `Copy` values stored in a
`Cell`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L850)

<a id="function-get_value_untyped"></a>

### get_value_untyped

```rust
fn get_value_untyped(self: &Self, property: &'static FerroProperty) -> BoxedValue
```

Gets a property value as an untyped value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L868)

<a id="function-set_value_untyped"></a>

### set_value_untyped

```rust
fn set_value_untyped(self: &Self, property: &'static FerroProperty, value: &dyn Any, priority: BindingPriority) -> Option<Rc<dyn IDisposable>>
```

Sets a property from an untyped value, which must hold exactly the
property's value type or the unset marker.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L874)

<a id="function-set_current_value_untyped"></a>

### set_current_value_untyped

```rust
fn set_current_value_untyped(self: &Self, property: &'static FerroProperty, value: &dyn Any)
```

`set_current_value` with an untyped value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L884)

<a id="function-clear_value_untyped"></a>

### clear_value_untyped

```rust
fn clear_value_untyped(self: &Self, property: &'static FerroProperty)
```

Clears a property's local value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L889)

<a id="function-bind_property_untyped"></a>

### bind_property_untyped

```rust
fn bind_property_untyped(self: &Self, property: &'static FerroProperty, source: Rc<dyn IObservable<BoxedValue>>, priority: BindingPriority) -> Rc<dyn IDisposable>
```

Binds a property to an observable of untyped values.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L894)

<a id="function-property_changed"></a>

### property_changed

```rust
fn property_changed(self: &Self, handler: impl Fn(&FerroPropertyChangedEventArgs<'_>) -> () + 'static) -> Rc<dyn IDisposable>
```

Subscribes to property changes on this object. Disposing the returned
handle unsubscribes.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L907)

<a id="function-add_property_changed_handler"></a>

### add_property_changed_handler

```rust
fn add_property_changed_handler(self: &Self, handler: Rc<dyn Fn(&FerroPropertyChangedEventArgs<'_>) -> ()>) -> u64
```

Subscribes `handler` to property changes on this object and returns
the token that `remove_property_changed_handler`
takes: `property_changed` for a subscriber
that keeps the object and the token itself, so that no handle is made.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L924)

<a id="function-remove_property_changed_handler"></a>

### remove_property_changed_handler

```rust
fn remove_property_changed_handler(self: &Self, token: u64) -> bool
```

Ends a subscription of `add_property_changed_handler`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L929)

<a id="function-property_changed_subscriber_count"></a>

### property_changed_subscriber_count

```rust
fn property_changed_subscriber_count(self: &Self) -> usize
```

The number of subscribers to property changes on this object (a
diagnostics member, used by tests to verify that subscriptions are
released).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L936)

<a id="function-raise_property_changed"></a>

### raise_property_changed

```rust
fn raise_property_changed<T: PropertyValue>(self: &Self, property: &'static FerroProperty, old_value: Option<&T>, new_value: &T, priority: BindingPriority, is_effective_value: bool)
```

Raises a property changed notification.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L941)

<a id="function-raise_direct_property_changed"></a>

### raise_direct_property_changed

```rust
fn raise_direct_property_changed<T: PropertyValue>(self: &Self, property: &'static DirectPropertyBase<T>, old_value: &T, new_value: &T)
```

Raises a property changed notification for a direct property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_object.rs#L996)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`
- [`FerroObjectDiagnosticExtensions`](/docs/0.5.0/api/ferroui-base/diagnostics/trait-ferroobjectdiagnosticextensions/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`Upcast<FerroObject>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- `Debug`
- [`FerroObjectExtensions`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectextensions/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
