pub struct GraphicsLayerScope {Show 17 fields
pub scale_x: f32,
pub scale_y: f32,
pub alpha: f32,
pub translation_x: Dp,
pub translation_y: Dp,
pub rotation_x: f32,
pub rotation_y: f32,
pub rotation_z: f32,
pub camera_distance: f32,
pub transform_origin_x: f32,
pub transform_origin_y: f32,
pub shadow_elevation: Dp,
pub blend_mode: BlendMode,
pub color_filter: ColorFilter,
pub shape: Option<Shape>,
pub clip: bool,
pub compositing_strategy: CompositingStrategy,
}Expand description
Compose-style graphics layer configuration. Returned by the closure passed
to Modifier::graphics_layer_with; the closure is evaluated every frame,
so animating its fields does not require recomposition.
Fields§
§scale_x: f32§scale_y: f32§alpha: f32§translation_x: Dp§translation_y: Dp§rotation_x: f32§rotation_y: f32§rotation_z: f32§camera_distance: f32§transform_origin_x: f32§transform_origin_y: f32§shadow_elevation: Dp§blend_mode: BlendMode§color_filter: ColorFilter§shape: Option<Shape>§clip: bool§compositing_strategy: CompositingStrategyTrait Implementations§
Source§impl Clone for GraphicsLayerScope
impl Clone for GraphicsLayerScope
Source§impl Debug for GraphicsLayerScope
impl Debug for GraphicsLayerScope
Auto Trait Implementations§
impl Forget for GraphicsLayerScope
impl Freeze for GraphicsLayerScope
impl Move for GraphicsLayerScope
impl RefUnwindSafe for GraphicsLayerScope
impl Send for GraphicsLayerScope
impl Sync for GraphicsLayerScope
impl Unpin for GraphicsLayerScope
impl UnsafeUnpin for GraphicsLayerScope
impl UnwindSafe for GraphicsLayerScope
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