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
sourceimpl Clone for SDL_DropEvent
impl Clone for SDL_DropEvent
sourcefn clone(&self) -> SDL_DropEvent
fn clone(&self) -> SDL_DropEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SDL_DropEvent
impl Debug for SDL_DropEvent
sourceimpl Default for SDL_DropEvent
impl Default for SDL_DropEvent
sourceimpl Hash for SDL_DropEvent
impl Hash for SDL_DropEvent
sourceimpl Ord for SDL_DropEvent
impl Ord for SDL_DropEvent
sourcefn cmp(&self, other: &SDL_DropEvent) -> Ordering
fn cmp(&self, other: &SDL_DropEvent) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<SDL_DropEvent> for SDL_DropEvent
impl PartialEq<SDL_DropEvent> for SDL_DropEvent
sourcefn eq(&self, other: &SDL_DropEvent) -> bool
fn eq(&self, other: &SDL_DropEvent) -> bool
sourceimpl PartialOrd<SDL_DropEvent> for SDL_DropEvent
impl PartialOrd<SDL_DropEvent> for SDL_DropEvent
sourcefn partial_cmp(&self, other: &SDL_DropEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &SDL_DropEvent) -> Option<Ordering>
1.0.0 · sourcefn 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 moreimpl Copy for SDL_DropEvent
impl Eq for SDL_DropEvent
impl StructuralEq for SDL_DropEvent
impl StructuralPartialEq for SDL_DropEvent
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more