#[repr(transparent)]pub struct Matrix { /* private fields */ }Implementations
sourceimpl Matrix
impl Matrix
pub fn concat(&mut self, new_matrix: &Matrix)
pub fn font_scale_factor(&self) -> f64
pub fn font_scale_factors(&self) -> (f64, f64)
pub fn rotate(&mut self, degrees: f64)
pub fn scale(&mut self, scale_x: f64, scale_y: f64)
pub fn transform_distance(&self, dx: &mut f64, dy: &mut f64)
pub fn transform_point(&self, x: &mut f64, y: &mut f64)
pub fn translate(&mut self, tx: f64, ty: f64)
sourceimpl Matrix
impl Matrix
pub fn new(xx: f64, xy: f64, yx: f64, yy: f64, x0: f64, y0: f64) -> Self
pub fn transform_pixel_rectangle(&self, rect: &mut Rectangle)
pub fn transform_rectangle(&self, rect: &mut Rectangle)
pub fn xx(&self) -> f64
pub fn xy(&self) -> f64
pub fn yx(&self) -> f64
pub fn yy(&self) -> f64
pub fn x0(&self) -> f64
pub fn y0(&self) -> f64
Trait Implementations
sourceimpl StaticType for Matrix
impl StaticType for Matrix
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self.
impl Copy for Matrix
Auto Trait Implementations
impl RefUnwindSafe for Matrix
impl Send for Matrix
impl Sync for Matrix
impl Unpin for Matrix
impl UnwindSafe for Matrix
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a SendValue clone of self.