objc2_app_kit/generated/
NSMovie.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsmovie?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    #[deprecated]
14    pub struct NSMovie;
15);
16
17extern_conformance!(
18    unsafe impl NSCoding for NSMovie {}
19);
20
21extern_conformance!(
22    unsafe impl NSObjectProtocol for NSMovie {}
23);
24
25impl NSMovie {
26    extern_methods!(
27        /// # Safety
28        ///
29        /// `coder` possibly has further requirements.
30        #[unsafe(method(initWithCoder:))]
31        #[unsafe(method_family = init)]
32        pub unsafe fn initWithCoder(
33            this: Allocated<Self>,
34            coder: &NSCoder,
35        ) -> Option<Retained<Self>>;
36
37        #[deprecated = "As of macOS 10.15 this method always returns nil."]
38        #[unsafe(method(init))]
39        #[unsafe(method_family = init)]
40        pub fn init(this: Allocated<Self>) -> Option<Retained<Self>>;
41    );
42}
43
44/// Methods declared on superclass `NSObject`.
45impl NSMovie {
46    extern_methods!(
47        #[unsafe(method(new))]
48        #[unsafe(method_family = new)]
49        pub fn new() -> Retained<Self>;
50    );
51}
52
53impl DefaultRetained for NSMovie {
54    #[inline]
55    fn default_retained() -> Retained<Self> {
56        Self::new()
57    }
58}