pub struct ImagePiece {
pub dst: Rect,
pub uv: Rect,
pub strict: bool,
}Expand description
A picture painted as a background, and the reference’s fitting.
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
Source§fn clone(&self) -> ImagePiece
fn clone(&self) -> ImagePiece
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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