Type Definition graphics::types::SourceRectangle
[−]
[src]
type SourceRectangle<T = Scalar> = [T; 4];
[x, y, w, h]
Trait Implementations
impl SourceRectangled for SourceRectangle
[src]
fn src_rect(self, x: Scalar, y: Scalar, w: Scalar, h: Scalar) -> Self
[src]
Adds a source rectangle.
fn src_rel(self, x: Scalar, y: Scalar) -> Self
[src]
Moves to a relative source rectangle using the current source rectangle as tile. Read more
fn src_flip_h(self) -> Self
[src]
Flips the source rectangle horizontally.
fn src_flip_v(self) -> Self
[src]
Flips the source rectangle vertically.
fn src_flip_hv(self) -> Self
[src]
Flips the source rectangle horizontally and vertically.