Trait pango::Matrix
[−]
[src]
pub trait Matrix { fn new(xx: f64, xy: f64, yx: f64, yy: f64, x0: f64, y0: f64) -> Self; fn copy(&self) -> Self; fn translate(&mut self, t_x: f64, t_y: f64); fn scale(&mut self, scale_x: f64, scale_y: f64); fn rotate(&mut self, degrees: f64); fn concat(&mut self, new_matrix: &Self); fn transform_point(&self, x: &mut f64, y: &mut f64); fn transform_distance(&self, dx: &mut f64, dy: &mut f64); fn transform_rectangle(&self, rect: &mut PangoRectangle); fn transform_pixel_rectangle(&self, rect: &mut PangoRectangle); fn get_font_scale_factor(&mut self) -> f64; }
Required Methods
fn new(xx: f64, xy: f64, yx: f64, yy: f64, x0: f64, y0: f64) -> Self
fn copy(&self) -> Self
fn translate(&mut self, t_x: f64, t_y: f64)
fn scale(&mut self, scale_x: f64, scale_y: f64)
fn rotate(&mut self, degrees: f64)
fn concat(&mut self, new_matrix: &Self)
fn transform_point(&self, x: &mut f64, y: &mut f64)
fn transform_distance(&self, dx: &mut f64, dy: &mut f64)
fn transform_rectangle(&self, rect: &mut PangoRectangle)
fn transform_pixel_rectangle(&self, rect: &mut PangoRectangle)
fn get_font_scale_factor(&mut self) -> f64
Implementors
impl Matrix for PangoMatrix