#[repr(C)]pub struct SDL_DropEvent {
pub type: SDL_EventType,
pub reserved: Uint32,
pub timestamp: Uint64,
pub windowID: SDL_WindowID,
pub x: c_float,
pub y: c_float,
pub source: *const c_char,
pub data: *const c_char,
}Expand description
An event used to drop text or request a file open by the system (event.drop.*)
§Availability
This struct is available since SDL 3.2.0.
Fields§
§type: SDL_EventTypeSDL_EVENT_DROP_BEGIN or SDL_EVENT_DROP_FILE or SDL_EVENT_DROP_TEXT or SDL_EVENT_DROP_COMPLETE or SDL_EVENT_DROP_POSITION
reserved: Uint32§timestamp: Uint64In nanoseconds, populated using SDL_GetTicksNS()
windowID: SDL_WindowIDThe window that was dropped on, if any
x: c_floatX coordinate, relative to window (not on begin)
y: c_floatY coordinate, relative to window (not on begin)
source: *const c_charThe source app that sent this drop event, or NULL if that isn’t available
data: *const c_charThe text for SDL_EVENT_DROP_TEXT and the file name for SDL_EVENT_DROP_FILE, NULL for other events
Trait Implementations§
Source§impl Clone for SDL_DropEvent
impl Clone for SDL_DropEvent
Source§fn clone(&self) -> SDL_DropEvent
fn clone(&self) -> SDL_DropEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SDL_DropEvent
impl Debug for SDL_DropEvent
impl Copy for SDL_DropEvent
Auto Trait Implementations§
impl Freeze for SDL_DropEvent
impl RefUnwindSafe for SDL_DropEvent
impl !Send for SDL_DropEvent
impl !Sync for SDL_DropEvent
impl Unpin for SDL_DropEvent
impl UnwindSafe for SDL_DropEvent
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