# InkDrawingAttributes

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-inking/struct-inkdrawingattributes/

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

```rust
struct InkDrawingAttributes
```

A value snapshot. Changing presenter defaults never mutates completed ink.
`size` describes the nib at full pressure, in device-independent pixels.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_drawing_attributes.rs#L22)

## Members

- [`color`](#struct_field-color)
- [`size`](#struct_field-size)
- [`pen_tip`](#struct_field-pen_tip)
- [`pen_tip_transform`](#struct_field-pen_tip_transform)
- [`draw_as_highlighter`](#struct_field-draw_as_highlighter)
- [`ignore_pressure`](#struct_field-ignore_pressure)
- [`fit_to_curve`](#struct_field-fit_to_curve)
- [`ignore_tilt`](#struct_field-ignore_tilt)
- [`kind`](#struct_field-kind)
- [`pencil_opacity`](#struct_field-pencil_opacity)
- [`new`](#function-new)
- [`create_for_pencil`](#function-create_for_pencil)
- [`validate`](#function-validate)

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

### color

```rust
color: ferroui_base::media::Color
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_drawing_attributes.rs#L23)

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

### size

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_drawing_attributes.rs#L24)

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

### pen_tip

```rust
pen_tip: PenTipShape
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_drawing_attributes.rs#L25)

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

### pen_tip_transform

```rust
pen_tip_transform: ferroui_base::Matrix
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_drawing_attributes.rs#L26)

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

### draw_as_highlighter

```rust
draw_as_highlighter: bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_drawing_attributes.rs#L27)

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

### ignore_pressure

```rust
ignore_pressure: bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_drawing_attributes.rs#L28)

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

### fit_to_curve

```rust
fit_to_curve: bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_drawing_attributes.rs#L29)

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

### ignore_tilt

```rust
ignore_tilt: bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_drawing_attributes.rs#L30)

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

### kind

```rust
kind: InkDrawingAttributesKind
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_drawing_attributes.rs#L31)

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

### pencil_opacity

```rust
pencil_opacity: f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_drawing_attributes.rs#L32)

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

### new

```rust
fn new() -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_drawing_attributes.rs#L53)

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

### create_for_pencil

```rust
fn create_for_pencil() -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_drawing_attributes.rs#L56)

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

### validate

```rust
fn validate(self: &Self) -> Result<(), InkError>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_drawing_attributes.rs#L64)

## 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`
- `IUnknownImpl`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Default`

## Availability

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