pub struct Image {
pub source: String,
pub stretch: Stretch,
pub region: Option<Rect>,
pub tint: Color,
}Expand description
An image widget’s data — see image.
Fields§
§source: StringA Yog image source (see yog_gfx::image).
stretch: StretchHow the image fills the widget (default Stretch::Uniform).
region: Option<Rect>The part of the image drawn, [u, v, w, h] in the image’s pixels
(None = all of it). Textures only — items and sprites are whole.
tint: ColorColor multiplier, 0xAARRGGBB (0xFFFFFFFF = none; items ignore it).
Trait Implementations§
impl StructuralPartialEq for Image
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnsafeUnpin for Image
impl UnwindSafe for Image
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