# RequestBringIntoViewEventArgs

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/struct-requestbringintovieweventargs/

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

```rust
struct RequestBringIntoViewEventArgs
```

Provides data for the `RequestBringIntoView` event.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/request_bring_into_view_event_args.rs#L9)

## Members

- [`target_object`](#struct_field-target_object)
- [`new`](#function-new)
- [`with_event`](#function-with_event)
- [`target_rect`](#function-target_rect)
- [`set_target_rect`](#function-set_target_rect)

<a id="struct_field-target_object"></a>

### target_object

```rust
target_object: Option<ferroui_base::Ref<ferroui_base::Visual>>
```

The target object that should be brought into view.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/request_bring_into_view_event_args.rs#L12)

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

### new

```rust
fn new() -> Self
```

Creates args with no routed event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/request_bring_into_view_event_args.rs#L20)

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

### with_event

```rust
fn with_event<T: ?Sized>(routed_event: &RoutedEvent<T>) -> Self
```

Creates args for a routed event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/request_bring_into_view_event_args.rs#L25)

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

### target_rect

```rust
fn target_rect(self: &Self) -> Rect
```

The rectangle in the target object's coordinate space that should be
brought into view.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/request_bring_into_view_event_args.rs#L31)

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

### set_target_rect

```rust
fn set_target_rect(self: &Self, value: Rect)
```

Sets the rectangle in the target object's coordinate space that should
be brought into view. Handlers may adjust it while the event routes.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/request_bring_into_view_event_args.rs#L37)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ToOwned`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- `Clone`
- `Default`
- `Deref`
- [`IRoutedEventArgs`](/docs/0.5.0/api/ferroui-base/interactivity/trait-iroutedeventargs/)

## Availability

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