Struct simplesvg::Trans [] [src]

pub struct Trans {
    pub translate: Option<(f32, f32)>,
    pub rotate: Option<f32>,
    pub scale: Option<(f32, f32)>,
    // some fields omitted
}

Transformations

Fields

translate: Option<(f32, f32)> rotate: Option<f32> scale: Option<(f32, f32)>

Methods

impl Trans
[src]

fn translate(self, x: f32, y: f32) -> Self

fn rotate(self, x: f32) -> Self

fn scale(self, x: f32) -> Self

fn scale_x_y(self, x: f32, y: f32) -> Self

Trait Implementations

impl Default for Trans
[src]

fn default() -> Trans

Returns the "default value" for a type. Read more

impl Debug for Trans
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Trans
[src]

fn clone(&self) -> Trans

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Display for Trans
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.