# RotateTransform

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

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

```rust
struct RotateTransform
```

Rotates a visual.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`angle_property`](#function-angle_property)
- [`center_x_property`](#function-center_x_property)
- [`center_y_property`](#function-center_y_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`with_angle`](#function-with_angle)
- [`with_angle_and_center`](#function-with_angle_and_center)
- [`angle`](#function-angle)
- [`set_angle`](#function-set_angle)
- [`center_x`](#function-center_x)
- [`set_center_x`](#function-set_center_x)
- [`center_y`](#function-center_y)
- [`set_center_y`](#function-set_center_y)

<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.Base/media/rotate_transform.rs#L14)

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

### to_ref

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

Returns a strong reference to this object.

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

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

### angle_property

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



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

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

### center_x_property

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



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

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

### center_y_property

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



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

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

### construct

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

Creates the class data.

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

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

### new

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



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

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

### with_angle

```rust
fn with_angle(angle: f64) -> Ref<Self>
```

Creates a rotation of `angle` degrees.

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

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

### with_angle_and_center

```rust
fn with_angle_and_center(angle: f64, center_x: f64, center_y: f64) -> Ref<Self>
```

Creates a rotation of `angle` degrees around the given center.

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

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

### angle

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

The angle of rotation, in degrees.

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

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

### set_angle

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



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

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

### center_x

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

The x-coordinate of the rotation center point. The default is 0.

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

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

### set_center_x

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



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

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

### center_y

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

The y-coordinate of the rotation center point. The default is 0.

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

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

### set_center_y

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



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`TransformImplExt`](/docs/0.5.0/api/ferroui-base/media/trait-transformimplext/)
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `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`
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<RotateTransform>`](/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/)
- [`TransformImpl`](/docs/0.5.0/api/ferroui-base/media/trait-transformimpl/)

## Availability

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