Type Definition graphics::types::SourceRectangle
source · [−]Expand description
[x, y, w, h]
Trait Implementations
sourceimpl SourceRectangled for SourceRectangle
impl SourceRectangled for SourceRectangle
sourcefn src_rel(self, x: Scalar, y: Scalar) -> Self
fn src_rel(self, x: Scalar, y: Scalar) -> Self
Moves to a relative source rectangle using the current source rectangle as tile. Read more
sourcefn src_flip_h(self) -> Self
fn src_flip_h(self) -> Self
Flips the source rectangle horizontally.
sourcefn src_flip_v(self) -> Self
fn src_flip_v(self) -> Self
Flips the source rectangle vertically.
sourcefn src_flip_hv(self) -> Self
fn src_flip_hv(self) -> Self
Flips the source rectangle horizontally and vertically.