# InkToolbarPenConfigurationControl

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

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

```rust
struct InkToolbarPenConfigurationControl
```



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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`pen_button_property`](#function-pen_button_property)
- [`border_brush_property`](#function-border_brush_property)
- [`border_thickness_property`](#function-border_thickness_property)
- [`corner_radius_property`](#function-corner_radius_property)
- [`background_sizing_property`](#function-background_sizing_property)
- [`padding_property`](#function-padding_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`for_pen`](#function-for_pen)
- [`pen_button`](#function-pen_button)
- [`border_brush`](#function-border_brush)
- [`set_border_brush`](#function-set_border_brush)
- [`border_thickness`](#function-border_thickness)
- [`set_border_thickness`](#function-set_border_thickness)
- [`corner_radius`](#function-corner_radius)
- [`set_corner_radius`](#function-set_corner_radius)
- [`background_sizing`](#function-background_sizing)
- [`set_background_sizing`](#function-set_background_sizing)
- [`padding`](#function-padding)
- [`set_padding`](#function-set_padding)
- [`stroke_width_slider`](#function-stroke_width_slider)
- [`stroke_preview`](#function-stroke_preview)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

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

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<InkToolbarPenConfigurationControl>
```

Returns a strong reference to this object.

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

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

### pen_button_property

```rust
fn pen_button_property() -> &'static DirectProperty<InkToolbarPenConfigurationControl, Option<Ref<InkToolbarPenButton>>>
```



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

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

### border_brush_property

```rust
fn border_brush_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
```



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

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

### border_thickness_property

```rust
fn border_thickness_property() -> &'static StyledProperty<Thickness>
```



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

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

### corner_radius_property

```rust
fn corner_radius_property() -> &'static StyledProperty<CornerRadius>
```



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

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

### background_sizing_property

```rust
fn background_sizing_property() -> &'static StyledProperty<BackgroundSizing>
```



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

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

### padding_property

```rust
fn padding_property() -> &'static StyledProperty<Thickness>
```



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

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

### construct

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



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

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

### new

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



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

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

### for_pen

```rust
fn for_pen(pen: &InkToolbarPenButton) -> Ref<Self>
```



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

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

### pen_button

```rust
fn pen_button(self: &Self) -> Option<Ref<InkToolbarPenButton>>
```



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

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

### border_brush

```rust
fn border_brush(self: &Self) -> Option<Rc<dyn IBrush>>
```



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

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

### set_border_brush

```rust
fn set_border_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
```



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

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

### border_thickness

```rust
fn border_thickness(self: &Self) -> Thickness
```



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

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

### set_border_thickness

```rust
fn set_border_thickness(self: &Self, value: Thickness)
```



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

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

### corner_radius

```rust
fn corner_radius(self: &Self) -> CornerRadius
```



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

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

### set_corner_radius

```rust
fn set_corner_radius(self: &Self, value: CornerRadius)
```



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

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

### background_sizing

```rust
fn background_sizing(self: &Self) -> BackgroundSizing
```



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

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

### set_background_sizing

```rust
fn set_background_sizing(self: &Self, value: BackgroundSizing)
```



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

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

### padding

```rust
fn padding(self: &Self) -> Thickness
```



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

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

### set_padding

```rust
fn set_padding(self: &Self, value: Thickness)
```



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

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

### stroke_width_slider

```rust
fn stroke_width_slider(self: &Self) -> Option<Ref<InkToolbarStrokeWidthSlider>>
```



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

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

### stroke_preview

```rust
fn stroke_preview(self: &Self) -> Option<Ref<Path>>
```

The sample stroke, rendered with the active pen's drawing attributes.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`InputElementImplExt`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimplext/)
- [`InteractiveImplExt`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimplext/)
- [`LayoutableImplExt`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimplext/)
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`StyledElementImplExt`](/docs/0.5.0/api/ferroui-base/trait-styledelementimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- [`VisualImplExt`](/docs/0.5.0/api/ferroui-base/trait-visualimplext/)
- `ErasedDestructor`
- `IntoEither`
- [`ControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-controlimplext/)
- [`PanelImplExt`](/docs/0.5.0/api/ferroui-controls/trait-panelimplext/)
- [`StackPanelImplExt`](/docs/0.5.0/api/ferroui-controls/trait-stackpanelimplext/)
- `IUnknownImpl`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<InkToolbarPenConfigurationControl>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`InteractiveImpl`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- [`PanelImpl`](/docs/0.5.0/api/ferroui-controls/trait-panelimpl/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)
- [`StackPanelImpl`](/docs/0.5.0/api/ferroui-controls/trait-stackpanelimpl/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- `Drop`

## Availability

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