Struct xcursor::parser::Image [−][src]
pub struct Image {
pub size: u32,
pub width: u32,
pub height: u32,
pub xhot: u32,
pub yhot: u32,
pub delay: u32,
pub pixels_rgba: Vec<u8>,
pub pixels_argb: Vec<u8>,
}
Expand description
A struct representing an image. Pixels are in ARGB format, with each byte representing a single channel.
Fields
size: u32
The nominal size of the image.
width: u32
The actual width of the image. Doesn’t need to match size
.
height: u32
The actual height of the image. Doesn’t need to match size
.
xhot: u32
The X coordinate of the hotspot pixel (the pixel where the tip of the arrow is situated)
yhot: u32
The Y coordinate of the hotspot pixel (the pixel where the tip of the arrow is situated)
delay: u32
The amount of time (in milliseconds) that this image should be shown for, before switching to the next.
pixels_rgba: Vec<u8>
A slice containing the pixels’ bytes, in RGBA format (or, in the order of the file).
pixels_argb: Vec<u8>
A slice containing the pixels’ bytes, in ARGB format.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Image
impl UnwindSafe for Image
Blanket Implementations
Mutably borrows from an owned value. Read more