# PropertyVectorEditor

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

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

```rust
struct PropertyVectorEditor
```

Labeled Point/Size/Vector/Rect/Matrix and relative-value editor. Enter commits all
components once. Mixed fields remain empty until every component has been supplied.

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

## Members

- [`new`](#function-new)
- [`control`](#function-control)
- [`fields`](#function-fields)
- [`units`](#function-units)

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

### new

```rust
fn new(context: &PropertyEditorContext, metadata: &PropertyEditorMetadata, shape: PropertyValueShape) -> Self
```



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

<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_typed_editors.rs#L253)

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

### fields

```rust
fn fields(self: &Self) -> &[Ref<TextBox>]
```



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

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

### units

```rust
fn units(self: &Self) -> Option<Ref<ComboBox>>
```



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

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