FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RotateTransform

    struct · ferroui-base · v0.5.0

    struct RotateTransform
    

    Rotates a visual.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

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

    Returns a strong reference to this object.

    Source

    angle_property

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

    Source

    center_x_property

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

    Source

    center_y_property

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

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    with_angle

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

    Creates a rotation of angle degrees.

    Source

    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.

    Source

    angle

    fn angle(self: &Self) -> f64
    

    The angle of rotation, in degrees.

    Source

    set_angle

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

    Source

    center_x

    fn center_x(self: &Self) -> f64
    

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

    Source

    set_center_x

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

    Source

    center_y

    fn center_y(self: &Self) -> f64
    

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

    Source

    set_center_y

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

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.