pub struct GradientCutMaskSpec {
pub progress: f32,
pub feather: f32,
pub corner_radius: f32,
pub direction: CutDirection,
}Expand description
Configuration for a directional gradient cut mask.
Fields§
§progress: f32Reveal progress in [0, 1].
feather: f32Width of the edge feather in dp/px.
corner_radius: f32Rounded-corner radius of the masked area in dp/px.
direction: CutDirectionDirection from which content is revealed.
Trait Implementations§
Source§impl Clone for GradientCutMaskSpec
impl Clone for GradientCutMaskSpec
Source§fn clone(&self) -> GradientCutMaskSpec
fn clone(&self) -> GradientCutMaskSpec
Returns a duplicate 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 moreSource§impl Debug for GradientCutMaskSpec
impl Debug for GradientCutMaskSpec
Source§impl Default for GradientCutMaskSpec
impl Default for GradientCutMaskSpec
Source§impl PartialEq for GradientCutMaskSpec
impl PartialEq for GradientCutMaskSpec
impl Copy for GradientCutMaskSpec
impl StructuralPartialEq for GradientCutMaskSpec
Auto Trait Implementations§
impl Freeze for GradientCutMaskSpec
impl RefUnwindSafe for GradientCutMaskSpec
impl Send for GradientCutMaskSpec
impl Sync for GradientCutMaskSpec
impl Unpin for GradientCutMaskSpec
impl UnsafeUnpin for GradientCutMaskSpec
impl UnwindSafe for GradientCutMaskSpec
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