# PropertyComponentsEditor

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer/struct-propertycomponentseditor/

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

```rust
struct PropertyComponentsEditor
```

A linked value or compact 2 × 2 editor for Margin, Padding, BorderThickness or
CornerRadius. All fields commit together on Enter; Escape restores the accepted value.
A linked edit deliberately sets every component and is also valid for mixed selections.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_controls.rs#L486)

## Members

- [`new`](#function-new)
- [`control`](#function-control)
- [`configure`](#function-configure)
- [`set_linked`](#function-set_linked)
- [`is_linked`](#function-is_linked)
- [`on_commit`](#function-on_commit)

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

### new

```rust
fn new(kind: PropertyComponentsKind, non_negative: bool) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_controls.rs#L492)

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

### control

```rust
fn control(self: &Self) -> Ref<Control>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_controls.rs#L604)

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

### configure

```rust
fn configure(self: &Self, value: Option<[f64; 4]>) -> Result<(), String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_controls.rs#L607)

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

### set_linked

```rust
fn set_linked(self: &Self, linked: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_controls.rs#L621)

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

### is_linked

```rust
fn is_linked(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_controls.rs#L626)

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

### on_commit

```rust
fn on_commit(self: &Self, callback: impl Fn([f64; 4]) -> () + 'static)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_controls.rs#L629)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Same`

## Availability

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