[][src]Struct xcursor::parser::Image

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>,
}

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

impl Clone for Image[src]

impl Debug for Image[src]

impl Display for Image[src]

impl Eq for Image[src]

impl PartialEq<Image> for Image[src]

impl StructuralEq for Image[src]

impl StructuralPartialEq for Image[src]

Auto Trait Implementations

impl RefUnwindSafe for Image

impl Send for Image

impl Sync for Image

impl Unpin for Image

impl UnwindSafe for Image

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.