pub struct ImageQuad {
pub rect: Rect,
pub image: ImageData,
pub uv: [f32; 4],
pub corner_radii: [f32; 4],
pub opacity: f32,
}Expand description
An image drawn into a rectangle, with optional rounded corners.
Fields§
§rect: RectDestination rectangle in logical pixels.
image: ImageDataImage to draw.
uv: [f32; 4]The part of the image to show, in normalized coordinates (u0, v0, u1, v1).
corner_radii: [f32; 4]Corner radii in logical pixels: top-left, top-right, bottom-right, bottom-left.
opacity: f32Opacity multiplier, 0.0 to 1.0.
Implementations§
Trait Implementations§
impl StructuralPartialEq for ImageQuad
Auto Trait Implementations§
impl Freeze for ImageQuad
impl RefUnwindSafe for ImageQuad
impl Send for ImageQuad
impl Sync for ImageQuad
impl Unpin for ImageQuad
impl UnsafeUnpin for ImageQuad
impl UnwindSafe for ImageQuad
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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