# Needle

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

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

```rust
struct Needle
```

The needle of an angular gauge (`NeedleVisual` with `NeedleGeometry`): a triangle from the
centre of the chart to 45% of its smaller side, pointing at `value` in the range of the
chart, over a circle of its half width at the centre.

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

## Members

- [`value`](#struct_field-value)
- [`width`](#struct_field-width)
- [`translate`](#struct_field-translate)
- [`fill`](#struct_field-fill)

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

### value

```rust
value: f64
```



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

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

### width

```rust
width: f64
```

The width of the base of the needle (`Width`, 20 in the theme).

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

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

### translate

```rust
translate: ferroui_base::Point
```

The offset of the needle (`Translate`).

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

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

### fill

```rust
fill: Option<ferroui_base::media::Color>
```

The paint of the needle (`Fill`); `None` draws none.

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

## 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`
- `Default`

## Availability

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