# PaintStyle

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

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

```rust
struct PaintStyle
```



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

## Members

- [`fill`](#struct_field-fill)
- [`stroke`](#struct_field-stroke)
- [`fill_brush`](#struct_field-fill_brush)
- [`stroke_brush`](#struct_field-stroke_brush)
- [`brush_space`](#struct_field-brush_space)
- [`stroke_width`](#struct_field-stroke_width)
- [`stroke_cap`](#struct_field-stroke_cap)
- [`stroke_join`](#struct_field-stroke_join)
- [`stroke_miter`](#struct_field-stroke_miter)
- [`opacity`](#struct_field-opacity)
- [`dashes`](#struct_field-dashes)
- [`dash_offset`](#struct_field-dash_offset)
- [`fill`](#function-fill)
- [`stroke`](#function-stroke)

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

### fill

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



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

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

### stroke

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



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

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

### fill_brush

```rust
fill_brush: Option<std::rc::Rc<dyn IBrush>>
```

Native brushes override the corresponding color convenience value.

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

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

### stroke_brush

```rust
stroke_brush: Option<std::rc::Rc<dyn IBrush>>
```



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

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

### brush_space

```rust
brush_space: crate::paint::BrushSpace
```



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

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

### stroke_width

```rust
stroke_width: f64
```



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

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

### stroke_cap

```rust
stroke_cap: ferroui_base::media::PenLineCap
```



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

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

### stroke_join

```rust
stroke_join: ferroui_base::media::PenLineJoin
```



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

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

### stroke_miter

```rust
stroke_miter: f64
```



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

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

### opacity

```rust
opacity: f64
```



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

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

### dashes

```rust
dashes: Vec<f64>
```

Absolute device-independent lengths, matching source DashEffect.

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

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

### dash_offset

```rust
dash_offset: f64
```



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

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

### fill

```rust
fn fill(color: Color) -> Self
```



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

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

### stroke

```rust
fn stroke(color: Color, width: f64) -> Self
```



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

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