Struct objc2_app_kit::NSEventType
source · #[repr(transparent)]pub struct NSEventType(pub NSUInteger);
Available on crate feature
NSEvent
only.Tuple Fields§
§0: NSUInteger
Implementations§
source§impl NSEventType
impl NSEventType
pub const LeftMouseDown: Self = _
pub const LeftMouseUp: Self = _
pub const RightMouseDown: Self = _
pub const RightMouseUp: Self = _
pub const MouseMoved: Self = _
pub const LeftMouseDragged: Self = _
pub const RightMouseDragged: Self = _
pub const MouseEntered: Self = _
pub const MouseExited: Self = _
pub const KeyDown: Self = _
pub const KeyUp: Self = _
pub const FlagsChanged: Self = _
pub const AppKitDefined: Self = _
pub const SystemDefined: Self = _
pub const ApplicationDefined: Self = _
pub const Periodic: Self = _
pub const CursorUpdate: Self = _
pub const ScrollWheel: Self = _
pub const TabletPoint: Self = _
pub const TabletProximity: Self = _
pub const OtherMouseDown: Self = _
pub const OtherMouseUp: Self = _
pub const OtherMouseDragged: Self = _
pub const Gesture: Self = _
pub const Magnify: Self = _
pub const Swipe: Self = _
pub const Rotate: Self = _
pub const BeginGesture: Self = _
pub const EndGesture: Self = _
pub const SmartMagnify: Self = _
pub const QuickLook: Self = _
pub const Pressure: Self = _
pub const DirectTouch: Self = _
pub const ChangeMode: Self = _
Trait Implementations§
source§impl Clone for NSEventType
impl Clone for NSEventType
source§fn clone(&self) -> NSEventType
fn clone(&self) -> NSEventType
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 NSEventType
impl Debug for NSEventType
source§impl Encode for NSEventType
impl Encode for NSEventType
source§impl Hash for NSEventType
impl Hash for NSEventType
source§impl Ord for NSEventType
impl Ord for NSEventType
source§fn cmp(&self, other: &NSEventType) -> Ordering
fn cmp(&self, other: &NSEventType) -> 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 for NSEventType
impl PartialEq for NSEventType
source§fn eq(&self, other: &NSEventType) -> bool
fn eq(&self, other: &NSEventType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NSEventType
impl PartialOrd for NSEventType
source§fn partial_cmp(&self, other: &NSEventType) -> Option<Ordering>
fn partial_cmp(&self, other: &NSEventType) -> 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 moresource§impl RefEncode for NSEventType
impl RefEncode for NSEventType
source§const ENCODING_REF: Encoding = _
const ENCODING_REF: Encoding = _
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for NSEventType
impl Eq for NSEventType
impl StructuralPartialEq for NSEventType
Auto Trait Implementations§
impl Freeze for NSEventType
impl RefUnwindSafe for NSEventType
impl Send for NSEventType
impl Sync for NSEventType
impl Unpin for NSEventType
impl UnwindSafe for NSEventType
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
source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.