objc2_ui_kit/generated/
UIViewControllerTransition.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9 #[unsafe(super(NSObject))]
11 #[derive(Debug, PartialEq, Eq, Hash)]
12 pub struct UIViewControllerTransition;
13);
14
15unsafe impl NSObjectProtocol for UIViewControllerTransition {}
16
17impl UIViewControllerTransition {
18 extern_methods!(
19 #[cfg(all(
20 feature = "UIResponder",
21 feature = "UIView",
22 feature = "UIZoomTransitionOptions",
23 feature = "block2"
24 ))]
25 #[unsafe(method(zoomWithOptions:sourceViewProvider:))]
44 #[unsafe(method_family = none)]
45 pub unsafe fn zoomWithOptions_sourceViewProvider(
46 options: Option<&UIZoomTransitionOptions>,
47 source_view_provider: &block2::Block<
48 dyn Fn(NonNull<UIZoomTransitionSourceViewProviderContext>) -> *mut UIView,
49 >,
50 ) -> Retained<Self>;
51
52 #[unsafe(method(coverVerticalTransition))]
54 #[unsafe(method_family = none)]
55 pub unsafe fn coverVerticalTransition() -> Retained<Self>;
56
57 #[unsafe(method(flipHorizontalTransition))]
59 #[unsafe(method_family = none)]
60 pub unsafe fn flipHorizontalTransition() -> Retained<Self>;
61
62 #[unsafe(method(crossDissolveTransition))]
64 #[unsafe(method_family = none)]
65 pub unsafe fn crossDissolveTransition() -> Retained<Self>;
66
67 #[unsafe(method(partialCurlTransition))]
69 #[unsafe(method_family = none)]
70 pub unsafe fn partialCurlTransition() -> Retained<Self>;
71
72 #[unsafe(method(init))]
73 #[unsafe(method_family = init)]
74 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
75
76 #[unsafe(method(new))]
77 #[unsafe(method_family = new)]
78 pub unsafe fn new() -> Retained<Self>;
79 );
80}
81
82extern_class!(
83 #[unsafe(super(NSObject))]
85 #[derive(Debug, PartialEq, Eq, Hash)]
86 pub struct UIZoomTransitionSourceViewProviderContext;
87);
88
89unsafe impl NSObjectProtocol for UIZoomTransitionSourceViewProviderContext {}
90
91impl UIZoomTransitionSourceViewProviderContext {
92 extern_methods!(
93 #[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
94 #[unsafe(method(sourceViewController))]
96 #[unsafe(method_family = none)]
97 pub unsafe fn sourceViewController(
98 &self,
99 mtm: MainThreadMarker,
100 ) -> Retained<UIViewController>;
101
102 #[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
103 #[unsafe(method(zoomedViewController))]
105 #[unsafe(method_family = none)]
106 pub unsafe fn zoomedViewController(
107 &self,
108 mtm: MainThreadMarker,
109 ) -> Retained<UIViewController>;
110
111 #[unsafe(method(init))]
112 #[unsafe(method_family = init)]
113 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
114
115 #[unsafe(method(new))]
116 #[unsafe(method_family = new)]
117 pub unsafe fn new() -> Retained<Self>;
118 );
119}