#[repr(transparent)]pub struct Matrix { /* private fields */ }
Implementations§
source§impl 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 slant_ratio(&self) -> f64
Available on crate feature
v1_50
only.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)
source§impl 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§
source§impl StaticType for Matrix
impl StaticType for Matrix
source§fn 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§
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
source§impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.