objc2_av_foundation/generated/
AVAssetTrackSegment.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::*;
5#[cfg(feature = "objc2-core-media")]
6use objc2_core_media::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/avfoundation/avassettracksegment?language=objc)
12    #[unsafe(super(NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    pub struct AVAssetTrackSegment;
15);
16
17unsafe impl Send for AVAssetTrackSegment {}
18
19unsafe impl Sync for AVAssetTrackSegment {}
20
21extern_conformance!(
22    unsafe impl NSObjectProtocol for AVAssetTrackSegment {}
23);
24
25impl AVAssetTrackSegment {
26    extern_methods!(
27        #[unsafe(method(init))]
28        #[unsafe(method_family = init)]
29        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
30
31        #[unsafe(method(new))]
32        #[unsafe(method_family = new)]
33        pub unsafe fn new() -> Retained<Self>;
34
35        #[cfg(feature = "objc2-core-media")]
36        /// This property is not atomic.
37        ///
38        /// # Safety
39        ///
40        /// This might not be thread-safe.
41        #[unsafe(method(timeMapping))]
42        #[unsafe(method_family = none)]
43        pub unsafe fn timeMapping(&self) -> CMTimeMapping;
44
45        /// This property is not atomic.
46        ///
47        /// # Safety
48        ///
49        /// This might not be thread-safe.
50        #[unsafe(method(isEmpty))]
51        #[unsafe(method_family = none)]
52        pub unsafe fn isEmpty(&self) -> bool;
53    );
54}