pub struct LayerTransform {
pub position: [f32; 2],
pub anchor: [f32; 2],
pub scale: [f32; 2],
pub rotation_degrees: f32,
pub opacity: f32,
}Expand description
Placement and opacity of one composited layer.
Fields§
§position: [f32; 2]Normalized output translation, as [x, y].
anchor: [f32; 2]Normalized source anchor, as [x, y].
scale: [f32; 2]Per-axis scale, as [x, y].
rotation_degrees: f32Clockwise rotation in degrees.
opacity: f32Opacity from zero to one.
Trait Implementations§
Source§impl Clone for LayerTransform
impl Clone for LayerTransform
impl Copy for LayerTransform
Source§impl Debug for LayerTransform
impl Debug for LayerTransform
Source§impl PartialEq for LayerTransform
impl PartialEq for LayerTransform
impl StructuralPartialEq for LayerTransform
Auto Trait Implementations§
impl Freeze for LayerTransform
impl RefUnwindSafe for LayerTransform
impl Send for LayerTransform
impl Sync for LayerTransform
impl Unpin for LayerTransform
impl UnsafeUnpin for LayerTransform
impl UnwindSafe for LayerTransform
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