# MarginMultiplierConverter

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/converters/struct-marginmultiplierconverter/

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

```rust
struct MarginMultiplierConverter
```

Converts a depth (a number of levels, or a thickness) to a margin by
multiplying it with an indent on the chosen sides.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/converters/margin_multiplier_converter.rs#L12)

## Members

- [`new`](#function-new)
- [`indent`](#function-indent)
- [`set_indent`](#function-set_indent)
- [`left`](#function-left)
- [`set_left`](#function-set_left)
- [`top`](#function-top)
- [`set_top`](#function-set_top)
- [`right`](#function-right)
- [`set_right`](#function-set_right)
- [`bottom`](#function-bottom)
- [`set_bottom`](#function-set_bottom)

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

### new

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/converters/margin_multiplier_converter.rs#L21)

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

### indent

```rust
fn indent(self: &Self) -> f64
```

The indent per level.

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

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

### set_indent

```rust
fn set_indent(self: &Self, value: f64)
```



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

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

### left

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

Whether the left side of the margin is indented.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/converters/margin_multiplier_converter.rs#L35)

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

### set_left

```rust
fn set_left(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/converters/margin_multiplier_converter.rs#L39)

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

### top

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

Whether the top side of the margin is indented.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/converters/margin_multiplier_converter.rs#L44)

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

### set_top

```rust
fn set_top(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/converters/margin_multiplier_converter.rs#L48)

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

### right

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

Whether the right side of the margin is indented.

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

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

### set_right

```rust
fn set_right(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/converters/margin_multiplier_converter.rs#L57)

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

### bottom

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

Whether the bottom side of the margin is indented.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/converters/margin_multiplier_converter.rs#L62)

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

### set_bottom

```rust
fn set_bottom(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/converters/margin_multiplier_converter.rs#L66)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Default`
- [`IValueConverter`](/docs/0.5.0/api/ferroui-base/data/converters/trait-ivalueconverter/)
- `PartialEq`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- [`ValueTypeRegistration`](/docs/0.5.0/api/ferroui-base/data/core/trait-valuetyperegistration/)

## Availability

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