objc2_ui_kit/generated/
UIStoryboardSegue.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
13 #[thread_kind = MainThreadOnly]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 #[deprecated = "Loading Interface Builder products will not be supported in a future version of visionOS."]
16 pub struct UIStoryboardSegue;
17);
18
19unsafe impl NSObjectProtocol for UIStoryboardSegue {}
20
21impl UIStoryboardSegue {
22 extern_methods!(
23 #[cfg(all(
24 feature = "UIResponder",
25 feature = "UIViewController",
26 feature = "block2"
27 ))]
28 #[unsafe(method(segueWithIdentifier:source:destination:performHandler:))]
29 #[unsafe(method_family = none)]
30 pub unsafe fn segueWithIdentifier_source_destination_performHandler(
31 identifier: Option<&NSString>,
32 source: &UIViewController,
33 destination: &UIViewController,
34 perform_handler: &block2::Block<dyn Fn()>,
35 ) -> Retained<Self>;
36
37 #[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
38 #[deprecated = "Loading Interface Builder products will not be supported in a future version of visionOS."]
39 #[unsafe(method(initWithIdentifier:source:destination:))]
40 #[unsafe(method_family = init)]
41 pub unsafe fn initWithIdentifier_source_destination(
42 this: Allocated<Self>,
43 identifier: Option<&NSString>,
44 source: &UIViewController,
45 destination: &UIViewController,
46 ) -> Retained<Self>;
47
48 #[deprecated = "Loading Interface Builder products will not be supported in a future version of visionOS."]
49 #[unsafe(method(init))]
50 #[unsafe(method_family = init)]
51 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
52
53 #[deprecated = "Loading Interface Builder products will not be supported in a future version of visionOS."]
54 #[unsafe(method(identifier))]
55 #[unsafe(method_family = none)]
56 pub unsafe fn identifier(&self) -> Option<Retained<NSString>>;
57
58 #[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
59 #[deprecated = "Loading Interface Builder products will not be supported in a future version of visionOS."]
60 #[unsafe(method(sourceViewController))]
61 #[unsafe(method_family = none)]
62 pub unsafe fn sourceViewController(&self) -> Retained<UIViewController>;
63
64 #[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
65 #[deprecated = "Loading Interface Builder products will not be supported in a future version of visionOS."]
66 #[unsafe(method(destinationViewController))]
67 #[unsafe(method_family = none)]
68 pub unsafe fn destinationViewController(&self) -> Retained<UIViewController>;
69
70 #[deprecated = "Loading Interface Builder products will not be supported in a future version of visionOS."]
73 #[unsafe(method(perform))]
74 #[unsafe(method_family = none)]
75 pub unsafe fn perform(&self);
76 );
77}
78
79impl UIStoryboardSegue {
81 extern_methods!(
82 #[unsafe(method(new))]
83 #[unsafe(method_family = new)]
84 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
85 );
86}
87
88extern_class!(
89 #[unsafe(super(NSObject))]
94 #[thread_kind = MainThreadOnly]
95 #[derive(Debug, PartialEq, Eq, Hash)]
96 pub struct UIStoryboardUnwindSegueSource;
97);
98
99unsafe impl NSObjectProtocol for UIStoryboardUnwindSegueSource {}
100
101impl UIStoryboardUnwindSegueSource {
102 extern_methods!(
103 #[unsafe(method(init))]
104 #[unsafe(method_family = init)]
105 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
106
107 #[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
108 #[unsafe(method(sourceViewController))]
109 #[unsafe(method_family = none)]
110 pub unsafe fn sourceViewController(&self) -> Retained<UIViewController>;
111
112 #[unsafe(method(unwindAction))]
113 #[unsafe(method_family = none)]
114 pub unsafe fn unwindAction(&self) -> Sel;
115
116 #[unsafe(method(sender))]
117 #[unsafe(method_family = none)]
118 pub unsafe fn sender(&self) -> Option<Retained<AnyObject>>;
119 );
120}
121
122impl UIStoryboardUnwindSegueSource {
124 extern_methods!(
125 #[unsafe(method(new))]
126 #[unsafe(method_family = new)]
127 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
128 );
129}