pub struct GraphicsLayer {
pub rotation_z: f32,
pub scale_x: f32,
pub scale_y: f32,
pub translation_x: f32,
pub translation_y: f32,
pub transform_origin: (f32, f32),
pub alpha: f32,
}Expand description
What Compose’s graphicsLayer takes, drawn without moving the layout: a rotation in
degrees, a scale, a translation in dp, the origin they turn about as a fraction of the
node’s size, and an opacity for the whole group.
Fields§
§rotation_z: f32§scale_x: f32§scale_y: f32§translation_x: f32§translation_y: f32§transform_origin: (f32, f32)§alpha: f32Implementations§
Trait Implementations§
Source§impl Clone for GraphicsLayer
impl Clone for GraphicsLayer
impl Copy for GraphicsLayer
Source§impl Debug for GraphicsLayer
impl Debug for GraphicsLayer
Source§impl Default for GraphicsLayer
impl Default for GraphicsLayer
Source§impl PartialEq for GraphicsLayer
impl PartialEq for GraphicsLayer
impl StructuralPartialEq for GraphicsLayer
Auto Trait Implementations§
impl Freeze for GraphicsLayer
impl RefUnwindSafe for GraphicsLayer
impl Send for GraphicsLayer
impl Sync for GraphicsLayer
impl Unpin for GraphicsLayer
impl UnsafeUnpin for GraphicsLayer
impl UnwindSafe for GraphicsLayer
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