objc2_ui_kit/generated/
UIContextMenuSystem.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9 #[unsafe(super(UIMenuSystem, NSObject))]
13 #[thread_kind = MainThreadOnly]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 #[cfg(feature = "UIMenuSystem")]
16 pub struct UIContextMenuSystem;
17);
18
19#[cfg(feature = "UIMenuSystem")]
20extern_conformance!(
21 unsafe impl NSObjectProtocol for UIContextMenuSystem {}
22);
23
24#[cfg(feature = "UIMenuSystem")]
25impl UIContextMenuSystem {
26 extern_methods!(
27 #[unsafe(method(sharedSystem))]
29 #[unsafe(method_family = none)]
30 pub fn sharedSystem(mtm: MainThreadMarker) -> Retained<UIContextMenuSystem>;
31
32 #[unsafe(method(mainSystem))]
33 #[unsafe(method_family = none)]
34 pub unsafe fn mainSystem(mtm: MainThreadMarker) -> Retained<UIMenuSystem>;
35
36 #[unsafe(method(contextSystem))]
37 #[unsafe(method_family = none)]
38 pub unsafe fn contextSystem(mtm: MainThreadMarker) -> Retained<UIMenuSystem>;
39 );
40}
41
42#[cfg(feature = "UIMenuSystem")]
44impl UIContextMenuSystem {
45 extern_methods!(
46 #[unsafe(method(new))]
47 #[unsafe(method_family = new)]
48 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
49
50 #[unsafe(method(init))]
51 #[unsafe(method_family = init)]
52 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
53 );
54}