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
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        /// Adds an animation that will be synchronized with an overlay's presentation/dismissal.
34        #[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}