pub struct ImagePaintStyle {
pub fit: ImageFit,
pub filter: ImageFilter,
pub source_rect: Option<ImageSourceRect>,
pub alignment: ImageAlignment,
}Expand description
How an image is sampled and placed inside its Rect, bundled for
ergonomic Default. tint stays on SceneNode::Image because
untinted is an explicit choice, not a neutral one.
Fields§
§fit: ImageFit§filter: ImageFilter§source_rect: Option<ImageSourceRect>Sub-region of the source texture to sample.
alignment: ImageAlignmentTrait Implementations§
Source§impl Clone for ImagePaintStyle
impl Clone for ImagePaintStyle
impl Copy for ImagePaintStyle
Source§impl Debug for ImagePaintStyle
impl Debug for ImagePaintStyle
Source§impl Default for ImagePaintStyle
impl Default for ImagePaintStyle
Source§impl PartialEq for ImagePaintStyle
impl PartialEq for ImagePaintStyle
impl StructuralPartialEq for ImagePaintStyle
Auto Trait Implementations§
impl Freeze for ImagePaintStyle
impl RefUnwindSafe for ImagePaintStyle
impl Send for ImagePaintStyle
impl Sync for ImagePaintStyle
impl Unpin for ImagePaintStyle
impl UnsafeUnpin for ImagePaintStyle
impl UnwindSafe for ImagePaintStyle
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