Struct fermium::events::SDL_DropEvent
source · #[repr(C)]pub struct SDL_DropEvent {
pub type_: SDL_EventType,
pub timestamp: u32,
pub file: *const c_char,
pub windowID: u32,
}
Expand description
An event used to request a file open by the system (event.drop.*)
This event is enabled by default, you can disable it with
SDL_EventState
.
Note: If this event is enabled, you must free the filename in the event.
Fields§
§type_: SDL_EventType
Should always be SDL_DROPBEGIN
, SDL_DROPFILE
, SDL_DROPTEXT
,
or SDL_DROPCOMPLETE
timestamp: u32
In milliseconds, populated using SDL_GetTicks
.
file: *const c_char
The file name, which should be freed with SDL_free
of non-null.
This is NULL on begin/complete.
windowID: u32
The window that was dropped on, if any
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 copy 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
source§impl Default for SDL_DropEvent
impl Default for SDL_DropEvent
source§impl Hash for SDL_DropEvent
impl Hash for SDL_DropEvent
source§impl Ord for SDL_DropEvent
impl Ord for SDL_DropEvent
source§fn cmp(&self, other: &SDL_DropEvent) -> Ordering
fn cmp(&self, other: &SDL_DropEvent) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SDL_DropEvent> for SDL_DropEvent
impl PartialEq<SDL_DropEvent> for SDL_DropEvent
source§fn eq(&self, other: &SDL_DropEvent) -> bool
fn eq(&self, other: &SDL_DropEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SDL_DropEvent> for SDL_DropEvent
impl PartialOrd<SDL_DropEvent> for SDL_DropEvent
source§fn partial_cmp(&self, other: &SDL_DropEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &SDL_DropEvent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more