Enum flo_canvas::SpriteTransform [−][src]
pub enum SpriteTransform {
Identity,
Translate(f32, f32),
Scale(f32, f32),
Rotate(f32),
Transform2D(Transform2D),
}Expand description
Transformation to apply to a canvas ‘sprite’
Variants
Resets the transformation to the identity transform
Move by a particular amount
Scale by the specified x and y factors about the origin
Rotate by an angle in degrees about the origin
Tuple Fields of Rotate
0: f32Arbitrary 2D transformation
Tuple Fields of Transform2D
0: Transform2DTrait Implementations
Encodes this item by appending it to the specified string Read more
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
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for SpriteTransform
impl Send for SpriteTransform
impl Sync for SpriteTransform
impl Unpin for SpriteTransform
impl UnwindSafe for SpriteTransform
Blanket Implementations
Mutably borrows from an owned value. Read more