pub struct DragIcon {
pub icon: Icon,
pub offset_x: i32,
pub offset_y: i32,
}Expand description
Information needed to initiate a new drag operation.
Fields§
§icon: IconThe icon to apply to the cursor.
offset_x: i32An x offset applied to the dragged icon.
This is specified in image pixels. 0 means that the left side of the icon will be at the cursor.
offset_y: i32A y offset applied to the dragged icon.
This is specified in image pixels. 0 means that the top of the icon will be at the cursor.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DragIcon
impl !UnwindSafe for DragIcon
impl Freeze for DragIcon
impl Send for DragIcon
impl Sync for DragIcon
impl Unpin for DragIcon
impl UnsafeUnpin for DragIcon
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