# TranslateTransform3D

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-media3d/struct-translatetransform3d/

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

```rust
struct TranslateTransform3D
```

WPF's `TranslateTransform3D`: a translation by `OffsetX`, `OffsetY` and `OffsetZ`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/transform_3d.rs#L132)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`offset_x_property`](#function-offset_x_property)
- [`offset_y_property`](#function-offset_y_property)
- [`offset_z_property`](#function-offset_z_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`with_offset`](#function-with_offset)
- [`with_offset_xyz`](#function-with_offset_xyz)
- [`offset_x`](#function-offset_x)
- [`set_offset_x`](#function-set_offset_x)
- [`offset_y`](#function-offset_y)
- [`set_offset_y`](#function-set_offset_y)
- [`offset_z`](#function-offset_z)
- [`set_offset_z`](#function-set_offset_z)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/transform_3d.rs#L136)

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<TranslateTransform3D>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/transform_3d.rs#L136)

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

### offset_x_property

```rust
fn offset_x_property() -> &'static StyledProperty<f64>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/transform_3d.rs#L163)

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

### offset_y_property

```rust
fn offset_y_property() -> &'static StyledProperty<f64>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/transform_3d.rs#L163)

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

### offset_z_property

```rust
fn offset_z_property() -> &'static StyledProperty<f64>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/transform_3d.rs#L163)

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

### construct

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

Creates the class data.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/transform_3d.rs#L177)

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

### new

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

A translation by nothing.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/transform_3d.rs#L182)

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

### with_offset

```rust
fn with_offset(offset: Vector3D) -> Ref<Self>
```

A translation by `offset`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/transform_3d.rs#L187)

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

### with_offset_xyz

```rust
fn with_offset_xyz(offset_x: f64, offset_y: f64, offset_z: f64) -> Ref<Self>
```

A translation by the three offsets.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/transform_3d.rs#L192)

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

### offset_x

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

The translation along the x axis.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/transform_3d.rs#L201)

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

### set_offset_x

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/transform_3d.rs#L205)

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

### offset_y

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

The translation along the y axis.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/transform_3d.rs#L210)

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

### set_offset_y

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/transform_3d.rs#L214)

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

### offset_z

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

The translation along the z axis.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/transform_3d.rs#L219)

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

### set_offset_z

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/transform_3d.rs#L223)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`Transform3DImplExt`](/docs/0.5.0/api/ferroui-media3d/trait-transform3dimplext/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<TranslateTransform3D>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`Transform3DImpl`](/docs/0.5.0/api/ferroui-media3d/trait-transform3dimpl/)

## Availability

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