# DataLayout

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/transformation/struct-datalayout/

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

```rust
struct DataLayout
```

The parameters of a [`TransformOperation`](/docs/0.5.0/api/ferroui-base/media/transformation/struct-transformoperation/).

The skew, scale, translation and rotation views share the same storage:
the first component holds `x` (or the rotation angle) and the second `y`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/transformation/transform_operation.rs#L49)

## Members

- [`skew`](#function-skew)
- [`set_skew`](#function-set_skew)
- [`scale`](#function-scale)
- [`set_scale`](#function-set_scale)
- [`translate`](#function-translate)
- [`set_translate`](#function-set_translate)
- [`rotate`](#function-rotate)
- [`set_rotate`](#function-set_rotate)

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

### skew

```rust
fn skew(self: &Self) -> SkewLayout
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/transformation/transform_operation.rs#L56)

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

### set_skew

```rust
fn set_skew(self: &mut Self, x: f64, y: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/transformation/transform_operation.rs#L61)

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

### scale

```rust
fn scale(self: &Self) -> ScaleLayout
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/transformation/transform_operation.rs#L67)

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

### set_scale

```rust
fn set_scale(self: &mut Self, x: f64, y: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/transformation/transform_operation.rs#L72)

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

### translate

```rust
fn translate(self: &Self) -> TranslateLayout
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/transformation/transform_operation.rs#L78)

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

### set_translate

```rust
fn set_translate(self: &mut Self, x: f64, y: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/transformation/transform_operation.rs#L83)

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

### rotate

```rust
fn rotate(self: &Self) -> RotateLayout
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/transformation/transform_operation.rs#L89)

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

### set_rotate

```rust
fn set_rotate(self: &mut Self, angle: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/transformation/transform_operation.rs#L94)

## Trait implementations

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

## Availability

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