pub struct DragImageData {
pub rgba: Vec<u8>,
pub width: u32,
pub height: u32,
pub hot_x: f32,
pub hot_y: f32,
}Expand description
Optional drag image for an OS drag (RGBA8, top-left origin, premultiplied
alpha not assumed). None lets the platform draw a default. hot_x /
hot_y are the cursor hotspot in logical pixels from the image’s top-left.
Fields§
§rgba: Vec<u8>Pixel data, width * height * 4 bytes (RGBA8, row-major, top-left).
width: u32Image width in pixels.
height: u32Image height in pixels.
hot_x: f32Cursor hotspot X in logical pixels from the top-left.
hot_y: f32Cursor hotspot Y in logical pixels from the top-left.
Trait Implementations§
Source§impl Clone for DragImageData
impl Clone for DragImageData
Source§fn clone(&self) -> DragImageData
fn clone(&self) -> DragImageData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DragImageData
impl RefUnwindSafe for DragImageData
impl Send for DragImageData
impl Sync for DragImageData
impl Unpin for DragImageData
impl UnsafeUnpin for DragImageData
impl UnwindSafe for DragImageData
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