pub struct TransformSpec {
pub rotate: f32,
pub scale: f32,
pub pivot: Vec2,
}Expand description
A node’s rotate, scale and pivot (ADR 0043): paint-only, so the
node takes the room its upright self takes and everything after layout
— its quads, its clip, its hit region, its access rect — is drawn, cut,
hit and read through the turn. Nests by composition; tweens with
transition as one slot; an entrance, an exit and a keyframe stop name
rotate and scale.
Fields§
§rotate: f32Turns, clockwise with y down; 0 is none.
scale: f32The uniform factor; 1 is none.
pivot: Vec2The point the turn and the scale are about, as fractions of the
node’s box: (0.5, 0.5) is the centre.
Implementations§
Trait Implementations§
Source§impl Clone for TransformSpec
impl Clone for TransformSpec
impl Copy for TransformSpec
Source§impl Debug for TransformSpec
impl Debug for TransformSpec
Source§impl Default for TransformSpec
impl Default for TransformSpec
Source§impl PartialEq for TransformSpec
impl PartialEq for TransformSpec
impl StructuralPartialEq for TransformSpec
Auto Trait Implementations§
impl Freeze for TransformSpec
impl RefUnwindSafe for TransformSpec
impl Send for TransformSpec
impl Sync for TransformSpec
impl Unpin for TransformSpec
impl UnsafeUnpin for TransformSpec
impl UnwindSafe for TransformSpec
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