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        #[unsafe(method(initWithCoder:))]
28        #[unsafe(method_family = init)]
29        pub unsafe fn initWithCoder(
30            this: Allocated<Self>,
31            coder: &NSCoder,
32        ) -> Option<Retained<Self>>;
33
34        #[deprecated = "As of macOS 10.15 this method always returns nil."]
35        #[unsafe(method(init))]
36        #[unsafe(method_family = init)]
37        pub unsafe fn init(this: Allocated<Self>) -> Option<Retained<Self>>;
38    );
39}
40
41/// Methods declared on superclass `NSObject`.
42impl NSMovie {
43    extern_methods!(
44        #[unsafe(method(new))]
45        #[unsafe(method_family = new)]
46        pub unsafe fn new() -> Retained<Self>;
47    );
48}