# XamlLightImpl

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

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

```rust
trait XamlLightImpl: FerroObjectImpl + $crate::Upcast<XamlLight>
```

The overridable members introduced by the class.

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

## Members

- [`get_id`](#function-get_id)
- [`on_connected`](#function-on_connected)
- [`on_disconnected`](#function-on_disconnected)

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

### get_id

```rust
fn get_id(this: &Self) -> String
```

`GetId`: the id the elements and brushes the light lights target.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/xaml_light.rs#L44)

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

### on_connected

```rust
fn on_connected(this: &Self, new_element: &Visual)
```

`OnConnected`: the light is in the `Lights` of `new_element`, which
is in a visual tree.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/xaml_light.rs#L44)

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

### on_disconnected

```rust
fn on_disconnected(this: &Self, old_element: &Visual)
```

`OnDisconnected`: the light left `old_element`, or the element
left its visual tree.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/xaml_light.rs#L44)

## Trait implementations

- [`XamlLightImpl`](/docs/0.5.0/api/ferroui-base/media/trait-xamllightimpl/)

## Availability

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