File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
crates/objc2/src/topics/about_generated
framework-crates/objc2-app-kit/src Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
14
14
15
15
### Added
16
16
* Added ` IOKit ` "serial" submodule.
17
+ * Added various missing APIs.
17
18
18
19
## [ 0.3.1] - 2025-04-19
19
20
[ 0.3.1 ] : https://github.com/madsmtm/objc2/compare/frameworks-0.3.0...frameworks-0.3.1
Original file line number Diff line number Diff line change
1
+ use crate :: { NSEventMask , NSEventType } ;
2
+
3
+ impl NSEventMask {
4
+ #[ doc( alias = "NSEventMaskFromType" ) ]
5
+ pub fn from_type ( ty : NSEventType ) -> Self {
6
+ Self ( 1 << ty. 0 )
7
+ }
8
+ }
Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ pub(crate) const TARGET_ABI_USES_IOS_VALUES: bool =
46
46
47
47
#[ cfg( feature = "NSApplication" ) ]
48
48
mod application;
49
+ #[ cfg( feature = "NSEvent" ) ]
50
+ mod event;
49
51
mod generated;
50
52
#[ cfg( feature = "NSImage" ) ]
51
53
mod image;
You can’t perform that action at this time.
0 commit comments