pub struct ImageData {
pub texture: usize,
pub texcoords: Rectangle,
pub size: Rectangle,
/* private fields */
}Expand description
Reference to an image loaded by the Ui.
Fields§
§texture: usizeThe texture atlas identifier that this image resides in.
texcoords: RectangleThe texcoords within the atlas that the image spans.
size: RectangleThe physical size in pixels of the image.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ImageData
impl RefUnwindSafe for ImageData
impl Send for ImageData
impl Sync for ImageData
impl Unpin for ImageData
impl UnwindSafe for ImageData
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