pub struct ImageRect {
pub x: f32,
pub y: f32,
pub w: f32,
pub h: f32,
}Expand description
Where the set image is drawn this frame, in device pixels from the target’s
top-left — the coordinate space TextRun uses. The image
is stretched to fill it; the caller chooses a rectangle of the image’s own
aspect if it wants none.
Fields§
§x: f32Left edge.
y: f32Top edge.
w: f32Width.
h: f32Height.
Trait Implementations§
impl Copy for ImageRect
impl StructuralPartialEq for ImageRect
Auto Trait Implementations§
impl Freeze for ImageRect
impl RefUnwindSafe for ImageRect
impl Send for ImageRect
impl Sync for ImageRect
impl Unpin for ImageRect
impl UnsafeUnpin for ImageRect
impl UnwindSafe for ImageRect
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