#[repr(transparent)]pub struct SDL_EventAction(pub c_int);Expand description
The type of action to request from SDL_PeepEvents().
§Availability
This enum is available since SDL 3.2.0.
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
ADDEVENT | SDL_ADDEVENT | Add events to the back of the queue. |
PEEKEVENT | SDL_PEEKEVENT | Check but don’t remove events from the queue front. |
GETEVENT | SDL_GETEVENT | Retrieve/remove events from the front of the queue. |
Tuple Fields§
§0: c_intImplementations§
Trait Implementations§
Source§impl Clone for SDL_EventAction
impl Clone for SDL_EventAction
Source§fn clone(&self) -> SDL_EventAction
fn clone(&self) -> SDL_EventAction
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_EventAction
Available on crate feature debug-impls only.
impl Debug for SDL_EventAction
Available on crate feature
debug-impls only.Source§impl Default for SDL_EventAction
impl Default for SDL_EventAction
Source§fn default() -> SDL_EventAction
fn default() -> SDL_EventAction
Returns the “default value” for a type. Read more
Source§impl From<SDL_EventAction> for c_int
impl From<SDL_EventAction> for c_int
Source§fn from(value: SDL_EventAction) -> Self
fn from(value: SDL_EventAction) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_EventAction
Available on crate feature metadata only.
impl GroupMetadata for SDL_EventAction
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Hash for SDL_EventAction
impl Hash for SDL_EventAction
Source§impl Ord for SDL_EventAction
impl Ord for SDL_EventAction
Source§fn cmp(&self, other: &SDL_EventAction) -> Ordering
fn cmp(&self, other: &SDL_EventAction) -> 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_EventAction> for c_int
impl PartialEq<SDL_EventAction> for c_int
Source§impl PartialEq<i32> for SDL_EventAction
impl PartialEq<i32> for SDL_EventAction
Source§impl PartialEq for SDL_EventAction
impl PartialEq for SDL_EventAction
Source§impl PartialOrd for SDL_EventAction
impl PartialOrd for SDL_EventAction
impl Copy for SDL_EventAction
impl Eq for SDL_EventAction
impl StructuralPartialEq for SDL_EventAction
Auto Trait Implementations§
impl Freeze for SDL_EventAction
impl RefUnwindSafe for SDL_EventAction
impl Send for SDL_EventAction
impl Sync for SDL_EventAction
impl Unpin for SDL_EventAction
impl UnwindSafe for SDL_EventAction
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