# Primitive

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

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

```rust
struct Primitive
```



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

## Members

- [`geometry`](#struct_field-geometry)
- [`style`](#struct_field-style)
- [`clip`](#struct_field-clip)
- [`id`](#struct_field-id)
- [`entity_key`](#struct_field-entity_key)
- [`new`](#function-new)
- [`clipped`](#function-clipped)
- [`identified`](#function-identified)

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

### geometry

```rust
geometry: Geometry
```



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

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

### style

```rust
style: PaintStyle
```



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

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

### clip

```rust
clip: Option<ferroui_base::Rect>
```



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

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

### id

```rust
id: Option<PointId>
```



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

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

### entity_key

```rust
entity_key: Option<(u64, u64)>
```

Stable host entity identity. This survives index changes and distinguishes
an exiting point from its replacement at the same event-facing PointId.

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

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

### new

```rust
fn new(geometry: Geometry, style: PaintStyle) -> Self
```



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

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

### clipped

```rust
fn clipped(self: Self, clip: Rect) -> Self
```



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

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

### identified

```rust
fn identified(self: Self, id: PointId) -> Self
```



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

## 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/).
