[][src]Trait blend2d::matrix::MatrixTransform

pub trait MatrixTransform {
    fn set_matrix(&mut self, m: &Matrix2D) { ... }
fn reset_matrix(&mut self) { ... }
fn translate(&mut self, x: f64, y: f64) { ... }
fn translate_point<P: Point>(&mut self, p: &P) { ... }
fn scale(&mut self, x: f64, y: f64) { ... }
fn scale_point<P: Point>(&mut self, p: &P) { ... }
fn skew(&mut self, x: f64, y: f64) { ... }
fn skew_point<P: Point>(&mut self, p: &P) { ... }
fn rotate(&mut self, angle: f64) { ... }
fn rotate_around(&mut self, angle: f64, x: f64, y: f64) { ... }
fn rotate_around_point<P: Point>(&mut self, angle: f64, p: &P) { ... }
fn transform(&mut self, mat: &Matrix2D) { ... }
fn post_translate(&mut self, x: f64, y: f64) { ... }
fn post_translate_point<P: Point>(&mut self, p: &P) { ... }
fn post_scale(&mut self, x: f64, y: f64) { ... }
fn post_scale_point<P: Point>(&mut self, p: &P) { ... }
fn post_skew(&mut self, x: f64, y: f64) { ... }
fn post_skew_point<P: Point>(&mut self, p: &P) { ... }
fn post_rotate(&mut self, angle: f64) { ... }
fn post_rotate_around(&mut self, angle: f64, x: f64, y: f64) { ... }
fn post_rotate_around_point<P: Point>(&mut self, angle: f64, p: &P) { ... }
fn post_transform(&mut self, mat: &Matrix2D) { ... } }

A trait for doing matrix transformations on the type.

Provided methods

fn set_matrix(&mut self, m: &Matrix2D)

Set the transformation matrix of this type to m.

fn reset_matrix(&mut self)

Reset the transformation matrix.

fn translate(&mut self, x: f64, y: f64)

Translate the transformation matrix.

fn translate_point<P: Point>(&mut self, p: &P)

Translate the transformation matrix.

fn scale(&mut self, x: f64, y: f64)

Scale the transformation matrix.

fn scale_point<P: Point>(&mut self, p: &P)

Scale the transformation matrix.

fn skew(&mut self, x: f64, y: f64)

Skew the transformation matrix.

fn skew_point<P: Point>(&mut self, p: &P)

Skew the transformation matrix.

fn rotate(&mut self, angle: f64)

Rotate the transformation matrix.

fn rotate_around(&mut self, angle: f64, x: f64, y: f64)

Rotate the transformation matrix around a point.

fn rotate_around_point<P: Point>(&mut self, angle: f64, p: &P)

Rotate the transformation matrix around a point.

fn transform(&mut self, mat: &Matrix2D)

Transform the transformation matrix.

fn post_translate(&mut self, x: f64, y: f64)

Post-translate the transformation matrix.

fn post_translate_point<P: Point>(&mut self, p: &P)

Post-translate the transformation matrix.

fn post_scale(&mut self, x: f64, y: f64)

Post-scale the transformation matrix.

fn post_scale_point<P: Point>(&mut self, p: &P)

Post-scale the transformation matrix.

fn post_skew(&mut self, x: f64, y: f64)

Post-skew the transformation matrix.

fn post_skew_point<P: Point>(&mut self, p: &P)

Post-skew the transformation matrix.

fn post_rotate(&mut self, angle: f64)

Post-rotate the transformation matrix.

fn post_rotate_around(&mut self, angle: f64, x: f64, y: f64)

Post-rotate the transformation matrix around a point.

fn post_rotate_around_point<P: Point>(&mut self, angle: f64, p: &P)

Post-rotate the transformation matrix around a point.

fn post_transform(&mut self, mat: &Matrix2D)

Post-transform the transformation matrix.

Loading content...

Implementors

impl MatrixTransform for Context[src]

impl MatrixTransform for Matrix2D[src]

impl MatrixTransform for Pattern[src]

impl<T: GradientType> MatrixTransform for Gradient<T>[src]

Loading content...