objc2-app-kit 0.3.2

Bindings to the AppKit framework
Documentation
1
2
3
4
5
6
7
8
use crate::{NSEventMask, NSEventType};

impl NSEventMask {
    #[doc(alias = "NSEventMaskFromType")]
    pub fn from_type(ty: NSEventType) -> Self {
        Self(1 << ty.0)
    }
}