# FerroObjectImpl

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/

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

```rust
trait FerroObjectImpl: ObjectType
```

The overridable members of [`FerroObject`](/docs/0.5.0/api/ferroui-base/struct-ferroobject/).

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

## Members

- [`constructed`](#function-constructed)
- [`on_property_changed_core`](#function-on_property_changed_core)
- [`on_property_changed`](#function-on_property_changed)
- [`update_data_validation`](#function-update_data_validation)

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

### constructed

```rust
fn constructed(this: &Self)
```

Called once, right after the object has been allocated. This is where
constructor logic that needs a reference to the object runs. Overrides
must call `parent_constructed` first.

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

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

### on_property_changed_core

```rust
fn on_property_changed_core(this: &Self, change: &FerroPropertyChangedEventArgs<'_>)
```

Called for every property change on the object, including changes of
non-effective (base) values. Overriding this is rarely needed; override
`on_property_changed` instead.

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

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

### on_property_changed

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

Called when the effective value of a property changes on the object.

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

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

### update_data_validation

```rust
fn update_data_validation(this: &Self, property: &'static FerroProperty, state: BindingValueType, error: Option<&BindingError>)
```

Called to update the validation state for properties for which data
validation is enabled.

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

## Trait implementations

- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)

## Availability

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