[−][src]Struct skia_safe::RSXform
Fields
scos: scalar
ssin: scalar
tx: scalar
ty: 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]
scale: scalar,
radians: scalar,
t: impl Into<Vector>,
a: impl Into<Point>
) -> Self
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 Unpin for RSXform
impl Sync for RSXform
impl Send for RSXform
impl UnwindSafe for RSXform
impl RefUnwindSafe for RSXform
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,