FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Rotate3DTransform

    struct · ferroui-base · v0.5.0

    struct Rotate3DTransform
    

    Non-affine 3D transformation for rotating a visual around a definable axis.

    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<Rotate3DTransform>
    

    Returns a strong reference to this object.

    Source

    angle_x_property

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

    Source

    angle_y_property

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

    Source

    angle_z_property

    fn angle_z_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

    center_z_property

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

    Source

    depth_property

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

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    with_values

    fn with_values(angle_x: f64, angle_y: f64, angle_z: f64, center_x: f64, center_y: f64, center_z: f64, depth: f64) -> Ref<Self>
    

    Creates a transform with the given rotation angles (in degrees), rotation center and depth.

    Source

    angle_x

    fn angle_x(self: &Self) -> f64
    

    The rotation around the X-axis, in degrees.

    Source

    set_angle_x

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

    Source

    angle_y

    fn angle_y(self: &Self) -> f64
    

    The rotation around the Y-axis, in degrees.

    Source

    set_angle_y

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

    Source

    angle_z

    fn angle_z(self: &Self) -> f64
    

    The rotation around the Z-axis, in degrees.

    Source

    set_angle_z

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

    Source

    center_x

    fn center_x(self: &Self) -> f64
    

    The X-coordinate of the rotation center.

    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.

    Source

    set_center_y

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

    Source

    center_z

    fn center_z(self: &Self) -> f64
    

    The Z-coordinate of the rotation center.

    Source

    set_center_z

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

    Source

    depth

    fn depth(self: &Self) -> f64
    

    The focal length of the camera.

    Source

    set_depth

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

    Source

    Trait implementations

    Availability

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