#[repr(C)]pub struct ArkUI_RotationOptions {
pub x: f32,
pub y: f32,
pub z: f32,
pub angle: f32,
pub centerX: f32,
pub centerY: f32,
pub centerZ: f32,
pub perspective: f32,
}Available on crate feature
api-12 only.Expand description
Defines the rotation options for component transition.
Available since API-level: 12
Fields§
§x: f32X-component of the rotation vector.
y: f32Y-component of the rotation vector.
z: f32Z-component of the rotation vector.
angle: f32Rotation angle.
centerX: f32X coordinate of the center point.
centerY: f32Y coordinate of the center point.
centerZ: f32Z-axis anchor, that is, the z-component of the 3D rotation center point.
perspective: f32Distance from the user to the z=0 plane.
Trait Implementations§
Source§impl Clone for ArkUI_RotationOptions
impl Clone for ArkUI_RotationOptions
Source§fn clone(&self) -> ArkUI_RotationOptions
fn clone(&self) -> ArkUI_RotationOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ArkUI_RotationOptions
Auto Trait Implementations§
impl Freeze for ArkUI_RotationOptions
impl RefUnwindSafe for ArkUI_RotationOptions
impl Send for ArkUI_RotationOptions
impl Sync for ArkUI_RotationOptions
impl Unpin for ArkUI_RotationOptions
impl UnwindSafe for ArkUI_RotationOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more