[][src]Struct skia_safe::RSXform

#[repr(C)]
pub struct RSXform {
    pub scos: scalar,
    pub ssin: scalar,
    pub tx: scalar,
    pub ty: scalar,
}

Fields

scos: scalarssin: scalartx: scalarty: scalar

Methods

impl RSXform[src]

pub fn new(scos: scalar, ssin: scalar, t: impl Into<Vector>) -> Self[src]

pub fn from_radians(
    scale: scalar,
    radians: scalar,
    t: impl Into<Vector>,
    a: impl Into<Point>
) -> Self
[src]

pub fn rect_stays_rect(&self) -> bool[src]

pub fn set_identity(&mut self)[src]

pub fn set(&mut self, scos: scalar, ssin: scalar, t: impl Into<Vector>)[src]

pub fn to_quad(&self, size: impl Into<Size>) -> [Point; 4][src]

pub fn to_tri_strip(&self, size: impl Into<Size>) -> [Point; 4][src]

Trait Implementations

impl Clone for RSXform[src]

impl PartialEq<RSXform> for RSXform[src]

impl Copy for RSXform[src]

impl Debug for RSXform[src]

Auto Trait Implementations

impl Send for RSXform

impl Unpin for RSXform

impl Sync for RSXform

impl UnwindSafe for RSXform

impl RefUnwindSafe for RSXform

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]