RotateTransform
struct · ferroui-base · v0.5.0
struct RotateTransform
Rotates a visual.
Members
TYPEto_refangle_propertycenter_x_propertycenter_y_propertyconstructnewwith_anglewith_angle_and_centerangleset_anglecenter_xset_center_xcenter_yset_center_y
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<RotateTransform>
Returns a strong reference to this object.
angle_property
fn angle_property() -> &'static StyledProperty<f64>
center_x_property
fn center_x_property() -> &'static StyledProperty<f64>
center_y_property
fn center_y_property() -> &'static StyledProperty<f64>
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
with_angle
fn with_angle(angle: f64) -> Ref<Self>
Creates a rotation of angle degrees.
with_angle_and_center
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.
angle
fn angle(self: &Self) -> f64
The angle of rotation, in degrees.
set_angle
fn set_angle(self: &Self, value: f64)
center_x
fn center_x(self: &Self) -> f64
The x-coordinate of the rotation center point. The default is 0.
set_center_x
fn set_center_x(self: &Self, value: f64)
center_y
fn center_y(self: &Self) -> f64
The y-coordinate of the rotation center point. The default is 0.
set_center_y
fn set_center_y(self: &Self, value: f64)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTransformImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<RotateTransform>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplTransformImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.