Trait piston_window::SourceRectangled[][src]

pub trait SourceRectangled {
    pub fn src_rect(self, x: f64, y: f64, w: f64, h: f64) -> Self;
pub fn src_rel(self, x: f64, y: f64) -> Self;
pub fn src_flip_h(self) -> Self;
pub fn src_flip_v(self) -> Self;
pub fn src_flip_hv(self) -> Self; }

Should be implemented by contexts that have source rectangle information.

Required methods

pub fn src_rect(self, x: f64, y: f64, w: f64, h: f64) -> Self[src]

Adds a source rectangle.

pub fn src_rel(self, x: f64, y: f64) -> Self[src]

Moves to a relative source rectangle using the current source rectangle as tile.

pub fn src_flip_h(self) -> Self[src]

Flips the source rectangle horizontally.

pub fn src_flip_v(self) -> Self[src]

Flips the source rectangle vertically.

pub fn src_flip_hv(self) -> Self[src]

Flips the source rectangle horizontally and vertically.

Loading content...

Implementations on Foreign Types

impl SourceRectangled for [f64; 4][src]

Loading content...

Implementors

Loading content...