Struct objc2_app_kit::NSEventSubtype
source · #[repr(transparent)]pub struct NSEventSubtype(pub c_short);
Available on crate feature
NSEvent
only.Tuple Fields§
§0: c_short
Implementations§
source§impl NSEventSubtype
impl NSEventSubtype
pub const WindowExposed: Self = _
pub const ApplicationActivated: Self = _
pub const ApplicationDeactivated: Self = _
pub const WindowMoved: Self = _
pub const ScreenChanged: Self = _
pub const PowerOff: Self = _
pub const MouseEvent: Self = _
pub const TabletPoint: Self = _
pub const TabletProximity: Self = _
pub const Touch: Self = _
Trait Implementations§
source§impl Clone for NSEventSubtype
impl Clone for NSEventSubtype
source§fn clone(&self) -> NSEventSubtype
fn clone(&self) -> NSEventSubtype
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 NSEventSubtype
impl Debug for NSEventSubtype
source§impl Encode for NSEventSubtype
impl Encode for NSEventSubtype
source§impl Hash for NSEventSubtype
impl Hash for NSEventSubtype
source§impl Ord for NSEventSubtype
impl Ord for NSEventSubtype
source§fn cmp(&self, other: &NSEventSubtype) -> Ordering
fn cmp(&self, other: &NSEventSubtype) -> 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 NSEventSubtype
impl PartialEq for NSEventSubtype
source§fn eq(&self, other: &NSEventSubtype) -> bool
fn eq(&self, other: &NSEventSubtype) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NSEventSubtype
impl PartialOrd for NSEventSubtype
source§fn partial_cmp(&self, other: &NSEventSubtype) -> Option<Ordering>
fn partial_cmp(&self, other: &NSEventSubtype) -> 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 NSEventSubtype
impl RefEncode for NSEventSubtype
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 NSEventSubtype
impl Eq for NSEventSubtype
impl StructuralPartialEq for NSEventSubtype
Auto Trait Implementations§
impl Freeze for NSEventSubtype
impl RefUnwindSafe for NSEventSubtype
impl Send for NSEventSubtype
impl Sync for NSEventSubtype
impl Unpin for NSEventSubtype
impl UnwindSafe for NSEventSubtype
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.