pub struct TextReveal {
pub progress: Animated<f32>,
pub angle_degrees: Animated<f32>,
pub feather: Animated<f32>,
}Expand description
A straight edge that shows a unit up to it, as a linear wipe: across the unit’s box (its
advances by its em boxes, outset by its strokes) in the direction angle_degrees.
Fields§
§progress: Animated<f32>How much of a fully selected unit shows, in [0, 1]: 0 hides it, 1 shows it whole. A unit
selected by w shows 1 + w (progress - 1). Default 0.
angle_degrees: Animated<f32>The direction the edge travels, clockwise degrees with y down: 0 reveals left to right, 90 top to bottom. Default 0.
feather: Animated<f32>The edge’s softness in font sizes, in [0, MAX_REVEAL_FEATHER]; 0 is a one-pixel
antialiased step. Default 0.
Trait Implementations§
Source§impl Clone for TextReveal
impl Clone for TextReveal
Source§impl Debug for TextReveal
impl Debug for TextReveal
Source§impl<'de> Deserialize<'de> for TextReveal
impl<'de> Deserialize<'de> for TextReveal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TextReveal
impl PartialEq for TextReveal
Source§impl Serialize for TextReveal
impl Serialize for TextReveal
impl StructuralPartialEq for TextReveal
Auto Trait Implementations§
impl Forget for TextReveal
impl Freeze for TextRevealwhere
*const u8 is !null: Freeze,
PhantomData<Keyframe<f32>>: Freeze,
*const DataBinding is !null: Freeze,
PhantomData<DataBinding>: Freeze,
impl Move for TextReveal
impl RefUnwindSafe for TextReveal
impl Send for TextReveal
impl Sync for TextReveal
impl Unpin for TextReveal
impl UnsafeUnpin for TextRevealwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Keyframe<f32>>: UnsafeUnpin,
*const DataBinding is !null: UnsafeUnpin,
PhantomData<DataBinding>: UnsafeUnpin,
impl UnwindSafe for TextReveal
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