objc2_store_kit/generated/
SKOverlayTransitionContext.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use 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    /// [Apple's documentation](https://developer.apple.com/documentation/storekit/skoverlaytransitioncontext?language=objc)
13    #[unsafe(super(NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    pub struct SKOverlayTransitionContext;
16);
17
18unsafe impl NSObjectProtocol for SKOverlayTransitionContext {}
19
20impl SKOverlayTransitionContext {
21    extern_methods!(
22        #[unsafe(method(init))]
23        #[unsafe(method_family = init)]
24        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
25
26        #[unsafe(method(new))]
27        #[unsafe(method_family = new)]
28        pub unsafe fn new() -> Retained<Self>;
29
30        #[cfg(feature = "block2")]
31        /// Adds an animation that will be synchronized with an overlay's presentation/dismissal.
32        #[unsafe(method(addAnimationBlock:))]
33        #[unsafe(method_family = none)]
34        pub unsafe fn addAnimationBlock(&self, block: &block2::Block<dyn Fn()>);
35
36        #[cfg(feature = "objc2-core-foundation")]
37        #[unsafe(method(startFrame))]
38        #[unsafe(method_family = none)]
39        pub unsafe fn startFrame(&self) -> CGRect;
40
41        #[cfg(feature = "objc2-core-foundation")]
42        #[unsafe(method(endFrame))]
43        #[unsafe(method_family = none)]
44        pub unsafe fn endFrame(&self) -> CGRect;
45    );
46}