#[repr(transparent)]pub struct SDL_MouseWheelDirection(pub c_int);Expand description
Scroll direction types for the Scroll event
§Availability
This enum is available since SDL 3.2.0.
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
NORMAL | SDL_MOUSEWHEEL_NORMAL | The scroll direction is normal |
FLIPPED | SDL_MOUSEWHEEL_FLIPPED | The scroll direction is flipped / natural |
Tuple Fields§
§0: c_intImplementations§
Trait Implementations§
Source§impl Clone for SDL_MouseWheelDirection
impl Clone for SDL_MouseWheelDirection
Source§fn clone(&self) -> SDL_MouseWheelDirection
fn clone(&self) -> SDL_MouseWheelDirection
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_MouseWheelDirection
Available on crate feature debug-impls only.
impl Debug for SDL_MouseWheelDirection
Available on crate feature
debug-impls only.Source§impl Default for SDL_MouseWheelDirection
impl Default for SDL_MouseWheelDirection
Source§fn default() -> SDL_MouseWheelDirection
fn default() -> SDL_MouseWheelDirection
Returns the “default value” for a type. Read more
Source§impl From<SDL_MouseWheelDirection> for c_int
impl From<SDL_MouseWheelDirection> for c_int
Source§fn from(value: SDL_MouseWheelDirection) -> Self
fn from(value: SDL_MouseWheelDirection) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_MouseWheelDirection
Available on crate feature metadata only.
impl GroupMetadata for SDL_MouseWheelDirection
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_MouseWheelDirection
impl Hash for SDL_MouseWheelDirection
Source§impl Ord for SDL_MouseWheelDirection
impl Ord for SDL_MouseWheelDirection
Source§fn cmp(&self, other: &SDL_MouseWheelDirection) -> Ordering
fn cmp(&self, other: &SDL_MouseWheelDirection) -> 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_MouseWheelDirection> for c_int
impl PartialEq<SDL_MouseWheelDirection> for c_int
Source§impl PartialEq<i32> for SDL_MouseWheelDirection
impl PartialEq<i32> for SDL_MouseWheelDirection
Source§impl PartialEq for SDL_MouseWheelDirection
impl PartialEq for SDL_MouseWheelDirection
Source§impl PartialOrd for SDL_MouseWheelDirection
impl PartialOrd for SDL_MouseWheelDirection
impl Copy for SDL_MouseWheelDirection
impl Eq for SDL_MouseWheelDirection
impl StructuralPartialEq for SDL_MouseWheelDirection
Auto Trait Implementations§
impl Freeze for SDL_MouseWheelDirection
impl RefUnwindSafe for SDL_MouseWheelDirection
impl Send for SDL_MouseWheelDirection
impl Sync for SDL_MouseWheelDirection
impl Unpin for SDL_MouseWheelDirection
impl UnwindSafe for SDL_MouseWheelDirection
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