# BoxModel

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-inspect/target/struct-boxmodel/

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

```rust
struct BoxModel
```

The layout boxes of a visual, in the coordinates of another one.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Inspect/lib.rs#L104)

## Members

- [`content`](#struct_field-content)
- [`padding`](#struct_field-padding)
- [`border`](#struct_field-border)
- [`margin`](#struct_field-margin)

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

### content

```rust
content: ferroui_base::Rect
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Inspect/lib.rs#L105)

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

### padding

```rust
padding: ferroui_base::Rect
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Inspect/lib.rs#L106)

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

### border

```rust
border: ferroui_base::Rect
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Inspect/lib.rs#L107)

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

### margin

```rust
margin: ferroui_base::Rect
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Inspect/lib.rs#L108)

## Trait implementations

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

## Availability

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