# FerroView

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-android/struct-ferroview/

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

```rust
struct FerroView
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Android/FerroUI.Android/ferro_view.rs#L28)

## Members

- [`accessibility_virtual_view_id`](#function-accessibility_virtual_view_id)
- [`top_level`](#function-top_level)
- [`content`](#function-content)
- [`set_content`](#function-set_content)
- [`dispose`](#function-dispose)

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

### accessibility_virtual_view_id

```rust
fn accessibility_virtual_view_id(self: &Self, control: &Control) -> i32
```

The number of the virtual view that stands for a control in the
accessibility tree of the view: what the node provider of the Java
view (`View.getAccessibilityNodeProvider`) is asked for the node of
the control with. An addition of the port, for an application that
tests itself.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Android/FerroUI.Android/ferro_view.rs#L180)

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

### top_level

```rust
fn top_level(self: &Self) -> Option<Ref<TopLevel>>
```

The top-level of the view; `None` once the view is disposed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Android/FerroUI.Android/ferro_view.rs#L186)

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

### content

```rust
fn content(self: &Self) -> Option<BoxedValue>
```

The content of the view.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Android/FerroUI.Android/ferro_view.rs#L191)

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

### set_content

```rust
fn set_content(self: &Self, value: Option<BoxedValue>)
```

Sets the content of the view.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Android/FerroUI.Android/ferro_view.rs#L196)

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

### dispose

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

Releases the top-level of the view. The view cannot be used
afterwards.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Android/FerroUI.Android/ferro_view.rs#L205)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)

## Availability

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