objc2_app_kit/generated/NSUserInterfaceItemIdentification.rs
1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsuserinterfaceitemidentifier?language=objc)
10// NS_TYPED_EXTENSIBLE_ENUM
11pub type NSUserInterfaceItemIdentifier = NSString;
12
13extern_protocol!(
14 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsuserinterfaceitemidentification?language=objc)
15 pub unsafe trait NSUserInterfaceItemIdentification {
16 #[unsafe(method(identifier))]
17 #[unsafe(method_family = none)]
18 fn identifier(&self) -> Option<Retained<NSUserInterfaceItemIdentifier>>;
19
20 /// Setter for [`identifier`][Self::identifier].
21 ///
22 /// This is [copied][objc2_foundation::NSCopying::copy] when set.
23 #[unsafe(method(setIdentifier:))]
24 #[unsafe(method_family = none)]
25 fn setIdentifier(&self, identifier: Option<&NSUserInterfaceItemIdentifier>);
26 }
27);