# Scene

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-livecharts/scene/struct-scene/

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

```rust
struct Scene
```

A complete frame in control-local device independent coordinates.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/scene.rs#L386)

## Members

- [`size`](#struct_field-size)
- [`plot_bounds`](#struct_field-plot_bounds)
- [`primitives`](#struct_field-primitives)
- [`hits`](#struct_field-hits)
- [`legend`](#struct_field-legend)
- [`entity_keys`](#struct_field-entity_keys)
- [`automatic_finding_strategy`](#struct_field-automatic_finding_strategy)
- [`new`](#function-new)
- [`hit_test`](#function-hit_test)
- [`translate`](#function-translate)

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

### size

```rust
size: ferroui_base::Size
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/scene.rs#L387)

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

### plot_bounds

```rust
plot_bounds: ferroui_base::Rect
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/scene.rs#L388)

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

### primitives

```rust
primitives: Vec<Primitive>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/scene.rs#L389)

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

### hits

```rust
hits: Vec<HitRegion>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/scene.rs#L390)

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

### legend

```rust
legend: Vec<LegendItem>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/scene.rs#L391)

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

### entity_keys

```rust
entity_keys: std::collections::HashMap<PointId, (u64, u64)>
```

Stable model identities supplied by a host. Event indexes stay in PointId;
transitions can follow the same model when a collection is reordered.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/scene.rs#L394)

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

### automatic_finding_strategy

```rust
automatic_finding_strategy: FindingStrategy
```

Resolved from the visible series by the engine, as in GetFindingStrategy.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/scene.rs#L396)

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

### new

```rust
fn new(size: Size, plot_bounds: Rect) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/scene.rs#L399)

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

### hit_test

```rust
fn hit_test(self: &Self, point: Point, strategy: FindingStrategy, tolerance: f64) -> Vec<&HitRegion>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/scene.rs#L410)

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

### translate

```rust
fn translate(self: &mut Self, offset: Point, output_size: Size) -> Result<(), ChartError>
```

Places an inner measurement in control coordinates, preserving geometry,
clipping, exact hit shapes, hover slots and stable entity identities.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/scene_transform.rs#L40)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`

## Availability

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