pub struct LayerPose {
pub opacity: f64,
pub dx: f64,
pub dy: f64,
pub scale: f64,
pub wipe: Option<(Dir, f64)>,
}Expand description
How one of the two layers is drawn. Offsets are fractions of the frame
(positive x moves the layer right, positive y moves it down). Scale is
around the frame center. A wipe reveals that fraction of the layer from
dir and hides the rest.
Fields§
§opacity: f640 is invisible, 1 is solid.
dx: f64Horizontal shift, as a fraction of the frame width.
dy: f64Vertical shift, as a fraction of the frame height.
scale: f64Scale around the center. 1 leaves the layer as it is.
wipe: Option<(Dir, f64)>Reveal this much of the layer (0..1) from this edge. None shows it all.
Implementations§
Trait Implementations§
impl Copy for LayerPose
impl StructuralPartialEq for LayerPose
Auto Trait Implementations§
impl Freeze for LayerPose
impl RefUnwindSafe for LayerPose
impl Send for LayerPose
impl Sync for LayerPose
impl Unpin for LayerPose
impl UnsafeUnpin for LayerPose
impl UnwindSafe for LayerPose
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