pub struct Frame {
pub pixels: Vec<u32>,
pub width: u32,
pub height: u32,
pub xhot: u32,
pub yhot: u32,
pub delay: Duration,
}Expand description
One frame of a cursor.
Fields§
§pixels: Vec<u32>Premultiplied 0xAARRGGBB, row-major, width * height of them.
width: u32Width in pixels.
height: u32Height in pixels.
xhot: u32Where the pointer actually points, in pixels from the left edge.
yhot: u32Where the pointer actually points, in pixels from the top edge.
delay: DurationHow long this frame shows. Zero for a static cursor.
Trait Implementations§
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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