objc2_store_kit/generated/
SKOverlayTransitionContext.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8
9use crate::*;
10
11extern_class!(
12 #[unsafe(super(NSObject))]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 pub struct SKOverlayTransitionContext;
16);
17
18extern_conformance!(
19 unsafe impl NSObjectProtocol for SKOverlayTransitionContext {}
20);
21
22impl SKOverlayTransitionContext {
23 extern_methods!(
24 #[unsafe(method(init))]
25 #[unsafe(method_family = init)]
26 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
27
28 #[unsafe(method(new))]
29 #[unsafe(method_family = new)]
30 pub unsafe fn new() -> Retained<Self>;
31
32 #[cfg(feature = "block2")]
33 #[unsafe(method(addAnimationBlock:))]
35 #[unsafe(method_family = none)]
36 pub unsafe fn addAnimationBlock(&self, block: &block2::DynBlock<dyn Fn()>);
37
38 #[cfg(feature = "objc2-core-foundation")]
39 #[unsafe(method(startFrame))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn startFrame(&self) -> CGRect;
42
43 #[cfg(feature = "objc2-core-foundation")]
44 #[unsafe(method(endFrame))]
45 #[unsafe(method_family = none)]
46 pub unsafe fn endFrame(&self) -> CGRect;
47 );
48}