objc2_ui_kit/generated/
UICollectionViewTransitionLayout.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12extern_class!(
13 #[unsafe(super(UICollectionViewLayout, NSObject))]
15 #[thread_kind = MainThreadOnly]
16 #[derive(Debug, PartialEq, Eq, Hash)]
17 #[cfg(feature = "UICollectionViewLayout")]
18 pub struct UICollectionViewTransitionLayout;
19);
20
21#[cfg(feature = "UICollectionViewLayout")]
22extern_conformance!(
23 unsafe impl NSCoding for UICollectionViewTransitionLayout {}
24);
25
26#[cfg(feature = "UICollectionViewLayout")]
27extern_conformance!(
28 unsafe impl NSObjectProtocol for UICollectionViewTransitionLayout {}
29);
30
31#[cfg(feature = "UICollectionViewLayout")]
32impl UICollectionViewTransitionLayout {
33 extern_methods!(
34 #[cfg(feature = "objc2-core-foundation")]
35 #[unsafe(method(transitionProgress))]
36 #[unsafe(method_family = none)]
37 pub unsafe fn transitionProgress(&self) -> CGFloat;
38
39 #[cfg(feature = "objc2-core-foundation")]
40 #[unsafe(method(setTransitionProgress:))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn setTransitionProgress(&self, transition_progress: CGFloat);
44
45 #[unsafe(method(currentLayout))]
46 #[unsafe(method_family = none)]
47 pub unsafe fn currentLayout(&self) -> Retained<UICollectionViewLayout>;
48
49 #[unsafe(method(nextLayout))]
50 #[unsafe(method_family = none)]
51 pub unsafe fn nextLayout(&self) -> Retained<UICollectionViewLayout>;
52
53 #[unsafe(method(initWithCurrentLayout:nextLayout:))]
54 #[unsafe(method_family = init)]
55 pub unsafe fn initWithCurrentLayout_nextLayout(
56 this: Allocated<Self>,
57 current_layout: &UICollectionViewLayout,
58 new_layout: &UICollectionViewLayout,
59 ) -> Retained<Self>;
60
61 #[unsafe(method(initWithCoder:))]
62 #[unsafe(method_family = init)]
63 pub unsafe fn initWithCoder(
64 this: Allocated<Self>,
65 coder: &NSCoder,
66 ) -> Option<Retained<Self>>;
67
68 #[unsafe(method(init))]
69 #[unsafe(method_family = init)]
70 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
71
72 #[cfg(feature = "objc2-core-foundation")]
73 #[unsafe(method(updateValue:forAnimatedKey:))]
74 #[unsafe(method_family = none)]
75 pub unsafe fn updateValue_forAnimatedKey(&self, value: CGFloat, key: &NSString);
76
77 #[cfg(feature = "objc2-core-foundation")]
78 #[unsafe(method(valueForAnimatedKey:))]
79 #[unsafe(method_family = none)]
80 pub unsafe fn valueForAnimatedKey(&self, key: &NSString) -> CGFloat;
81 );
82}
83
84#[cfg(feature = "UICollectionViewLayout")]
86impl UICollectionViewTransitionLayout {
87 extern_methods!(
88 #[unsafe(method(new))]
89 #[unsafe(method_family = new)]
90 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
91 );
92}