pub struct ImagePiece {
pub dst: Rect,
pub uv: Rect,
pub strict: bool,
}Expand description
One part of a picture drawn somewhere: where, and which part, in 0..1 of the
picture (a negative width walks it backwards, which is how a picture is mirrored).
Fields§
§dst: RectWhere it lands.
uv: RectThe part of the picture sampled.
strict: boolWhether sampling stays strictly inside uv: the parts of a sliced picture,
stretched apart from each other.
Trait Implementations§
Source§impl Clone for ImagePiece
impl Clone for ImagePiece
impl Copy for ImagePiece
Source§impl Debug for ImagePiece
impl Debug for ImagePiece
Source§impl PartialEq for ImagePiece
impl PartialEq for ImagePiece
impl StructuralPartialEq for ImagePiece
Auto Trait Implementations§
impl Freeze for ImagePiece
impl RefUnwindSafe for ImagePiece
impl Send for ImagePiece
impl Sync for ImagePiece
impl Unpin for ImagePiece
impl UnsafeUnpin for ImagePiece
impl UnwindSafe for ImagePiece
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more